{"type": "func", "start": 6442879504, "end": 6442879745, "name": "sub_180068A10", "pseudocode": "// \n// sub_180068A10 from 0x180068a10 to 0x180068b01 (241 bytes)\n// \n// 2 xrefs:\n// > sub_18000F1A0 @ 0x18000f1dd\n// > <???> @ 0x1801f94ec\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 10:53:27 +0000\n// \n\n__int64 __fastcall sub_180068A10(__int64 a1, unsigned int *a2, __int64 a3, __int64 a4)\n{\n  __int64 v4; // r14\n  char v6; // r9\n  unsigned int v10; // ebx\n  _QWORD *v11; // rdx\n  _QWORD *v12; // rcx\n  unsigned int v13; // eax\n  unsigned int v14; // edx\n  unsigned int v15; // r8d\n\n  v4 = *(_QWORD *)(a1 + 168);\n  v6 = 0;\n  if ( v4 )\n  {\n    sub_1801021C0(*(_QWORD *)(a1 + 168), 5);\n    v6 = 1;\n  }\n  if ( a2 )\n  {\n    v11 = (_QWORD *)(a1 + 576);\n    v10 = 0;\n    v12 = (_QWORD *)*v11;\n    v13 = 0;\n    if ( (_QWORD *)*v11 != v11 )\n    {\n      do\n      {\n        v12 = (_QWORD *)*v12;\n        ++v13;\n      }\n      while ( v12 != v11 );\n      v12 = (_QWORD *)*v11;\n    }\n    if ( a3 || a4 )\n    {\n      v14 = *a2;\n      if ( v13 < *a2 )\n      {\n        *a2 = v13;\n        v14 = v13;\n      }\n      v15 = 0;\n      if ( v14 )\n      {\n        do\n        {\n          if ( a3 )\n            *(_QWORD *)(a3 + 8LL * v15) = v12[3];\n          if ( a4 )\n            *(_DWORD *)(a4 + 4LL * v15) = v12[2];\n          v12 = (_QWORD *)*v12;\n          ++v15;\n        }\n        while ( v15 < *a2 );\n      }\n    }\n    else\n    {\n      *a2 = v13;\n    }\n  }\n  else\n  {\n    v10 = 31;\n  }\n  if ( v6 && v4 )\n    sub_180102300(v4, 5);\n  return v10;\n}", "assembly": "; \n; sub_180068A10 from 0x180068a10 to 0x180068b01 (241 bytes)\n; \n; 2 xrefs:\n; > sub_18000F1A0 @ 0x18000f1dd\n; > <???> @ 0x1801f94ec\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 10:53:27 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180068a10\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180068a15\npush    rsi                                                            ; +0xa, 0x180068a1a\npush    rdi                                                            ; +0xb, 0x180068a1b\npush    r14                                                            ; +0xc, 0x180068a1c\nsub     rsp, 20h                                                       ; +0xe, 0x180068a1e\nmov     r14, [rcx+0A8h]                                                ; +0x12, 0x180068a22\nmov     rbp, r9                                                        ; +0x19, 0x180068a29\nxor     r9b, r9b                                                       ; +0x1c, 0x180068a2c\nmov     rsi, r8                                                        ; +0x1f, 0x180068a2f\nmov     rdi, rdx                                                       ; +0x22, 0x180068a32\nmov     rbx, rcx                                                       ; +0x25, 0x180068a35\ntest    r14, r14                                                       ; +0x28, 0x180068a38\njz      short loc_180068A4D                                            ; +0x2b, 0x180068a3b\nmov     edx, 5                                                         ; +0x2d, 0x180068a3d\nmov     rcx, r14                                                       ; +0x32, 0x180068a42\ncall    sub_1801021C0                                                  ; +0x35, 0x180068a45\nmov     r9b, 1                                                         ; +0x3a, 0x180068a4a\ntest    rdi, rdi                                                       ; +0x3d, 0x180068a4d\njnz     short loc_180068A57                                            ; +0x40, 0x180068a50\nlea     ebx, [rdi+1Fh]                                                 ; +0x42, 0x180068a52\njmp     short loc_180068AD5                                            ; +0x45, 0x180068a55\nlea     rdx, [rbx+240h]                                                ; +0x47, 0x180068a57\nxor     ebx, ebx                                                       ; +0x4e, 0x180068a5e\nmov     rcx, [rdx]                                                     ; +0x50, 0x180068a60\nmov     eax, ebx                                                       ; +0x53, 0x180068a63\ncmp     rcx, rdx                                                       ; +0x55, 0x180068a65\njz      short loc_180068A7D                                            ; +0x58, 0x180068a68\nnop     word ptr [rax+rax+00h]                                         ; +0x5a, 0x180068a6a\nmov     rcx, [rcx]                                                     ; +0x60, 0x180068a70\ninc     eax                                                            ; +0x63, 0x180068a73\ncmp     rcx, rdx                                                       ; +0x65, 0x180068a75\njnz     short loc_180068A70                                            ; +0x68, 0x180068a78\nmov     rcx, [rdx]                                                     ; +0x6a, 0x180068a7a\ntest    rsi, rsi                                                       ; +0x6d, 0x180068a7d\njnz     short loc_180068A8B                                            ; +0x70, 0x180068a80\ntest    rbp, rbp                                                       ; +0x72, 0x180068a82\njnz     short loc_180068A8B                                            ; +0x75, 0x180068a85\nmov     [rdi], eax                                                     ; +0x77, 0x180068a87\njmp     short loc_180068AD5                                            ; +0x79, 0x180068a89\nmov     edx, [rdi]                                                     ; +0x7b, 0x180068a8b\ncmp     eax, edx                                                       ; +0x7d, 0x180068a8d\njnb     short loc_180068A95                                            ; +0x7f, 0x180068a8f\nmov     [rdi], eax                                                     ; +0x81, 0x180068a91\nmov     edx, eax                                                       ; +0x83, 0x180068a93\nmov     r8d, ebx                                                       ; +0x85, 0x180068a95\ntest    edx, edx                                                       ; +0x88, 0x180068a98\njz      short loc_180068AD5                                            ; +0x8a, 0x180068a9a\nnop     dword ptr [rax+00h]                                            ; +0x8c, 0x180068a9c\nmov     edx, r8d                                                       ; +0x90, 0x180068aa0\ntest    rsi, rsi                                                       ; +0x93, 0x180068aa3\njz      short loc_180068AB0                                            ; +0x96, 0x180068aa6\nmov     rax, [rcx+18h]                                                 ; +0x98, 0x180068aa8\nmov     [rsi+rdx*8], rax                                               ; +0x9c, 0x180068aac\ntest    rbp, rbp                                                       ; +0xa0, 0x180068ab0\njz      short loc_180068ACA                                            ; +0xa3, 0x180068ab3\nmov     rax, [rcx+10h]                                                 ; +0xa5, 0x180068ab5\nmov     [rsp+38h+arg_0], rax                                           ; +0xa9, 0x180068ab9\nmovss   xmm0, dword ptr [rsp+38h+arg_0]                                ; +0xae, 0x180068abe\nmovss   dword ptr [rbp+rdx*4+0], xmm0                                  ; +0xb4, 0x180068ac4\nmov     rcx, [rcx]                                                     ; +0xba, 0x180068aca\ninc     r8d                                                            ; +0xbd, 0x180068acd\ncmp     r8d, [rdi]                                                     ; +0xc0, 0x180068ad0\njb      short loc_180068AA0                                            ; +0xc3, 0x180068ad3\ntest    r9b, r9b                                                       ; +0xc5, 0x180068ad5\njz      short loc_180068AEC                                            ; +0xc8, 0x180068ad8\ntest    r14, r14                                                       ; +0xca, 0x180068ada\njz      short loc_180068AEC                                            ; +0xcd, 0x180068add\nmov     edx, 5                                                         ; +0xcf, 0x180068adf\nmov     rcx, r14                                                       ; +0xd4, 0x180068ae4\ncall    sub_180102300                                                  ; +0xd7, 0x180068ae7\nmov     rbp, [rsp+38h+arg_10]                                          ; +0xdc, 0x180068aec\nmov     eax, ebx                                                       ; +0xe1, 0x180068af1\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xe3, 0x180068af3\nadd     rsp, 20h                                                       ; +0xe8, 0x180068af8\npop     r14                                                            ; +0xec, 0x180068afc\npop     rdi                                                            ; +0xee, 0x180068afe\npop     rsi                                                            ; +0xef, 0x180068aff\nretn                                                                   ; +0xf0, 0x180068b00", "xrefs": ["sub_18000F1A0 @ 0x18000f1dd", "<???> @ 0x1801f94ec"], "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"}