{"type": "func", "start": 6442693200, "end": 6442693744, "name": "sub_18003B250", "pseudocode": "// \n// sub_18003B250 from 0x18003b250 to 0x18003b470 (544 bytes)\n// \n// 5 xrefs:\n// > sub_1800BEE10 @ 0x1800bee43\n// > sub_1800BEF40 @ 0x1800bf0c1\n// > sub_1800BF280 @ 0x1800bf2b3\n// > sub_1800BF3B0 @ 0x1800bf504\n// > <???> @ 0x1801f7d58\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_18003B250(HANDLE hFile)\n{\n  __int64 result; // rax\n\n  result = FMOD_OS_File_Seek(hFile, 0);\n  if ( !(_DWORD)result )\n  {\n    result = FMOD_OS_File_Write(hFile);\n    if ( !(_DWORD)result )\n    {\n      result = FMOD_OS_File_Write(hFile);\n      if ( !(_DWORD)result )\n      {\n        result = FMOD_OS_File_Write(hFile);\n        if ( !(_DWORD)result )\n        {\n          result = FMOD_OS_File_Write(hFile);\n          if ( !(_DWORD)result )\n            return FMOD_OS_File_Write(hFile);\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_18003B250 from 0x18003b250 to 0x18003b470 (544 bytes)\n; \n; 5 xrefs:\n; > sub_1800BEE10 @ 0x1800bee43\n; > sub_1800BEF40 @ 0x1800bf0c1\n; > sub_1800BF280 @ 0x1800bf2b3\n; > sub_1800BF3B0 @ 0x1800bf504\n; > <???> @ 0x1801f7d58\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    rbp                                                            ; +0x0, 0x18003b250\npush    rbx                                                            ; +0x2, 0x18003b252\npush    rdi                                                            ; +0x3, 0x18003b253\nlea     rbp, [rsp-3Fh]                                                 ; +0x4, 0x18003b254\nsub     rsp, 0A0h                                                      ; +0x9, 0x18003b259\nmov     rax, cs:__security_cookie                                      ; +0x10, 0x18003b260\nxor     rax, rsp                                                       ; +0x17, 0x18003b267\nmov     [rbp+4Fh+var_20], rax                                          ; +0x1a, 0x18003b26a\nmov     rbx, rcx                                                       ; +0x1e, 0x18003b26e\nmovsxd  r10, r8d                                                       ; +0x21, 0x18003b271\nxor     r11d, r11d                                                     ; +0x24, 0x18003b274\nmov     ecx, edx                                                       ; +0x27, 0x18003b277\nmov     r8d, r11d                                                      ; +0x29, 0x18003b279\nsub     ecx, 1                                                         ; +0x2c, 0x18003b27c\njz      short loc_18003B2AD                                            ; +0x2f, 0x18003b27f\nsub     ecx, 1                                                         ; +0x31, 0x18003b281\njz      short loc_18003B2A5                                            ; +0x34, 0x18003b284\nsub     ecx, 1                                                         ; +0x36, 0x18003b286\njz      short loc_18003B29D                                            ; +0x39, 0x18003b289\nsub     ecx, 1                                                         ; +0x3b, 0x18003b28b\njz      short loc_18003B295                                            ; +0x3e, 0x18003b28e\ncmp     ecx, 1                                                         ; +0x40, 0x18003b290\njnz     short loc_18003B2B3                                            ; +0x43, 0x18003b293\nmov     r8d, 20h ; ' '                                                 ; +0x45, 0x18003b295\njmp     short loc_18003B2B3                                            ; +0x4b, 0x18003b29b\nmov     r8d, 18h                                                       ; +0x4d, 0x18003b29d\njmp     short loc_18003B2B3                                            ; +0x53, 0x18003b2a3\nmov     r8d, 10h                                                       ; +0x55, 0x18003b2a5\njmp     short loc_18003B2B3                                            ; +0x5b, 0x18003b2ab\nmov     r8d, 8                                                         ; +0x5d, 0x18003b2ad\nmov     eax, 1                                                         ; +0x63, 0x18003b2b3\nmov     [rbp+4Fh+var_6C], r9d                                          ; +0x68, 0x18003b2b8\nmov     ecx, r8d                                                       ; +0x6c, 0x18003b2bc\nmov     [rbp+4Fh+var_50], r11                                          ; +0x6f, 0x18003b2bf\nshr     ecx, 3                                                         ; +0x73, 0x18003b2c3\nmov     edi, 3                                                         ; +0x76, 0x18003b2c6\ncmp     edx, 5                                                         ; +0x7b, 0x18003b2cb\nmov     [rbp+4Fh+var_6E], r10w                                         ; +0x7e, 0x18003b2ce\nxorps   xmm0, xmm0                                                     ; +0x83, 0x18003b2d3\nmov     [rbp+4Fh+var_62], r8w                                          ; +0x86, 0x18003b2d6\ncmovz   ax, di                                                         ; +0x8b, 0x18003b2db\nimul    r9d, r10d                                                      ; +0x8f, 0x18003b2df\nmov     [rbp+4Fh+var_70], ax                                           ; +0x93, 0x18003b2e3\nmovzx   eax, cx                                                        ; +0x97, 0x18003b2e7\nmovdqu  [rbp+4Fh+var_60], xmm0                                         ; +0x9a, 0x18003b2ea\nimul    r9d, ecx                                                       ; +0x9f, 0x18003b2ef\nmovzx   ecx, r10w                                                      ; +0xa3, 0x18003b2f3\nimul    ecx, eax                                                       ; +0xa7, 0x18003b2f7\nmov     [rbp+4Fh+var_68], r9d                                          ; +0xaa, 0x18003b2fa\nmov     [rbp+4Fh+var_64], cx                                           ; +0xae, 0x18003b2fe\ncmp     r10d, 2                                                        ; +0xb2, 0x18003b302\njg      short loc_18003B31B                                            ; +0xb6, 0x18003b306\ncmp     r8d, 10h                                                       ; +0xb8, 0x18003b308\njbe     short loc_18003B313                                            ; +0xbc, 0x18003b30c\ncmp     edx, 5                                                         ; +0xbe, 0x18003b30e\njnz     short loc_18003B31B                                            ; +0xc1, 0x18003b311\nxor     r9b, r9b                                                       ; +0xc3, 0x18003b313\njmp     loc_18003B3A0                                                  ; +0xc6, 0x18003b316\nmov     word ptr [rbp+4Fh+var_60+2], r8w                               ; +0xcb, 0x18003b31b\nmov     eax, 0FFFEh                                                    ; +0xd0, 0x18003b320\nmov     [rbp+4Fh+var_70], ax                                           ; +0xd5, 0x18003b325\nmov     eax, 16h                                                       ; +0xd9, 0x18003b329\nmov     word ptr [rbp+4Fh+var_60], ax                                  ; +0xde, 0x18003b32e\nmov     r9b, 1                                                         ; +0xe2, 0x18003b332\nmov     [rbp+4Fh+var_48], r11d                                         ; +0xe5, 0x18003b335\nmov     [rbp+4Fh+var_44], 1                                            ; +0xe9, 0x18003b339\nmov     [rbp+4Fh+var_40], edi                                          ; +0xf0, 0x18003b340\nmov     [rbp+4Fh+var_3C], 7                                            ; +0xf3, 0x18003b343\nmov     [rbp+4Fh+var_38], 33h ; '3'                                    ; +0xfa, 0x18003b34a\nmov     [rbp+4Fh+var_34], 37h ; '7'                                    ; +0x101, 0x18003b351\nmov     [rbp+4Fh+var_30], 3Fh ; '?'                                    ; +0x108, 0x18003b358\nmov     [rbp+4Fh+var_2C], 0F7h                                         ; +0x10f, 0x18003b35f\nmov     [rbp+4Fh+var_28], 0FFh                                         ; +0x116, 0x18003b366\ncmp     r10d, 8                                                        ; +0x11d, 0x18003b36d\njg      short loc_18003B37D                                            ; +0x121, 0x18003b371\nmov     ecx, [rbp+r10*4+4Fh+var_48]                                    ; +0x123, 0x18003b373\nmov     dword ptr [rbp+4Fh+var_60+4], ecx                              ; +0x128, 0x18003b378\njmp     short loc_18003B384                                            ; +0x12b, 0x18003b37b\nmov     dword ptr [rbp+4Fh+var_60+4], 0FFFFFFFFh                       ; +0x12d, 0x18003b37d\ncmp     edx, 5                                                         ; +0x134, 0x18003b384\nlea     rcx, qword_180165310                                           ; +0x137, 0x18003b387\nlea     rax, qword_180165300                                           ; +0x13e, 0x18003b38e\ncmovz   rax, rcx                                                       ; +0x145, 0x18003b395\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x149, 0x18003b399\nmovups  [rbp+4Fh+var_60+8], xmm0                                       ; +0x14c, 0x18003b39c\nmov     eax, 28h ; '('                                                 ; +0x150, 0x18003b3a0\nmov     [rbp+4Fh+var_90], 45564157h                                    ; +0x155, 0x18003b3a5\ntest    r9b, r9b                                                       ; +0x15c, 0x18003b3ac\nmov     [rbp+4Fh+var_80], 20746D66h                                    ; +0x15f, 0x18003b3af\nmov     edi, 12h                                                       ; +0x166, 0x18003b3b6\nmov     [rbp+4Fh+var_78], 61746164h                                    ; +0x16b, 0x18003b3bb\ncmovnz  edi, eax                                                       ; +0x172, 0x18003b3c2\nmov     [rbp+4Fh+var_88], 46464952h                                    ; +0x175, 0x18003b3c5\nmov     eax, [rbp+4Fh+arg_20]                                          ; +0x17c, 0x18003b3cc\nxor     edx, edx                                                       ; +0x17f, 0x18003b3cf\nmov     [rbp+4Fh+var_74], eax                                          ; +0x181, 0x18003b3d1\nmov     rcx, rbx                                                       ; +0x184, 0x18003b3d4\nadd     eax, 14h                                                       ; +0x187, 0x18003b3d7\nmov     [rbp+4Fh+var_7C], edi                                          ; +0x18a, 0x18003b3da\nadd     eax, edi                                                       ; +0x18d, 0x18003b3dd\nmov     [rbp+4Fh+var_84], eax                                          ; +0x18f, 0x18003b3df\ncall    FMOD_OS_File_Seek                                              ; +0x192, 0x18003b3e2\ntest    eax, eax                                                       ; +0x197, 0x18003b3e7\njnz     short loc_18003B459                                            ; +0x199, 0x18003b3e9\nxor     r9d, r9d                                                       ; +0x19b, 0x18003b3eb\nlea     r8d, [rax+8]                                                   ; +0x19e, 0x18003b3ee\nlea     rdx, [rbp+4Fh+var_88]                                          ; +0x1a2, 0x18003b3f2\nmov     rcx, rbx; hFile                                                ; +0x1a6, 0x18003b3f6\ncall    FMOD_OS_File_Write                                             ; +0x1a9, 0x18003b3f9\ntest    eax, eax                                                       ; +0x1ae, 0x18003b3fe\njnz     short loc_18003B459                                            ; +0x1b0, 0x18003b400\nxor     r9d, r9d                                                       ; +0x1b2, 0x18003b402\nlea     r8d, [rax+4]                                                   ; +0x1b5, 0x18003b405\nlea     rdx, [rbp+4Fh+var_90]                                          ; +0x1b9, 0x18003b409\nmov     rcx, rbx; hFile                                                ; +0x1bd, 0x18003b40d\ncall    FMOD_OS_File_Write                                             ; +0x1c0, 0x18003b410\ntest    eax, eax                                                       ; +0x1c5, 0x18003b415\njnz     short loc_18003B459                                            ; +0x1c7, 0x18003b417\nxor     r9d, r9d                                                       ; +0x1c9, 0x18003b419\nlea     r8d, [rax+8]                                                   ; +0x1cc, 0x18003b41c\nlea     rdx, [rbp+4Fh+var_80]                                          ; +0x1d0, 0x18003b420\nmov     rcx, rbx; hFile                                                ; +0x1d4, 0x18003b424\ncall    FMOD_OS_File_Write                                             ; +0x1d7, 0x18003b427\ntest    eax, eax                                                       ; +0x1dc, 0x18003b42c\njnz     short loc_18003B459                                            ; +0x1de, 0x18003b42e\nxor     r9d, r9d                                                       ; +0x1e0, 0x18003b430\nlea     rdx, [rbp+4Fh+var_70]                                          ; +0x1e3, 0x18003b433\nmov     r8d, edi                                                       ; +0x1e7, 0x18003b437\nmov     rcx, rbx; hFile                                                ; +0x1ea, 0x18003b43a\ncall    FMOD_OS_File_Write                                             ; +0x1ed, 0x18003b43d\ntest    eax, eax                                                       ; +0x1f2, 0x18003b442\njnz     short loc_18003B459                                            ; +0x1f4, 0x18003b444\nxor     r9d, r9d                                                       ; +0x1f6, 0x18003b446\nlea     r8d, [rax+8]                                                   ; +0x1f9, 0x18003b449\nlea     rdx, [rbp+4Fh+var_78]                                          ; +0x1fd, 0x18003b44d\nmov     rcx, rbx; hFile                                                ; +0x201, 0x18003b451\ncall    FMOD_OS_File_Write                                             ; +0x204, 0x18003b454\nmov     rcx, [rbp+4Fh+var_20]                                          ; +0x209, 0x18003b459\nxor     rcx, rsp; StackCookie                                          ; +0x20d, 0x18003b45d\ncall    __security_check_cookie                                        ; +0x210, 0x18003b460\nadd     rsp, 0A0h                                                      ; +0x215, 0x18003b465\npop     rdi                                                            ; +0x21c, 0x18003b46c\npop     rbx                                                            ; +0x21d, 0x18003b46d\npop     rbp                                                            ; +0x21e, 0x18003b46e\nretn                                                                   ; +0x21f, 0x18003b46f", "xrefs": ["sub_1800BEE10 @ 0x1800bee43", "sub_1800BEF40 @ 0x1800bf0c1", "sub_1800BF280 @ 0x1800bf2b3", "sub_1800BF3B0 @ 0x1800bf504", "<???> @ 0x1801f7d58"], "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"}