{"type": "func", "start": 6442672928, "end": 6442673043, "name": "sub_180036320", "pseudocode": "// \n// sub_180036320 from 0x180036320 to 0x180036393 (115 bytes)\n// \n// 1 xrefs:\n// > sub_180035EF0 @ 0x180035f32\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_180036320(__int64 a1, __int64 a2, unsigned int a3, int a4)\n{\n  unsigned __int64 v4; // r10\n  __int64 v5; // rdx\n  __int64 v6; // rax\n\n  LODWORD(v4) = a3;\n  if ( a4 != 8 && a3 )\n  {\n    v5 = *(_QWORD *)(a1 + 8);\n    switch ( *(_DWORD *)(v5 + 8) )\n    {\n      case 1:\n        v6 = 8;\n        break;\n      case 2:\n        v6 = 16;\n        break;\n      case 3:\n        v6 = 24;\n        break;\n      default:\n        if ( (unsigned int)(*(_DWORD *)(v5 + 8) - 4) > 1 )\n        {\nLABEL_12:\n          LODWORD(v4) = *(_DWORD *)(v5 + 12) * v4;\n          return sub_1800B3990(*(_QWORD *)(a1 + 368), (unsigned int)(v4 + *(_DWORD *)(a1 + 272)), 0);\n        }\n        v6 = 32;\n        break;\n    }\n    v4 = (v6 * (unsigned __int64)a3) >> 3;\n    goto LABEL_12;\n  }\n  return sub_1800B3990(*(_QWORD *)(a1 + 368), (unsigned int)(v4 + *(_DWORD *)(a1 + 272)), 0);\n}", "assembly": "; \n; sub_180036320 from 0x180036320 to 0x180036393 (115 bytes)\n; \n; 1 xrefs:\n; > sub_180035EF0 @ 0x180035f32\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     r10d, r8d                                                      ; +0x0, 0x180036320\ncmp     r9d, 8                                                         ; +0x3, 0x180036323\njz      short loc_18003637B                                            ; +0x7, 0x180036327\ntest    r8d, r8d                                                       ; +0x9, 0x180036329\njz      short loc_18003637B                                            ; +0xc, 0x18003632c\nmov     rdx, [rcx+8]                                                   ; +0xe, 0x18003632e\nmov     r9d, [rdx+8]                                                   ; +0x12, 0x180036332\nsub     r9d, 1                                                         ; +0x16, 0x180036336\njz      short loc_180036369                                            ; +0x1a, 0x18003633a\nsub     r9d, 1                                                         ; +0x1c, 0x18003633c\njz      short loc_180036362                                            ; +0x20, 0x180036340\nsub     r9d, 1                                                         ; +0x22, 0x180036342\njz      short loc_18003635B                                            ; +0x26, 0x180036346\nsub     r9d, 1                                                         ; +0x28, 0x180036348\njz      short loc_180036354                                            ; +0x2c, 0x18003634c\ncmp     r9d, 1                                                         ; +0x2e, 0x18003634e\njnz     short loc_180036376                                            ; +0x32, 0x180036352\nmov     eax, 20h ; ' '                                                 ; +0x34, 0x180036354\njmp     short loc_18003636E                                            ; +0x39, 0x180036359\nmov     eax, 18h                                                       ; +0x3b, 0x18003635b\njmp     short loc_18003636E                                            ; +0x40, 0x180036360\nmov     eax, 10h                                                       ; +0x42, 0x180036362\njmp     short loc_18003636E                                            ; +0x47, 0x180036367\nmov     eax, 8                                                         ; +0x49, 0x180036369\nimul    r10, rax                                                       ; +0x4e, 0x18003636e\nshr     r10, 3                                                         ; +0x52, 0x180036372\nimul    r10d, [rdx+0Ch]                                                ; +0x56, 0x180036376\nmov     edx, [rcx+110h]                                                ; +0x5b, 0x18003637b\nxor     r8d, r8d                                                       ; +0x61, 0x180036381\nmov     rcx, [rcx+170h]                                                ; +0x64, 0x180036384\nadd     edx, r10d                                                      ; +0x6b, 0x18003638b\njmp     sub_1800B3990                                                  ; +0x6e, 0x18003638e", "xrefs": ["sub_180035EF0 @ 0x180035f32"], "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"}