{"type": "func", "start": 529840, "end": 529970, "name": "sub_815B0", "pseudocode": "// \n// sub_815B0 from 0x815b0 to 0x81632 (130 bytes)\n// \n// 1 xrefs:\n// > sub_8129C @ 0x8143c\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_815B0(int a1)\n{\n  int v2; // r0\n  int v3; // r9\n  _DWORD *v4; // r6\n  int i; // r4\n  int j; // r5\n  int v7; // r11\n  int v8; // r0\n\n  v2 = sub_CEEF0(a1 + 224, -1);\n  v3 = 0;\n  if ( v2 )\n  {\n    v4 = (_DWORD *)v2;\n    for ( i = 0; i < v4[2]; ++i )\n    {\n      if ( *(_DWORD *)(v4[1] + 4 * i) )\n      {\n        for ( j = *(_DWORD *)(*v4 + 4 * i) + 1; *(_BYTE *)(j - 1); ++j )\n        {\n          if ( *(_BYTE *)(j - 1) == 61 )\n          {\n            *(_BYTE *)(j - 1) = 0;\n            v7 = *(_DWORD *)(*v4 + 4 * i);\n            sub_BE198(j);\n            v8 = sub_B0B08(a1, 3, v7, j);\n            if ( !v8 )\n              break;\n            return v8;\n          }\n        }\n      }\n    }\n    return 0;\n  }\n  return v3;\n}", "assembly": "; \n; sub_815B0 from 0x815b0 to 0x81632 (130 bytes)\n; \n; 1 xrefs:\n; > sub_8129C @ 0x8143c\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, 0x815b0\nADD             R7, SP, #0xC                                           ; +0x2, 0x815b2\nPUSH.W          {R5-R11}                                               ; +0x4, 0x815b4\nMOV             R8, R0                                                 ; +0x8, 0x815b8\nADDS            R0, #0xE0                                              ; +0xa, 0x815ba\nMOV.W           R1, #0xFFFFFFFF                                        ; +0xc, 0x815bc\nBL              sub_CEEF0                                              ; +0x10, 0x815c0\nMOV.W           R9, #0                                                 ; +0x14, 0x815c4\nCBZ             R0, loc_8162A                                          ; +0x18, 0x815c8\nMOV             R6, R0                                                 ; +0x1a, 0x815ca\nMOV.W           R10, #6                                                ; +0x1c, 0x815cc\nMOVS            R4, #0                                                 ; +0x20, 0x815d0\nLDR             R0, [R6,#8]                                            ; +0x22, 0x815d2\nCMP             R4, R0                                                 ; +0x24, 0x815d4\nBGE             loc_81622                                              ; +0x26, 0x815d6\nLDR             R0, [R6,#4]                                            ; +0x28, 0x815d8\nLDR.W           R0, [R0,R4,LSL#2]                                      ; +0x2a, 0x815da\nCBZ             R0, loc_8161E                                          ; +0x2e, 0x815de\nLDR             R0, [R6]                                               ; +0x30, 0x815e0\nLDR.W           R0, [R0,R4,LSL#2]                                      ; +0x32, 0x815e2\nADDS            R5, R0, #1                                             ; +0x36, 0x815e6\nLDRB.W          R0, [R5,#-1]                                           ; +0x38, 0x815e8\nCBZ             R0, loc_8161E                                          ; +0x3c, 0x815ec\nCMP             R0, #0x3D ; '='                                        ; +0x3e, 0x815ee\nBEQ             loc_815F6                                              ; +0x40, 0x815f0\nADDS            R5, #1                                                 ; +0x42, 0x815f2\nB               loc_815E8                                              ; +0x44, 0x815f4\nSTRB.W          R9, [R5,#-1]                                           ; +0x46, 0x815f6\nLDR             R0, [R6]                                               ; +0x4a, 0x815fa\nLDR.W           R11, [R0,R4,LSL#2]                                     ; +0x4c, 0x815fc\nMOV             R0, R5                                                 ; +0x50, 0x81600\nBL              sub_BE198                                              ; +0x52, 0x81602\nADDS            R0, #1                                                 ; +0x56, 0x81606\nSTRD.W          R0, R10, [SP,#0xC+var_C]                               ; +0x58, 0x81608\nMOV             R0, R8                                                 ; +0x5c, 0x8160c\nMOVS            R1, #3                                                 ; +0x5e, 0x8160e\nMOV             R2, R11                                                ; +0x60, 0x81610\nMOV             R3, R5                                                 ; +0x62, 0x81612\nSTR.W           R9, [SP,#0xC+var_4]                                    ; +0x64, 0x81614\nBL              sub_B0B08                                              ; +0x68, 0x81618\nCBNZ            R0, loc_81628                                          ; +0x6c, 0x8161c\nADDS            R4, #1                                                 ; +0x6e, 0x8161e\nB               loc_815D2                                              ; +0x70, 0x81620\nMOV.W           R9, #0                                                 ; +0x72, 0x81622\nB               loc_8162A                                              ; +0x76, 0x81626\nMOV             R9, R0                                                 ; +0x78, 0x81628\nMOV             R0, R9                                                 ; +0x7a, 0x8162a\nPOP.W           {R1-R3,R8-R11}                                         ; +0x7c, 0x8162c\nPOP             {R4-R7,PC}                                             ; +0x80, 0x81630", "xrefs": ["sub_8129C @ 0x8143c"], "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"}