{"type": "func", "start": 6443077424, "end": 6443077516, "name": "tinyxml2::DynArray<char,20>::EnsureCapacity", "pseudocode": "// \n// tinyxml2::DynArray<char,20>::EnsureCapacity from 0x180098f30 to 0x180098f8c (92 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18013ef34\n// > <???> @ 0x18013ef44\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b6d74\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\nvoid __fastcall tinyxml2::DynArray<char,20>::EnsureCapacity(__int64 a1, int a2)\n{\n  int v3; // edi\n  void *v4; // rsi\n\n  if ( a2 > *(_DWORD *)(a1 + 28) )\n  {\n    v3 = 2 * a2;\n    v4 = operator new(2 * a2);\n    memcpy(v4, *(const void **)a1, *(int *)(a1 + 32));\n    if ( *(_QWORD *)a1 != a1 + 8 )\n      j_j_free_0(*(void **)a1);\n    *(_QWORD *)a1 = v4;\n    *(_DWORD *)(a1 + 28) = v3;\n  }\n}", "assembly": "; \n; tinyxml2::DynArray<char,20>::EnsureCapacity from 0x180098f30 to 0x180098f8c (92 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18013ef34\n; > <???> @ 0x18013ef44\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b6d74\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    rbx                                                            ; +0x0, 0x180098f30\nsub     rsp, 20h                                                       ; +0x2, 0x180098f32\nmov     rbx, rcx                                                       ; +0x6, 0x180098f36\ncmp     edx, [rcx+1Ch]                                                 ; +0x9, 0x180098f39\njle     short loc_180098F86                                            ; +0xc, 0x180098f3c\nmov     [rsp+28h+arg_0], rsi                                           ; +0xe, 0x180098f3e\nmov     [rsp+28h+arg_8], rdi                                           ; +0x13, 0x180098f43\nlea     edi, [rdx+rdx]                                                 ; +0x18, 0x180098f48\nmovsxd  rcx, edi; Size                                                 ; +0x1b, 0x180098f4b\ncall    j_??2@YAPEAX_K@Z; operator new(unsigned __int64)               ; +0x1e, 0x180098f4e\nmovsxd  r8, dword ptr [rbx+20h]; Size                                  ; +0x23, 0x180098f53\nmov     rcx, rax; void *                                               ; +0x27, 0x180098f57\nmov     rdx, [rbx]; Src                                                ; +0x2a, 0x180098f5a\nmov     rsi, rax                                                       ; +0x2d, 0x180098f5d\ncall    memcpy                                                         ; +0x30, 0x180098f60\nmov     rcx, [rbx]; Block                                              ; +0x35, 0x180098f65\nlea     rdx, [rbx+8]                                                   ; +0x38, 0x180098f68\ncmp     rcx, rdx                                                       ; +0x3c, 0x180098f6c\njz      short loc_180098F76                                            ; +0x3f, 0x180098f6f\ncall    j_j_free_0                                                     ; +0x41, 0x180098f71\nmov     [rbx], rsi                                                     ; +0x46, 0x180098f76\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x49, 0x180098f79\nmov     [rbx+1Ch], edi                                                 ; +0x4e, 0x180098f7e\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x51, 0x180098f81\nadd     rsp, 20h                                                       ; +0x56, 0x180098f86\npop     rbx                                                            ; +0x5a, 0x180098f8a\nretn                                                                   ; +0x5b, 0x180098f8b", "xrefs": ["<???> @ 0x18013ef34", "<???> @ 0x18013ef44", "<???> @ 0x1801438a8", "<???> @ 0x1801b6d74"], "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"}