{"type": "func", "start": 6442985792, "end": 6442985910, "name": "sub_180082940", "pseudocode": "// \n// sub_180082940 from 0x180082940 to 0x1800829b6 (118 bytes)\n// \n// 4 xrefs:\n// > DS_Dictionary::checkCompatibility @ 0x180018ee3\n// > DS_Dictionary::loadRootSubDictFromCompressedFile @ 0x18001bb72\n// > DS_Dictionary::loadRootSubDictFromFile @ 0x18001be97\n// > DS_Dictionary::loadRootSubDictFromString @ 0x18001c030\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:03 +0000\n// \n\nint __fastcall sub_180082940(__int64 a1, int a2)\n{\n  const char *v2; // r9\n  __int64 v3; // rdx\n  _BYTE *v4; // rax\n  __int64 v5; // rcx\n  _BYTE *v6; // rcx\n  int v7; // r8d\n\n  if ( !*(_QWORD *)a1 )\n    return a2;\n  v2 = *(const char **)(*(_QWORD *)a1 + 16LL);\n  if ( !v2 )\n    return a2;\n  v3 = *(unsigned __int8 *)v2;\n  v4 = *(_BYTE **)(*(_QWORD *)a1 + 16LL);\n  if ( (byte_1801079B0[v3] & 8) != 0 )\n  {\n    do\n      v5 = (unsigned __int8)*++v4;\n    while ( (byte_1801079B0[v5] & 8) != 0 );\n    LOBYTE(v3) = v5;\n  }\n  v6 = v4 + 1;\n  if ( (_BYTE)v3 != 45 )\n    v6 = v4;\n  if ( *v6 != 48 || (v7 = 16, ((v6[1] - 88) & 0xDF) != 0) )\n    v7 = 10;\n  return strtol(v2, nullptr, v7);\n}", "assembly": "; \n; sub_180082940 from 0x180082940 to 0x1800829b6 (118 bytes)\n; \n; 4 xrefs:\n; > DS_Dictionary::checkCompatibility @ 0x180018ee3\n; > DS_Dictionary::loadRootSubDictFromCompressedFile @ 0x18001bb72\n; > DS_Dictionary::loadRootSubDictFromFile @ 0x18001be97\n; > DS_Dictionary::loadRootSubDictFromString @ 0x18001c030\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:03 +0000\n; \nmov     r9, [rcx]                                                      ; +0x0, 0x180082940\ntest    r9, r9                                                         ; +0x3, 0x180082943\njz      short loc_1800829B3                                            ; +0x6, 0x180082946\nmov     r9, [r9+10h]                                                   ; +0x8, 0x180082948\ntest    r9, r9                                                         ; +0xc, 0x18008294c\njz      short loc_1800829B3                                            ; +0xf, 0x18008294f\nmovzx   edx, byte ptr [r9]                                             ; +0x11, 0x180082951\nlea     r8, byte_1801079B0                                             ; +0x15, 0x180082955\nmov     rax, r9                                                        ; +0x1c, 0x18008295c\ntest    byte ptr [rdx+r8], 8                                           ; +0x1f, 0x18008295f\njz      short loc_180082981                                            ; +0x24, 0x180082964\nnop     word ptr [rax+rax+00000000h]                                   ; +0x26, 0x180082966\nmovzx   ecx, byte ptr [rax+1]                                          ; +0x30, 0x180082970\ninc     rax                                                            ; +0x34, 0x180082974\ntest    byte ptr [rcx+r8], 8                                           ; +0x37, 0x180082977\njnz     short loc_180082970                                            ; +0x3c, 0x18008297c\nmovzx   edx, cl                                                        ; +0x3e, 0x18008297e\ncmp     dl, 2Dh ; '-'                                                  ; +0x41, 0x180082981\nlea     rcx, [rax+1]                                                   ; +0x44, 0x180082984\ncmovnz  rcx, rax                                                       ; +0x48, 0x180082988\ncmp     byte ptr [rcx], 30h ; '0'                                      ; +0x4c, 0x18008298c\njnz     short loc_1800829A1                                            ; +0x4f, 0x18008298f\nmovzx   eax, byte ptr [rcx+1]                                          ; +0x51, 0x180082991\nmov     r8d, 10h                                                       ; +0x55, 0x180082995\nsub     al, 58h ; 'X'                                                  ; +0x5b, 0x18008299b\ntest    al, 0DFh                                                       ; +0x5d, 0x18008299d\njz      short loc_1800829A7                                            ; +0x5f, 0x18008299f\nmov     r8d, 0Ah                                                       ; +0x61, 0x1800829a1\nxor     edx, edx                                                       ; +0x67, 0x1800829a7\nmov     rcx, r9                                                        ; +0x69, 0x1800829a9\njmp     cs:strtol                                                      ; +0x6c, 0x1800829ac\nmov     eax, edx                                                       ; +0x73, 0x1800829b3\nretn                                                                   ; +0x75, 0x1800829b5", "xrefs": ["DS_Dictionary::checkCompatibility @ 0x180018ee3", "DS_Dictionary::loadRootSubDictFromCompressedFile @ 0x18001bb72", "DS_Dictionary::loadRootSubDictFromFile @ 0x18001be97", "DS_Dictionary::loadRootSubDictFromString @ 0x18001c030"], "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"}