{"type": "func", "start": 6443730496, "end": 6443730618, "name": "_realloc_base", "pseudocode": "// \n// _realloc_base from 0x180138640 to 0x1801386ba (122 bytes)\n// \n// 3 xrefs:\n// > j__realloc_base @ 0x18012f84c\n// > _recalloc_base @ 0x18013b62e\n// > <???> @ 0x180203680\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 *__cdecl realloc_base(void *Block, size_t Size)\n{\n  void *result; // rax\n\n  if ( !Block )\n    return malloc_base(Size);\n  if ( !Size )\n  {\n    free_base(Block);\n    return nullptr;\n  }\n  if ( Size > 0xFFFFFFFFFFFFFFE0uLL )\n  {\nLABEL_6:\n    *errno() = 12;\n    return nullptr;\n  }\n  while ( 1 )\n  {\n    result = HeapReAlloc(hHeap, 0, Block, Size);\n    if ( result )\n      return result;\n    if ( !(unsigned int)sub_18013BEC4() || !callnewh(Size) )\n      goto LABEL_6;\n  }\n}", "assembly": "; \n; _realloc_base from 0x180138640 to 0x1801386ba (122 bytes)\n; \n; 3 xrefs:\n; > j__realloc_base @ 0x18012f84c\n; > _recalloc_base @ 0x18013b62e\n; > <???> @ 0x180203680\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180138640\npush    rdi                                                            ; +0x5, 0x180138645\nsub     rsp, 20h                                                       ; +0x6, 0x180138646\nmov     rbx, rdx                                                       ; +0xa, 0x18013864a\nmov     rdi, rcx                                                       ; +0xd, 0x18013864d\ntest    rcx, rcx                                                       ; +0x10, 0x180138650\njnz     short loc_18013865F                                            ; +0x13, 0x180138653\nmov     rcx, rdx; Size                                                 ; +0x15, 0x180138655\ncall    _malloc_base                                                   ; +0x18, 0x180138658\njmp     short loc_18013867E                                            ; +0x1d, 0x18013865d\ntest    rbx, rbx                                                       ; +0x1f, 0x18013865f\njnz     short loc_18013866B                                            ; +0x22, 0x180138662\ncall    _free_base                                                     ; +0x24, 0x180138664\njmp     short loc_18013867C                                            ; +0x29, 0x180138669\ncmp     rbx, 0FFFFFFFFFFFFFFE0h                                        ; +0x2b, 0x18013866b\njbe     short loc_18013869E                                            ; +0x2f, 0x18013866f\ncall    _errno                                                         ; +0x31, 0x180138671\nmov     dword ptr [rax], 0Ch                                           ; +0x36, 0x180138676\nxor     eax, eax                                                       ; +0x3c, 0x18013867c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3e, 0x18013867e\nadd     rsp, 20h                                                       ; +0x43, 0x180138683\npop     rdi                                                            ; +0x47, 0x180138687\nretn                                                                   ; +0x48, 0x180138688\ncall    sub_18013BEC4                                                  ; +0x49, 0x180138689\ntest    eax, eax                                                       ; +0x4e, 0x18013868e\njz      short loc_180138671                                            ; +0x50, 0x180138690\nmov     rcx, rbx; Size                                                 ; +0x52, 0x180138692\ncall    _callnewh                                                      ; +0x55, 0x180138695\ntest    eax, eax                                                       ; +0x5a, 0x18013869a\njz      short loc_180138671                                            ; +0x5c, 0x18013869c\nmov     rcx, cs:hHeap; hHeap                                           ; +0x5e, 0x18013869e\nmov     r9, rbx; dwBytes                                               ; +0x65, 0x1801386a5\nmov     r8, rdi; lpMem                                                 ; +0x68, 0x1801386a8\nxor     edx, edx; dwFlags                                              ; +0x6b, 0x1801386ab\ncall    cs:HeapReAlloc                                                 ; +0x6d, 0x1801386ad\ntest    rax, rax                                                       ; +0x73, 0x1801386b3\njz      short loc_180138689                                            ; +0x76, 0x1801386b6\njmp     short loc_18013867E                                            ; +0x78, 0x1801386b8", "xrefs": ["j__realloc_base @ 0x18012f84c", "_recalloc_base @ 0x18013b62e", "<???> @ 0x180203680"], "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"}