{"type": "func", "start": 6442775248, "end": 6442775382, "name": "sub_18004F2D0", "pseudocode": "// \n// sub_18004F2D0 from 0x18004f2d0 to 0x18004f356 (134 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180166eb8\n// > <???> @ 0x180181a80\n// > <???> @ 0x180181a90\n// > <???> @ 0x1801f888c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall sub_18004F2D0(int a1, int a2, int a3, _QWORD *a4, __int64 a5, __int64 a6)\n{\n  int v6; // r11d\n  __int64 v7; // rax\n  _QWORD *v8; // r10\n\n  v6 = 0;\n  if ( (int)a6 <= 0 )\n    return 0;\n  v7 = 0;\n  v8 = a4;\n  do\n  {\n    if ( *(_DWORD *)(a5 + 4 * v7) )\n    {\n      ++v6;\n      *v8++ = a4[v7];\n    }\n    ++v7;\n  }\n  while ( v7 < (int)a6 );\n  if ( v6 )\n    return sub_18004F5A0(a1, a2, a3, (_DWORD)a4, v6, (__int64)sub_180049880);\n  else\n    return 0;\n}", "assembly": "; \n; sub_18004F2D0 from 0x18004f2d0 to 0x18004f356 (134 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180166eb8\n; > <???> @ 0x180181a80\n; > <???> @ 0x180181a90\n; > <???> @ 0x1801f888c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18004f2d0\npush    rsi                                                            ; +0x5, 0x18004f2d5\nsub     rsp, 30h                                                       ; +0x6, 0x18004f2d6\nmovsxd  rbx, dword ptr [rsp+38h+arg_28]                                ; +0xa, 0x18004f2da\nxor     r11d, r11d                                                     ; +0xf, 0x18004f2df\nmov     rsi, rcx                                                       ; +0x12, 0x18004f2e2\ntest    rbx, rbx                                                       ; +0x15, 0x18004f2e5\njle     short loc_18004F349                                            ; +0x18, 0x18004f2e8\nmov     [rsp+38h+arg_0], rdi                                           ; +0x1a, 0x18004f2ea\nmov     eax, r11d                                                      ; +0x1f, 0x18004f2ef\nmov     rdi, [rsp+38h+arg_20]                                          ; +0x22, 0x18004f2f2\nmov     r10, r9                                                        ; +0x27, 0x18004f2f7\nnop     word ptr [rax+rax+00h]                                         ; +0x2a, 0x18004f2fa\ncmp     dword ptr [rdi+rax*4], 0                                       ; +0x30, 0x18004f300\njz      short loc_18004F314                                            ; +0x34, 0x18004f304\nmov     rcx, [r9+rax*8]                                                ; +0x36, 0x18004f306\ninc     r11d                                                           ; +0x3a, 0x18004f30a\nmov     [r10], rcx                                                     ; +0x3d, 0x18004f30d\nadd     r10, 8                                                         ; +0x40, 0x18004f310\ninc     rax                                                            ; +0x44, 0x18004f314\ncmp     rax, rbx                                                       ; +0x47, 0x18004f317\njl      short loc_18004F300                                            ; +0x4a, 0x18004f31a\nmov     rdi, [rsp+38h+arg_0]                                           ; +0x4c, 0x18004f31c\ntest    r11d, r11d                                                     ; +0x51, 0x18004f321\njz      short loc_18004F349                                            ; +0x54, 0x18004f324\nlea     rax, sub_180049880                                             ; +0x56, 0x18004f326\nmov     rcx, rsi                                                       ; +0x5d, 0x18004f32d\nmov     [rsp+38h+arg_28], rax                                          ; +0x60, 0x18004f330\nmov     dword ptr [rsp+38h+arg_20], r11d                               ; +0x65, 0x18004f335\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x6a, 0x18004f33a\nadd     rsp, 30h                                                       ; +0x6f, 0x18004f33f\npop     rsi                                                            ; +0x73, 0x18004f343\njmp     sub_18004F5A0                                                  ; +0x74, 0x18004f344\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x79, 0x18004f349\nxor     eax, eax                                                       ; +0x7e, 0x18004f34e\nadd     rsp, 30h                                                       ; +0x80, 0x18004f350\npop     rsi                                                            ; +0x84, 0x18004f354\nretn                                                                   ; +0x85, 0x18004f355", "xrefs": ["<???> @ 0x180166eb8", "<???> @ 0x180181a80", "<???> @ 0x180181a90", "<???> @ 0x1801f888c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}