{"type": "func", "start": 462500, "end": 462618, "name": "sub_70EA4", "pseudocode": "// \n// sub_70EA4 from 0x70ea4 to 0x70f1a (118 bytes)\n// \n// 1 xrefs:\n// > sub_70364 @ 0x70364\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_70EA4(_DWORD *a1, int a2, unsigned int a3, int a4)\n{\n  int v5; // r0\n  int result; // r0\n  int v7; // [sp+4h] [bp-Ch] BYREF\n\n  v7 = a4;\n  if ( a2 < 0 )\n    return 32;\n  v5 = a1[3];\n  if ( v5 )\n  {\n    if ( v5 <= a2 )\n      return 32;\n  }\n  result = 0;\n  if ( *(_DWORD *)(a1[55] + 364) << 31 )\n  {\n    v7 = 0;\n    if ( a1[62] != a2 )\n      a1[62] = a2;\n    result = sub_4C6EA(a3, &v7, *(_DWORD *)(a1[1] + 52 * a2 + 8), *(_DWORD *)(a1[1] + 52 * a2 + 4));\n    if ( !result )\n      return sub_BBB84(a1[55], v7 + *(_DWORD *)(a1[61] + 296 * a1[62] + 256));\n  }\n  return result;\n}", "assembly": "; \n; sub_70EA4 from 0x70ea4 to 0x70f1a (118 bytes)\n; \n; 1 xrefs:\n; > sub_70364 @ 0x70364\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-R5,R7,LR}                                          ; +0x0, 0x70ea4\nADD             R7, SP, #0x10                                          ; +0x2, 0x70ea6\nCMP             R1, #0                                                 ; +0x4, 0x70ea8\nBMI             loc_70EB6                                              ; +0x6, 0x70eaa\nMOV             R4, R0                                                 ; +0x8, 0x70eac\nLDR             R0, [R0,#0xC]                                          ; +0xa, 0x70eae\nCBZ             R0, loc_70EBC                                          ; +0xc, 0x70eb0\nCMP             R0, R1                                                 ; +0xe, 0x70eb2\nBGT             loc_70EBC                                              ; +0x10, 0x70eb4\nMOVS            R0, #0x20 ; ' '                                        ; +0x12, 0x70eb6\nADD             SP, SP, #8                                             ; +0x14, 0x70eb8\nPOP             {R4,R5,R7,PC}                                          ; +0x16, 0x70eba\nLDR.W           R0, [R4,#0xDC]                                         ; +0x18, 0x70ebc\nLDR.W           R0, [R0,#0x16C]                                        ; +0x1c, 0x70ec0\nLSLS            R0, R0, #0x1F                                          ; +0x20, 0x70ec4\nMOV.W           R0, #0                                                 ; +0x22, 0x70ec6\nBEQ             loc_70EB8                                              ; +0x26, 0x70eca\nSTR             R0, [SP,#8+var_4]                                      ; +0x28, 0x70ecc\nMOVS            R3, #0x34 ; '4'                                        ; +0x2a, 0x70ece\nLDR.W           R0, [R4,#0xF8]                                         ; +0x2c, 0x70ed0\nCMP             R0, R1                                                 ; +0x30, 0x70ed4\nIT NE                                                                  ; +0x32, 0x70ed6\nSTRNE.W         R1, [R4,#0xF8]                                         ; +0x34, 0x70ed8\nLDR             R0, [R4,#4]                                            ; +0x38, 0x70edc\nMLA             R0, R1, R3, R0                                         ; +0x3a, 0x70ede\nADD             R1, SP, #8+var_4                                       ; +0x3e, 0x70ee2\nLDRD.W          R3, R5, [R0,#4]                                        ; +0x40, 0x70ee4\nMOVS            R0, #1                                                 ; +0x44, 0x70ee8\nSTR             R0, [SP,#8+var_8]                                      ; +0x46, 0x70eea\nMOV             R0, R2                                                 ; +0x48, 0x70eec\nMOV             R2, R5                                                 ; +0x4a, 0x70eee\nBL              sub_4C6EA                                              ; +0x4c, 0x70ef0\nCMP             R0, #0                                                 ; +0x50, 0x70ef4\nBNE             loc_70EB8                                              ; +0x52, 0x70ef6\nLDRD.W          R0, R1, [R4,#0xF4]                                     ; +0x54, 0x70ef8\nMOV.W           R2, #0x128                                             ; +0x58, 0x70efc\nMLA             R0, R1, R2, R0                                         ; +0x5c, 0x70f00\nLDR             R1, [SP,#8+var_4]                                      ; +0x60, 0x70f04\nMOVS            R2, #0                                                 ; +0x62, 0x70f06\nLDR.W           R0, [R0,#0x100]                                        ; +0x64, 0x70f08\nADD             R1, R0                                                 ; +0x68, 0x70f0c\nSTR             R1, [SP,#8+var_4]                                      ; +0x6a, 0x70f0e\nLDR.W           R0, [R4,#0xDC]                                         ; +0x6c, 0x70f10\nBL              sub_BBB84                                              ; +0x70, 0x70f14\nB               loc_70EB8                                              ; +0x74, 0x70f18", "xrefs": ["sub_70364 @ 0x70364"], "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"}