{"type": "func", "start": 6443573184, "end": 6443573433, "name": "sub_180111FC0", "pseudocode": "// \n// sub_180111FC0 from 0x180111fc0 to 0x1801120b9 (249 bytes)\n// \n// 5 xrefs:\n// > sub_1800D9D70 @ 0x1800d9e31\n// > sub_1800DA550 @ 0x1800da644\n// > <???> @ 0x180190c9c\n// > <???> @ 0x180190cac\n// > <???> @ 0x180201bb0\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_180111FC0(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 result; // rax\n\n  *(_QWORD *)(a1 + 32) = a2;\n  *(_QWORD *)(a1 + 24) = a3;\n  result = sub_1801120C0(a1 + 1240, 0x20000, 1);\n  if ( !(_DWORD)result )\n  {\n    result = sub_1801120C0(a1 + 1312, 0x20000, 4);\n    if ( !(_DWORD)result )\n    {\n      result = FMOD_OS_CriticalSection_Create((struct _RTL_CRITICAL_SECTION **)(a1 + 40), 0);\n      if ( !(_DWORD)result )\n      {\n        result = sub_1801129D0(a1, 0, 0, 0xFFFFFFFFLL);\n        if ( !(_DWORD)result )\n        {\n          result = sub_1800B8690(a1 + 48, \"FMOD profiler thread (recv)\", (__int64)sub_1801128A0, a1, 7, 0, 0, 0, 0);\n          if ( !(_DWORD)result )\n            return sub_1800B8690(a1 + 384, \"FMOD profiler thread (send)\", (__int64)sub_180112D00, a1, 7, 0, 0, 0, 0);\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_180111FC0 from 0x180111fc0 to 0x1801120b9 (249 bytes)\n; \n; 5 xrefs:\n; > sub_1800D9D70 @ 0x1800d9e31\n; > sub_1800DA550 @ 0x1800da644\n; > <???> @ 0x180190c9c\n; > <???> @ 0x180190cac\n; > <???> @ 0x180201bb0\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, 0x180111fc0\nsub     rsp, 50h                                                       ; +0x2, 0x180111fc2\nmov     [rcx+20h], rdx                                                 ; +0x6, 0x180111fc6\nmov     rbx, rcx                                                       ; +0xa, 0x180111fca\nmov     [rcx+18h], r8                                                  ; +0xd, 0x180111fcd\nmov     edx, 20000h                                                    ; +0x11, 0x180111fd1\nadd     rcx, 4D8h                                                      ; +0x16, 0x180111fd6\nmov     r8d, 1                                                         ; +0x1d, 0x180111fdd\ncall    sub_1801120C0                                                  ; +0x23, 0x180111fe3\ntest    eax, eax                                                       ; +0x28, 0x180111fe8\njnz     loc_1801120B3                                                  ; +0x2a, 0x180111fea\nlea     rcx, [rbx+520h]                                                ; +0x30, 0x180111ff0\nmov     edx, 20000h                                                    ; +0x37, 0x180111ff7\nlea     r8d, [rax+4]                                                   ; +0x3c, 0x180111ffc\ncall    sub_1801120C0                                                  ; +0x40, 0x180112000\ntest    eax, eax                                                       ; +0x45, 0x180112005\njnz     loc_1801120B3                                                  ; +0x47, 0x180112007\nlea     rcx, [rbx+28h]                                                 ; +0x4d, 0x18011200d\nxor     edx, edx                                                       ; +0x51, 0x180112011\ncall    FMOD_OS_CriticalSection_Create                                 ; +0x53, 0x180112013\ntest    eax, eax                                                       ; +0x58, 0x180112018\njnz     loc_1801120B3                                                  ; +0x5a, 0x18011201a\nmov     r9d, 0FFFFFFFFh                                                ; +0x60, 0x180112020\nxor     r8d, r8d                                                       ; +0x66, 0x180112026\nxor     edx, edx                                                       ; +0x69, 0x180112029\nmov     rcx, rbx                                                       ; +0x6b, 0x18011202b\ncall    sub_1801129D0                                                  ; +0x6e, 0x18011202e\ntest    eax, eax                                                       ; +0x73, 0x180112033\njnz     short loc_1801120B3                                            ; +0x75, 0x180112035\nmov     [rsp+58h+var_18], al                                           ; +0x77, 0x180112037\nlea     rcx, [rbx+30h]                                                 ; +0x7b, 0x18011203b\nmov     [rsp+58h+arg_0], rdi                                           ; +0x7f, 0x18011203f\nlea     r8, sub_1801128A0                                              ; +0x84, 0x180112044\nxor     edi, edi                                                       ; +0x8b, 0x18011204b\nlea     rdx, aFmodProfilerTh; \"FMOD profiler thread (recv)\"            ; +0x8d, 0x18011204d\nmov     [rsp+58h+var_20], rdi                                          ; +0x94, 0x180112054\nmov     r9, rbx                                                        ; +0x99, 0x180112059\nmov     [rsp+58h+var_28], edi                                          ; +0x9c, 0x18011205c\nmov     [rsp+58h+var_30], dil                                          ; +0xa0, 0x180112060\nmov     [rsp+58h+var_38], 7                                            ; +0xa5, 0x180112065\ncall    sub_1800B8690                                                  ; +0xad, 0x18011206d\ntest    eax, eax                                                       ; +0xb2, 0x180112072\njnz     short loc_1801120AE                                            ; +0xb4, 0x180112074\nmov     [rsp+58h+var_18], dil                                          ; +0xb6, 0x180112076\nlea     rcx, [rbx+180h]                                                ; +0xbb, 0x18011207b\nmov     [rsp+58h+var_20], rdi                                          ; +0xc2, 0x180112082\nlea     r8, sub_180112D00                                              ; +0xc7, 0x180112087\nmov     [rsp+58h+var_28], edi                                          ; +0xce, 0x18011208e\nlea     rdx, aFmodProfilerTh_0; \"FMOD profiler thread (send)\"          ; +0xd2, 0x180112092\nmov     [rsp+58h+var_30], dil                                          ; +0xd9, 0x180112099\nmov     r9, rbx                                                        ; +0xde, 0x18011209e\nmov     [rsp+58h+var_38], 7                                            ; +0xe1, 0x1801120a1\ncall    sub_1800B8690                                                  ; +0xe9, 0x1801120a9\nmov     rdi, [rsp+58h+arg_0]                                           ; +0xee, 0x1801120ae\nadd     rsp, 50h                                                       ; +0xf3, 0x1801120b3\npop     rbx                                                            ; +0xf7, 0x1801120b7\nretn                                                                   ; +0xf8, 0x1801120b8", "xrefs": ["sub_1800D9D70 @ 0x1800d9e31", "sub_1800DA550 @ 0x1800da644", "<???> @ 0x180190c9c", "<???> @ 0x180190cac", "<???> @ 0x180201bb0"], "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"}