{"type": "func", "start": 287296, "end": 287362, "name": "sub_46240", "pseudocode": "// \n// sub_46240 from 0x46240 to 0x46282 (66 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:40:38 +0000\n// \n\nint __fastcall sub_46240(int a1, int a2, int a3, int a4)\n{\n  int v5; // r0\n  int result; // r0\n  int v7; // r4\n  int v8; // [sp+4h] [bp-14h] BYREF\n  int v9; // [sp+8h] [bp-10h]\n  int v10; // [sp+Ch] [bp-Ch]\n\n  v8 = a2;\n  v9 = a3;\n  v10 = a4;\n  v5 = *(_DWORD *)(a1 + 128);\n  if ( !v5 )\n    return 30;\n  result = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 28))(v5);\n  if ( !result )\n  {\n    v8 = *(_DWORD *)(a1 + 4);\n    v9 = 8;\n    LOBYTE(v10) = 0;\n    sub_44998((int)&v8);\n    v7 = sub_44CB0(a1);\n    sub_448CC((int)&v8);\n    return v7;\n  }\n  return result;\n}", "assembly": "; \n; sub_46240 from 0x46240 to 0x46282 (66 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:40:38 +0000\n; \nPUSH            {R0-R5,R7,LR}                                          ; +0x0, 0x46240\nADD             R7, SP, #0x18                                          ; +0x2, 0x46242\nMOV             R4, R0                                                 ; +0x4, 0x46244\nLDR.W           R0, [R0,#0x80]                                         ; +0x6, 0x46246\nCBZ             R0, loc_4627C                                          ; +0xa, 0x4624a\nLDR             R1, [R0]                                               ; +0xc, 0x4624c\nLDR             R1, [R1,#0x1C]                                         ; +0xe, 0x4624e\nBLX             R1                                                     ; +0x10, 0x46250\nCBNZ            R0, loc_4627E                                          ; +0x12, 0x46252\nLDR             R0, [R4,#4]                                            ; +0x14, 0x46254\nMOVS            R1, #8                                                 ; +0x16, 0x46256\nADD             R5, SP, #0x10+var_C                                    ; +0x18, 0x46258\nSTRD.W          R0, R1, [SP,#0x10+var_C]                               ; +0x1a, 0x4625a\nMOVS            R0, #0                                                 ; +0x1e, 0x4625e\nSTRB.W          R0, [SP,#0x10+var_4]                                   ; +0x20, 0x46260\nMOV             R0, R5                                                 ; +0x24, 0x46264\nBL              sub_44998                                              ; +0x26, 0x46266\nMOV             R0, R4                                                 ; +0x2a, 0x4626a\nBL              sub_44CB0                                              ; +0x2c, 0x4626c\nMOV             R4, R0                                                 ; +0x30, 0x46270\nMOV             R0, R5                                                 ; +0x32, 0x46272\nBL              sub_448CC                                              ; +0x34, 0x46274\nMOV             R0, R4                                                 ; +0x38, 0x46278\nB               loc_4627E                                              ; +0x3a, 0x4627a\nMOVS            R0, #0x1E                                              ; +0x3c, 0x4627c\nADD             SP, SP, #0x10                                          ; +0x3e, 0x4627e\nPOP             {R4,R5,R7,PC}                                          ; +0x40, 0x46280", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}