{"type": "func", "start": 6442703488, "end": 6442703632, "name": "sub_18003DA80", "pseudocode": "// \n// sub_18003DA80 from 0x18003da80 to 0x18003db10 (144 bytes)\n// \n// 3 xrefs:\n// > sub_18003F1A0 @ 0x18003f267\n// > sub_18003F6D0 @ 0x18003f782\n// > <???> @ 0x1801bb260\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:21:37 +0000\n// \n\n__int64 __fastcall sub_18003DA80(_WORD *a1, unsigned int a2, int a3)\n{\n  __int64 v3; // r10\n  unsigned int i; // r9d\n  __int64 v5; // r8\n  __int64 v6; // rax\n  char v7; // r9\n  __int64 result; // rax\n  __int64 v9; // r9\n\n  v3 = (unsigned int)(a3 - 1);\n  for ( i = a2; i >= 0x64; a1[v6] = a00010203040506[v5] )\n  {\n    v5 = 2 * (i % 0x64);\n    i /= 0x64u;\n    v6 = (unsigned int)(v3 - 1);\n    a1[v3] = a00010203040506[(unsigned int)(v5 + 1)];\n    v3 = (unsigned int)(v3 - 2);\n  }\n  if ( i >= 0xA )\n  {\n    v9 = 2 * i;\n    a1[1] = a00010203040506[(unsigned int)(v9 + 1)];\n    result = (unsigned int)a00010203040506[v9];\n    *a1 = a00010203040506[v9];\n  }\n  else\n  {\n    v7 = i + 48;\n    *a1 = v7;\n    return (unsigned int)v7;\n  }\n  return result;\n}", "assembly": "; \n; sub_18003DA80 from 0x18003da80 to 0x18003db10 (144 bytes)\n; \n; 3 xrefs:\n; > sub_18003F1A0 @ 0x18003f267\n; > sub_18003F6D0 @ 0x18003f782\n; > <???> @ 0x1801bb260\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:21:37 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18003da80\nlea     r10d, [r8-1]                                                   ; +0x5, 0x18003da85\nmov     r9d, edx                                                       ; +0x9, 0x18003da89\nlea     rbx, a00010203040506; \"000102030405060708091011121314151617181\"... ; +0xc, 0x18003da8c\ncmp     edx, 64h ; 'd'                                                 ; +0x13, 0x18003da93\njb      short loc_18003DADC                                            ; +0x16, 0x18003da96\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x18, 0x18003da98\nmov     eax, 51EB851Fh                                                 ; +0x20, 0x18003daa0\nmul     r9d                                                            ; +0x25, 0x18003daa5\nshr     edx, 5                                                         ; +0x28, 0x18003daa8\nimul    eax, edx, 64h ; 'd'                                            ; +0x2b, 0x18003daab\nsub     r9d, eax                                                       ; +0x2e, 0x18003daae\nlea     r8d, [r9+r9]                                                   ; +0x31, 0x18003dab1\nmov     r9d, edx                                                       ; +0x35, 0x18003dab5\nlea     eax, [r8+1]                                                    ; +0x38, 0x18003dab8\nmovsx   edx, byte ptr [rax+rbx]                                        ; +0x3c, 0x18003dabc\nlea     eax, [r10-1]                                                   ; +0x40, 0x18003dac0\nmov     [rcx+r10*2], dx                                                ; +0x44, 0x18003dac4\nlea     r10d, [r10-2]                                                  ; +0x49, 0x18003dac9\nmovsx   edx, byte ptr [r8+rbx]                                         ; +0x4d, 0x18003dacd\nmov     [rcx+rax*2], dx                                                ; +0x52, 0x18003dad2\ncmp     r9d, 64h ; 'd'                                                 ; +0x56, 0x18003dad6\njnb     short loc_18003DAA0                                            ; +0x5a, 0x18003dada\ncmp     r9d, 0Ah                                                       ; +0x5c, 0x18003dadc\njnb     short loc_18003DAF3                                            ; +0x60, 0x18003dae0\nadd     r9b, 30h ; '0'                                                 ; +0x62, 0x18003dae2\nmovsx   eax, r9b                                                       ; +0x66, 0x18003dae6\nmov     [rcx], ax                                                      ; +0x6a, 0x18003daea\nmov     rbx, [rsp+arg_0]                                               ; +0x6d, 0x18003daed\nretn                                                                   ; +0x72, 0x18003daf2\nadd     r9d, r9d                                                       ; +0x73, 0x18003daf3\nlea     eax, [r9+1]                                                    ; +0x76, 0x18003daf6\nmovsx   eax, byte ptr [rax+rbx]                                        ; +0x7a, 0x18003dafa\nmov     [rcx+2], ax                                                    ; +0x7e, 0x18003dafe\nmovsx   eax, byte ptr [r9+rbx]                                         ; +0x82, 0x18003db02\nmov     [rcx], ax                                                      ; +0x87, 0x18003db07\nmov     rbx, [rsp+arg_0]                                               ; +0x8a, 0x18003db0a\nretn                                                                   ; +0x8f, 0x18003db0f", "xrefs": ["sub_18003F1A0 @ 0x18003f267", "sub_18003F6D0 @ 0x18003f782", "<???> @ 0x1801bb260"], "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"}