{"type": "func", "start": 299264, "end": 299364, "name": "sub_49100", "pseudocode": "// \n// sub_49100 from 0x49100 to 0x49164 (100 bytes)\n// \n// 2 xrefs:\n// > sub_49100 @ 0x49156\n// > sub_49540 @ 0x4963c\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_49100(_DWORD *a1, _QWORD *a2)\n{\n  int v2; // r12\n  int v4; // r2\n  int i; // r3\n  int v6; // r5\n  int v7; // r1\n  _DWORD *v8; // r5\n  _DWORD *j; // r6\n\n  v2 = a1[2];\n  if ( v2 )\n  {\n    v4 = a1[3];\n    for ( i = 0; i < v4; ++i )\n    {\n      v6 = *(_DWORD *)(v2 + 4 * i);\n      *(_QWORD *)(v6 + 8) = *a2;\n      *(_QWORD *)(v6 + 16) = a2[1];\n    }\n  }\n  else\n  {\n    v7 = a1[14];\n    *(_QWORD *)(v7 + 8) = *a2;\n    *(_QWORD *)(v7 + 16) = a2[1];\n  }\n  v8 = a1 + 73;\n  for ( j = a1 + 73; ; sub_49100(j[2], a2) )\n  {\n    j = (_DWORD *)*j;\n    if ( j == v8 )\n      break;\n  }\n  return 0;\n}", "assembly": "; \n; sub_49100 from 0x49100 to 0x49164 (100 bytes)\n; \n; 2 xrefs:\n; > sub_49100 @ 0x49156\n; > sub_49540 @ 0x4963c\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, 0x49100\nADD             R7, SP, #0xC                                           ; +0x2, 0x49102\nPUSH.W          {R11}                                                  ; +0x4, 0x49104\nLDR.W           R12, [R0,#8]                                           ; +0x8, 0x49108\nMOV             R4, R1                                                 ; +0xc, 0x4910c\nCMP.W           R12, #0                                                ; +0xe, 0x4910e\nBEQ             loc_49134                                              ; +0x12, 0x49112\nLDR             R2, [R0,#0xC]                                          ; +0x14, 0x49114\nMOVS            R3, #0                                                 ; +0x16, 0x49116\nCMP             R3, R2                                                 ; +0x18, 0x49118\nBGE             loc_49146                                              ; +0x1a, 0x4911a\nLDR.W           R5, [R12,R3,LSL#2]                                     ; +0x1c, 0x4911c\nADDS            R3, #1                                                 ; +0x20, 0x49120\nLDRD.W          R6, R1, [R4]                                           ; +0x22, 0x49122\nSTRD.W          R6, R1, [R5,#8]                                        ; +0x26, 0x49126\nLDRD.W          R1, R6, [R4,#8]                                        ; +0x2a, 0x4912a\nSTRD.W          R1, R6, [R5,#0x10]                                     ; +0x2e, 0x4912e\nB               loc_49118                                              ; +0x32, 0x49132\nLDR             R1, [R0,#0x38]                                         ; +0x34, 0x49134\nLDRD.W          R2, R3, [R4]                                           ; +0x36, 0x49136\nSTRD.W          R2, R3, [R1,#8]                                        ; +0x3a, 0x4913a\nLDRD.W          R2, R3, [R4,#8]                                        ; +0x3e, 0x4913e\nSTRD.W          R2, R3, [R1,#0x10]                                     ; +0x42, 0x49142\nADD.W           R5, R0, #0x124                                         ; +0x46, 0x49146\nMOV             R6, R5                                                 ; +0x4a, 0x4914a\nLDR             R6, [R6]                                               ; +0x4c, 0x4914c\nCMP             R6, R5                                                 ; +0x4e, 0x4914e\nBEQ             loc_4915C                                              ; +0x50, 0x49150\nLDR             R0, [R6,#8]                                            ; +0x52, 0x49152\nMOV             R1, R4                                                 ; +0x54, 0x49154\nBL              sub_49100                                              ; +0x56, 0x49156\nB               loc_4914C                                              ; +0x5a, 0x4915a\nMOVS            R0, #0                                                 ; +0x5c, 0x4915c\nPOP.W           {R11}                                                  ; +0x5e, 0x4915e\nPOP             {R4-R7,PC}                                             ; +0x62, 0x49162", "xrefs": ["sub_49100 @ 0x49156", "sub_49540 @ 0x4963c"], "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"}