{"type": "func", "start": 773440, "end": 773520, "name": "sub_BCD40", "pseudocode": "// \n// sub_BCD40 from 0xbcd40 to 0xbcd90 (80 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xbcd3e\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\nint __fastcall sub_BCD40(int a1)\n{\n  int result; // r0\n  int v3; // r1\n\n  result = *(_DWORD *)(a1 + 420);\n  if ( result == -1 || (result = sub_50CE2(result), *(_DWORD *)(a1 + 420) = -1, !result) )\n  {\n    v3 = *(_DWORD *)(a1 + 440);\n    if ( v3 )\n    {\n      sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v3, \"../../src/fmod_file_net.cpp\", 777, 1);\n      result = 0;\n      *(_DWORD *)(a1 + 440) = 0;\n    }\n    return sub_BDD20(result);\n  }\n  return result;\n}", "assembly": "; \n; sub_BCD40 from 0xbcd40 to 0xbcd90 (80 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xbcd3e\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            {R2-R4,R6,R7,LR}                                       ; +0x0, 0xbcd40\nADD             R7, SP, #0x10                                          ; +0x2, 0xbcd42\nMOV             R4, R0                                                 ; +0x4, 0xbcd44\nLDR.W           R0, [R0,#0x1A4]; fd                                    ; +0x6, 0xbcd46\nADDS            R1, R0, #1                                             ; +0xa, 0xbcd4a\nBEQ             loc_BCD60                                              ; +0xc, 0xbcd4c\nBL              sub_50CE2                                              ; +0xe, 0xbcd4e\nMOV.W           R1, #0xFFFFFFFF                                        ; +0x12, 0xbcd52\nSTR.W           R1, [R4,#0x1A4]                                        ; +0x16, 0xbcd56\nCBZ             R0, loc_BCD60                                          ; +0x1a, 0xbcd5a\nADD             SP, SP, #8                                             ; +0x1c, 0xbcd5c\nPOP             {R4,R6,R7,PC}                                          ; +0x1e, 0xbcd5e\nLDR.W           R1, [R4,#0x1B8]                                        ; +0x20, 0xbcd60\nCBZ             R1, loc_BCD88                                          ; +0x24, 0xbcd64\nLDR             R0, =(off_E6144 - 0xBCD72)                             ; +0x26, 0xbcd66\nMOVS            R2, #1                                                 ; +0x28, 0xbcd68\nMOVW            R3, #0x309                                             ; +0x2a, 0xbcd6a\nADD             R0, PC; off_E6144                                      ; +0x2e, 0xbcd6e\nLDR             R0, [R0]; off_E8000                                    ; +0x30, 0xbcd70\nLDR             R0, [R0]; dword_F2488                                  ; +0x32, 0xbcd72\nLDR.W           R0, [R0,#(dword_F25D4 - 0xF2488)]                      ; +0x34, 0xbcd74\nSTR             R2, [SP,#8+var_8]                                      ; +0x38, 0xbcd78\nLDR             R2, =(aSrcFmodFileNet - 0xBCD80); \"../../src/fmod_file_net.cpp\" ... ; +0x3a, 0xbcd7a\nADD             R2, PC; \"../../src/fmod_file_net.cpp\"                  ; +0x3c, 0xbcd7c\nBL              sub_BD7AC                                              ; +0x3e, 0xbcd7e\nMOVS            R0, #0                                                 ; +0x42, 0xbcd82\nSTR.W           R0, [R4,#0x1B8]                                        ; +0x44, 0xbcd84\nPOP.W           {R2-R4,R6,R7,LR}                                       ; +0x48, 0xbcd88\nB.W             sub_BDD20                                              ; +0x4c, 0xbcd8c", "xrefs": ["<???> @ 0xbcd3e"], "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"}