{"type": "func", "start": 6442873184, "end": 6442873334, "name": "sub_180067160", "pseudocode": "// \n// sub_180067160 from 0x180067160 to 0x1800671f6 (150 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801ac8f0\n// > <???> @ 0x1801f93b4\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_180067160(__int64 *a1, int a2, float a3, __int64 a4)\n{\n  __int64 v4; // rbx\n  int v5; // edx\n  int v6; // edx\n  __int64 result; // rax\n  __int64 v8; // r8\n  __int64 v9; // [rsp+30h] [rbp+8h] BYREF\n\n  v4 = *a1;\n  if ( a2 )\n  {\n    v5 = a2 - 1;\n    if ( v5 )\n    {\n      v6 = v5 - 1;\n      if ( v6 )\n      {\n        if ( v6 != 1 )\n          return 31;\n        *(float *)(v4 + 656) = a3;\n      }\n      else\n      {\n        *(float *)(v4 + 652) = a3;\n      }\n    }\n    else\n    {\n      *(float *)(v4 + 644) = a3;\n    }\n  }\n  else\n  {\n    *(float *)(v4 + 640) = a3;\n  }\n  LOBYTE(a4) = 1;\n  result = sub_1800FCF40(*(_QWORD *)(v4 + 168), &v9, 16, a4);\n  if ( !(_DWORD)result )\n  {\n    LOBYTE(v8) = 1;\n    *(_BYTE *)v9 = 7;\n    *(_QWORD *)(v9 + 8) = v4;\n    return sub_1800FD370(*(_QWORD *)(v4 + 168), v9, v8);\n  }\n  return result;\n}", "assembly": "; \n; sub_180067160 from 0x180067160 to 0x1800671f6 (150 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801ac8f0\n; > <???> @ 0x1801f93b4\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\npush    rbx                                                            ; +0x0, 0x180067160\nsub     rsp, 20h                                                       ; +0x2, 0x180067162\nmov     rbx, [rcx]                                                     ; +0x6, 0x180067166\ntest    edx, edx                                                       ; +0x9, 0x180067169\njz      short loc_1800671A5                                            ; +0xb, 0x18006716b\nsub     edx, 1                                                         ; +0xd, 0x18006716d\njz      short loc_18006719B                                            ; +0x10, 0x180067170\nsub     edx, 1                                                         ; +0x12, 0x180067172\njz      short loc_180067191                                            ; +0x15, 0x180067175\ncmp     edx, 1                                                         ; +0x17, 0x180067177\njz      short loc_180067187                                            ; +0x1a, 0x18006717a\nmov     eax, 1Fh                                                       ; +0x1c, 0x18006717c\nadd     rsp, 20h                                                       ; +0x21, 0x180067181\npop     rbx                                                            ; +0x25, 0x180067185\nretn                                                                   ; +0x26, 0x180067186\nmovss   dword ptr [rbx+290h], xmm2                                     ; +0x27, 0x180067187\njmp     short loc_1800671AD                                            ; +0x2f, 0x18006718f\nmovss   dword ptr [rbx+28Ch], xmm2                                     ; +0x31, 0x180067191\njmp     short loc_1800671AD                                            ; +0x39, 0x180067199\nmovss   dword ptr [rbx+284h], xmm2                                     ; +0x3b, 0x18006719b\njmp     short loc_1800671AD                                            ; +0x43, 0x1800671a3\nmovss   dword ptr [rbx+280h], xmm2                                     ; +0x45, 0x1800671a5\nmov     rcx, [rbx+0A8h]                                                ; +0x4d, 0x1800671ad\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x54, 0x1800671b4\nmov     r9b, 1                                                         ; +0x59, 0x1800671b9\nmov     r8d, 10h                                                       ; +0x5c, 0x1800671bc\ncall    sub_1800FCF40                                                  ; +0x62, 0x1800671c2\ntest    eax, eax                                                       ; +0x67, 0x1800671c7\njnz     short loc_1800671F0                                            ; +0x69, 0x1800671c9\nmov     rax, [rsp+28h+arg_0]                                           ; +0x6b, 0x1800671cb\nmov     r8b, 1                                                         ; +0x70, 0x1800671d0\nmov     byte ptr [rax], 7                                              ; +0x73, 0x1800671d3\nmov     rax, [rsp+28h+arg_0]                                           ; +0x76, 0x1800671d6\nmov     [rax+8], rbx                                                   ; +0x7b, 0x1800671db\nmov     rdx, [rsp+28h+arg_0]                                           ; +0x7f, 0x1800671df\nmov     rcx, [rbx+0A8h]                                                ; +0x84, 0x1800671e4\ncall    sub_1800FD370                                                  ; +0x8b, 0x1800671eb\nadd     rsp, 20h                                                       ; +0x90, 0x1800671f0\npop     rbx                                                            ; +0x94, 0x1800671f4\nretn                                                                   ; +0x95, 0x1800671f5", "xrefs": ["<???> @ 0x1801ac8f0", "<???> @ 0x1801f93b4"], "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"}