{"type": "func", "start": 6443234112, "end": 6443234204, "name": "sub_1800BF340", "pseudocode": "// \n// sub_1800BF340 from 0x1800bf340 to 0x1800bf39c (92 bytes)\n// \n// 3 xrefs:\n// > sub_1800BF5D0 @ 0x1800bf5de\n// > <???> @ 0x1801fd944\n// > <???> @ 0x1801fd950\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_1800BF340(__int64 a1, int a2, __int64 a3, int a4, _DWORD *a5)\n{\n  if ( a3 && a4 > 0 )\n    sub_1800B7CA0(\n      a3,\n      (unsigned int)a4,\n      \"%s PCM wave writer (default filename = %s)\",\n      (&off_18016BF98)[2 * a2],\n      off_1801AEC78);\n  if ( a5 )\n    *a5 = a2;\n  return 0;\n}", "assembly": "; \n; sub_1800BF340 from 0x1800bf340 to 0x1800bf39c (92 bytes)\n; \n; 3 xrefs:\n; > sub_1800BF5D0 @ 0x1800bf5de\n; > <???> @ 0x1801fd944\n; > <???> @ 0x1801fd950\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, 0x1800bf340\nsub     rsp, 30h                                                       ; +0x2, 0x1800bf342\nmovsxd  rbx, edx                                                       ; +0x6, 0x1800bf346\nmov     r10d, r9d                                                      ; +0x9, 0x1800bf349\nmov     r11, r8                                                        ; +0xc, 0x1800bf34c\ntest    r8, r8                                                         ; +0xf, 0x1800bf34f\njz      short loc_1800BF388                                            ; +0x12, 0x1800bf352\ntest    r9d, r9d                                                       ; +0x14, 0x1800bf354\njle     short loc_1800BF388                                            ; +0x17, 0x1800bf357\nmov     rax, cs:off_1801AEC78; \"fmodoutput.wav\"                        ; +0x19, 0x1800bf359\nlea     rcx, off_18016BF98; \"16 bit Integer\"                           ; +0x20, 0x1800bf360\nmov     r9, rbx                                                        ; +0x27, 0x1800bf367\nmov     [rsp+38h+var_18], rax                                          ; +0x2a, 0x1800bf36a\nadd     r9, r9                                                         ; +0x2f, 0x1800bf36f\nlea     r8, aSPcmWaveWriter; \"%s PCM wave writer (default filename = \"... ; +0x32, 0x1800bf372\nmov     edx, r10d                                                      ; +0x39, 0x1800bf379\nmov     r9, [rcx+r9*8]                                                 ; +0x3c, 0x1800bf37c\nmov     rcx, r11                                                       ; +0x40, 0x1800bf380\ncall    sub_1800B7CA0                                                  ; +0x43, 0x1800bf383\nmov     rax, [rsp+38h+arg_20]                                          ; +0x48, 0x1800bf388\ntest    rax, rax                                                       ; +0x4d, 0x1800bf38d\njz      short loc_1800BF394                                            ; +0x50, 0x1800bf390\nmov     [rax], ebx                                                     ; +0x52, 0x1800bf392\nxor     eax, eax                                                       ; +0x54, 0x1800bf394\nadd     rsp, 30h                                                       ; +0x56, 0x1800bf396\npop     rbx                                                            ; +0x5a, 0x1800bf39a\nretn                                                                   ; +0x5b, 0x1800bf39b", "xrefs": ["sub_1800BF5D0 @ 0x1800bf5de", "<???> @ 0x1801fd944", "<???> @ 0x1801fd950"], "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"}