{"type": "func", "start": 293276, "end": 293316, "name": "sub_4799C", "pseudocode": "// \n// sub_4799C from 0x4799c to 0x479c4 (40 bytes)\n// \n// 4 xrefs:\n// > sub_46B58 @ 0x46bb0\n// > sub_46B58 @ 0x46e38\n// > sub_49672 @ 0x496fa\n// > sub_4BB6C @ 0x4bc6c\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_4799C(int a1)\n{\n  _BYTE *v1; // r2\n  int v2; // r0\n  int v3; // r1\n  bool v5; // zf\n\n  v1 = (_BYTE *)(a1 + 67464);\n  v2 = *(_DWORD *)(a1 + 68252);\n  v3 = -1;\n  do\n  {\n    if ( ++v3 >= v2 )\n      return 0;\n    v5 = *v1 == 0;\n    v1 += 112;\n  }\n  while ( v5 );\n  return 1;\n}", "assembly": "; \n; sub_4799C from 0x4799c to 0x479c4 (40 bytes)\n; \n; 4 xrefs:\n; > sub_46B58 @ 0x46bb0\n; > sub_46B58 @ 0x46e38\n; > sub_49672 @ 0x496fa\n; > sub_4BB6C @ 0x4bc6c\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\nLDR             R1, =0x10788                                           ; +0x0, 0x4799c\nADDS            R2, R0, R1                                             ; +0x2, 0x4799e\nLDR             R1, =0x10A9C                                           ; +0x4, 0x479a0\nLDR             R0, [R0,R1]                                            ; +0x6, 0x479a2\nMOV.W           R1, #0xFFFFFFFF                                        ; +0x8, 0x479a4\nADDS            R1, #1                                                 ; +0xc, 0x479a8\nCMP             R1, R0                                                 ; +0xe, 0x479aa\nITT GE                                                                 ; +0x10, 0x479ac\nMOVGE           R0, #0                                                 ; +0x12, 0x479ae\nBXGE            LR                                                     ; +0x14, 0x479b0\nADD.W           R3, R2, #0x70 ; 'p'                                    ; +0x16, 0x479b2\nLDRB            R2, [R2]                                               ; +0x1a, 0x479b6\nCMP             R2, #0                                                 ; +0x1c, 0x479b8\nMOV             R2, R3                                                 ; +0x1e, 0x479ba\nITT NE                                                                 ; +0x20, 0x479bc\nMOVNE           R0, #1                                                 ; +0x22, 0x479be\nBXNE            LR                                                     ; +0x24, 0x479c0\nB               loc_479A8                                              ; +0x26, 0x479c2", "xrefs": ["sub_46B58 @ 0x46bb0", "sub_46B58 @ 0x46e38", "sub_49672 @ 0x496fa", "sub_4BB6C @ 0x4bc6c"], "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"}