{"type": "func", "start": 401672, "end": 401770, "name": "sub_62108", "pseudocode": "// \n// sub_62108 from 0x62108 to 0x6216a (98 bytes)\n// \n// 2 xrefs:\n// > sub_62010 @ 0x62052\n// > sub_62010 @ 0x620e0\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_62108(_DWORD *a1, int a2)\n{\n  _DWORD *i; // r0\n  _DWORD *v5; // r6\n  int result; // r0\n  int v7; // r0\n  int *v8; // r5\n\n  for ( i = a1 + 148; ; i = v5 + 70 )\n  {\n    v5 = (_DWORD *)*i;\n    if ( *i )\n      v5 -= 70;\n    if ( v5 == a1 + 78 )\n      break;\n    result = (*(int (__fastcall **)(_DWORD *, int))(*v5 + 60))(v5, a2);\n    if ( result )\n      return result;\n  }\n  v7 = a1[17217];\n  v8 = (int *)(v7 + 292);\n  while ( 1 )\n  {\n    v8 = (int *)*v8;\n    if ( v8 == (int *)(v7 + 292) )\n      break;\n    result = sub_49D54((_DWORD *)v8[2], a2);\n    if ( result )\n      return result;\n    v7 = a1[17217];\n  }\n  return 0;\n}", "assembly": "; \n; sub_62108 from 0x62108 to 0x6216a (98 bytes)\n; \n; 2 xrefs:\n; > sub_62010 @ 0x62052\n; > sub_62010 @ 0x620e0\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, 0x62108\nADD             R7, SP, #0xC                                           ; +0x2, 0x6210a\nPUSH.W          {R8}                                                   ; +0x4, 0x6210c\nMOV             R8, R0                                                 ; +0x8, 0x62110\nADD.W           R0, R0, #0x250                                         ; +0xa, 0x62112\nADD.W           R5, R8, #0x138                                         ; +0xe, 0x62116\nMOV             R4, R1                                                 ; +0x12, 0x6211a\nLDR             R6, [R0]                                               ; +0x14, 0x6211c\nCMP             R6, #0                                                 ; +0x16, 0x6211e\nIT NE                                                                  ; +0x18, 0x62120\nSUBNE.W         R6, R6, #0x118                                         ; +0x1a, 0x62122\nCMP             R6, R5                                                 ; +0x1e, 0x62126\nBEQ             loc_6213C                                              ; +0x20, 0x62128\nLDR             R0, [R6]                                               ; +0x22, 0x6212a\nMOV             R1, R4                                                 ; +0x24, 0x6212c\nLDR             R2, [R0,#0x3C]                                         ; +0x26, 0x6212e\nMOV             R0, R6                                                 ; +0x28, 0x62130\nBLX             R2                                                     ; +0x2a, 0x62132\nCBNZ            R0, loc_62164                                          ; +0x2c, 0x62134\nADD.W           R0, R6, #0x118                                         ; +0x2e, 0x62136\nB               loc_6211C                                              ; +0x32, 0x6213a\nLDR             R0, =0x10D04                                           ; +0x34, 0x6213c\nADD.W           R6, R8, R0                                             ; +0x36, 0x6213e\nLDR.W           R0, [R8,R0]                                            ; +0x3a, 0x62142\nADD.W           R5, R0, #0x124                                         ; +0x3e, 0x62146\nLDR             R5, [R5]                                               ; +0x42, 0x6214a\nADD.W           R0, R0, #0x124                                         ; +0x44, 0x6214c\nCMP             R5, R0                                                 ; +0x48, 0x62150\nBEQ             loc_62162                                              ; +0x4a, 0x62152\nLDR             R0, [R5,#8]                                            ; +0x4c, 0x62154\nMOV             R1, R4                                                 ; +0x4e, 0x62156\nBL              sub_49D54                                              ; +0x50, 0x62158\nCBNZ            R0, loc_62164                                          ; +0x54, 0x6215c\nLDR             R0, [R6]                                               ; +0x56, 0x6215e\nB               loc_6214A                                              ; +0x58, 0x62160\nMOVS            R0, #0                                                 ; +0x5a, 0x62162\nPOP.W           {R8}                                                   ; +0x5c, 0x62164\nPOP             {R4-R7,PC}                                             ; +0x60, 0x62168", "xrefs": ["sub_62010 @ 0x62052", "sub_62010 @ 0x620e0"], "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"}