{"type": "func", "start": 736112, "end": 736230, "name": "sub_B3B70", "pseudocode": "// \n// sub_B3B70 from 0xb3b70 to 0xb3be6 (118 bytes)\n// \n// 1 xrefs:\n// > sub_B395C @ 0xb3a06\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_B3B70(int a1, int a2, int a3)\n{\n  int v6; // r0\n  int result; // r0\n  int v8; // r0\n  void (__fastcall *v9)(int, int, _DWORD, _DWORD); // r4\n  int v10; // [sp+4h] [bp-1Ch] BYREF\n\n  sub_B3340(a1, 1);\n  v6 = *(_DWORD *)(a1 + 36);\n  if ( *(_DWORD *)(v6 + 71944) )\n  {\n    result = sub_52A58(*(_DWORD *)(v6 + 71944));\n    if ( result )\n      return result;\n    v6 = *(_DWORD *)(a1 + 36);\n  }\n  v10 = 0;\n  sub_57A48(v6, nullptr, &v10);\n  *(_WORD *)(*(_DWORD *)(a1 + 36) + 72008) = (*(unsigned __int16 *)(*(_DWORD *)(a1 + 36) + 72008) + 1) % v10;\n  sub_449B4(a3);\n  sub_449B4(a2);\n  v8 = *(_DWORD *)(a1 + 36);\n  v9 = *(void (__fastcall **)(int, int, _DWORD, _DWORD))(v8 + 69052);\n  if ( v9 )\n  {\n    if ( (*(_BYTE *)(v8 + 69056) & 0x40) != 0 )\n      v9(v8, 64, 0, 0);\n  }\n  return 0;\n}", "assembly": "; \n; sub_B3B70 from 0xb3b70 to 0xb3be6 (118 bytes)\n; \n; 1 xrefs:\n; > sub_B395C @ 0xb3a06\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            {R4-R7,LR}                                             ; +0x0, 0xb3b70\nADD             R7, SP, #0xC                                           ; +0x2, 0xb3b72\nPUSH.W          {R6-R9,R11}                                            ; +0x4, 0xb3b74\nMOV             R8, R1                                                 ; +0x8, 0xb3b78\nMOVS            R1, #1                                                 ; +0xa, 0xb3b7a\nMOV             R9, R2                                                 ; +0xc, 0xb3b7c\nMOV             R4, R0                                                 ; +0xe, 0xb3b7e\nBL              sub_B3340                                              ; +0x10, 0xb3b80\nLDR             R0, [R4,#0x24]                                         ; +0x14, 0xb3b84\nLDR             R1, =0x11908                                           ; +0x16, 0xb3b86\nLDR             R1, [R0,R1]                                            ; +0x18, 0xb3b88\nCBZ             R1, loc_B3B96                                          ; +0x1a, 0xb3b8a\nMOV             R0, R1                                                 ; +0x1c, 0xb3b8c\nBL              sub_52A58                                              ; +0x1e, 0xb3b8e\nCBNZ            R0, loc_B3BE0                                          ; +0x22, 0xb3b92\nLDR             R0, [R4,#0x24]                                         ; +0x24, 0xb3b94\nMOVS            R1, #0                                                 ; +0x26, 0xb3b96\nADD             R2, SP, #8+var_4                                       ; +0x28, 0xb3b98\nSTR             R1, [SP,#8+var_4]                                      ; +0x2a, 0xb3b9a\nMOVS            R1, #0                                                 ; +0x2c, 0xb3b9c\nBL              sub_57A48                                              ; +0x2e, 0xb3b9e\nLDR             R5, [R4,#0x24]                                         ; +0x32, 0xb3ba2\nLDR             R6, =0x11948                                           ; +0x34, 0xb3ba4\nLDR             R1, [SP,#8+var_4]                                      ; +0x36, 0xb3ba6\nLDRH            R0, [R5,R6]                                            ; +0x38, 0xb3ba8\nADDS            R0, #1                                                 ; +0x3a, 0xb3baa\nBLX             j___aeabi_idivmod                                      ; +0x3c, 0xb3bac\nMOV             R0, R9                                                 ; +0x40, 0xb3bb0\nSTRH            R1, [R5,R6]                                            ; +0x42, 0xb3bb2\nBL              sub_449B4                                              ; +0x44, 0xb3bb4\nMOV             R0, R8                                                 ; +0x48, 0xb3bb8\nBL              sub_449B4                                              ; +0x4a, 0xb3bba\nLDR             R0, [R4,#0x24]                                         ; +0x4e, 0xb3bbe\nLDR             R1, =0x10DBC                                           ; +0x50, 0xb3bc0\nLDR             R4, [R0,R1]                                            ; +0x52, 0xb3bc2\nCBZ             R4, loc_B3BDE                                          ; +0x54, 0xb3bc4\nLDR             R1, =0x10C9C                                           ; +0x56, 0xb3bc6\nADD             R1, R0                                                 ; +0x58, 0xb3bc8\nLDRB.W          R2, [R1,#0x124]                                        ; +0x5a, 0xb3bca\nLSLS            R2, R2, #0x19                                          ; +0x5e, 0xb3bce\nBPL             loc_B3BDE                                              ; +0x60, 0xb3bd0\nLDR             R1, [R1]                                               ; +0x62, 0xb3bd2\nMOVS            R2, #0                                                 ; +0x64, 0xb3bd4\nSTR             R1, [SP,#8+var_8]                                      ; +0x66, 0xb3bd6\nMOVS            R1, #0x40 ; '@'                                        ; +0x68, 0xb3bd8\nMOVS            R3, #0                                                 ; +0x6a, 0xb3bda\nBLX             R4                                                     ; +0x6c, 0xb3bdc\nMOVS            R0, #0                                                 ; +0x6e, 0xb3bde\nPOP.W           {R2,R3,R8,R9,R11}                                      ; +0x70, 0xb3be0\nPOP             {R4-R7,PC}                                             ; +0x74, 0xb3be4", "xrefs": ["sub_B395C @ 0xb3a06"], "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"}