{"type": "func", "start": 6443351920, "end": 6443352057, "name": "sub_1800DBF70", "pseudocode": "// \n// sub_1800DBF70 from 0x1800dbf70 to 0x1800dbff9 (137 bytes)\n// \n// 4 xrefs:\n// > sub_1800DB8C0 @ 0x1800db8e4\n// > <???> @ 0x18014c3a8\n// > <???> @ 0x18014c3bc\n// > <???> @ 0x1801c4d28\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:34 +0000\n// \n\n__int64 __fastcall sub_1800DBF70(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 v3; // rdi\n  int v4; // [rsp+30h] [rbp+8h] BYREF\n\n  if ( *(_QWORD *)(a1 + 152) )\n    return 1;\n  result = sub_1800E2D10(a1, &v4);\n  v3 = result;\n  if ( result )\n  {\n    qsort((void *)result, v4, 0x18u, (_CoreCrtNonSecureSearchSortCompareFunction)sub_1800DBE60);\n    free(*(void **)(a1 + 152));\n    *(_DWORD *)(a1 + 160) = v4;\n    *(_QWORD *)(a1 + 152) = v3;\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800DBF70 from 0x1800dbf70 to 0x1800dbff9 (137 bytes)\n; \n; 4 xrefs:\n; > sub_1800DB8C0 @ 0x1800db8e4\n; > <???> @ 0x18014c3a8\n; > <???> @ 0x18014c3bc\n; > <???> @ 0x1801c4d28\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:34 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800dbf70\nsub     rsp, 20h                                                       ; +0x2, 0x1800dbf72\ncmp     qword ptr [rcx+98h], 0                                         ; +0x6, 0x1800dbf76\nmov     rbx, rcx                                                       ; +0xe, 0x1800dbf7e\njz      short loc_1800DBF8E                                            ; +0x11, 0x1800dbf81\nmov     eax, 1                                                         ; +0x13, 0x1800dbf83\nadd     rsp, 20h                                                       ; +0x18, 0x1800dbf88\npop     rbx                                                            ; +0x1c, 0x1800dbf8c\nretn                                                                   ; +0x1d, 0x1800dbf8d\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x1e, 0x1800dbf8e\nmov     [rsp+28h+arg_8], rdi                                           ; +0x23, 0x1800dbf93\ncall    sub_1800E2D10                                                  ; +0x28, 0x1800dbf98\nmov     rdi, rax                                                       ; +0x2d, 0x1800dbf9d\ntest    rax, rax                                                       ; +0x30, 0x1800dbfa0\njnz     short loc_1800DBFB0                                            ; +0x33, 0x1800dbfa3\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x35, 0x1800dbfa5\nadd     rsp, 20h                                                       ; +0x3a, 0x1800dbfaa\npop     rbx                                                            ; +0x3e, 0x1800dbfae\nretn                                                                   ; +0x3f, 0x1800dbfaf\nmovsxd  rdx, [rsp+28h+arg_0]; NumOfElements                            ; +0x40, 0x1800dbfb0\nlea     r9, sub_1800DBE60; CompareFunction                             ; +0x45, 0x1800dbfb5\nmov     r8d, 18h; SizeOfElements                                       ; +0x4c, 0x1800dbfbc\nmov     rcx, rdi; Base                                                 ; +0x52, 0x1800dbfc2\ncall    cs:qsort                                                       ; +0x55, 0x1800dbfc5\nmov     rcx, [rbx+98h]; Block                                          ; +0x5b, 0x1800dbfcb\ncall    cs:__imp_free                                                  ; +0x62, 0x1800dbfd2\nmov     eax, [rsp+28h+arg_0]                                           ; +0x68, 0x1800dbfd8\nmov     [rbx+0A0h], eax                                                ; +0x6c, 0x1800dbfdc\nmov     eax, 1                                                         ; +0x72, 0x1800dbfe2\nmov     [rbx+98h], rdi                                                 ; +0x77, 0x1800dbfe7\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x7e, 0x1800dbfee\nadd     rsp, 20h                                                       ; +0x83, 0x1800dbff3\npop     rbx                                                            ; +0x87, 0x1800dbff7\nretn                                                                   ; +0x88, 0x1800dbff8", "xrefs": ["sub_1800DB8C0 @ 0x1800db8e4", "<???> @ 0x18014c3a8", "<???> @ 0x18014c3bc", "<???> @ 0x1801c4d28"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}