{"type": "func", "start": 6442810928, "end": 6442811020, "name": "sub_180057E30", "pseudocode": "// \n// sub_180057E30 from 0x180057e30 to 0x180057e8c (92 bytes)\n// \n// 10 xrefs:\n// > sub_1800E22D0 @ 0x1800e22f1\n// > sub_1800E2300 @ 0x1800e2307\n// > unknown_libname_8 @ 0x1800e2317\n// > sub_1800E2320 @ 0x1800e2327\n// > int `std::exception_ptr::_Current_exception @ 0x1800e234b\n// > <???> @ 0x180138aaf\n// > <???> @ 0x180138ab6\n// > <???> @ 0x180138abc\n// > <???> @ 0x1801b29f4\n// > <???> @ 0x1801b2a00\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\n__int64 __fastcall sub_180057E30(__int64 a1)\n{\n  _QWORD *v2; // rcx\n  __int64 result; // rax\n\n  v2 = *(_QWORD **)a1;\n  if ( v2 )\n  {\n    if ( ((*(_QWORD *)(a1 + 16) - (_QWORD)v2) & 0xFFFFFFFFFFFFFFFCuLL) >= 0x1000 )\n    {\n      if ( (unsigned __int64)v2 - *(v2 - 1) - 8 > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n      v2 = (_QWORD *)*(v2 - 1);\n    }\n    j_j_free_0(v2);\n    result = 0;\n    *(_QWORD *)a1 = 0;\n    *(_QWORD *)(a1 + 8) = 0;\n    *(_QWORD *)(a1 + 16) = 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_180057E30 from 0x180057e30 to 0x180057e8c (92 bytes)\n; \n; 10 xrefs:\n; > sub_1800E22D0 @ 0x1800e22f1\n; > sub_1800E2300 @ 0x1800e2307\n; > unknown_libname_8 @ 0x1800e2317\n; > sub_1800E2320 @ 0x1800e2327\n; > int `std::exception_ptr::_Current_exception @ 0x1800e234b\n; > <???> @ 0x180138aaf\n; > <???> @ 0x180138ab6\n; > <???> @ 0x180138abc\n; > <???> @ 0x1801b29f4\n; > <???> @ 0x1801b2a00\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, 0x180057e30\nsub     rsp, 20h                                                       ; +0x2, 0x180057e32\nmov     rbx, rcx                                                       ; +0x6, 0x180057e36\nmov     rcx, [rcx]                                                     ; +0x9, 0x180057e39\ntest    rcx, rcx                                                       ; +0xc, 0x180057e3c\njz      short loc_180057E7F                                            ; +0xf, 0x180057e3f\nmov     rdx, [rbx+10h]                                                 ; +0x11, 0x180057e41\nsub     rdx, rcx                                                       ; +0x15, 0x180057e45\nand     rdx, 0FFFFFFFFFFFFFFFCh                                        ; +0x18, 0x180057e48\ncmp     rdx, 1000h                                                     ; +0x1c, 0x180057e4c\njb      short loc_180057E6D                                            ; +0x23, 0x180057e53\nmov     r8, [rcx-8]                                                    ; +0x25, 0x180057e55\nadd     rdx, 27h ; '''                                                 ; +0x29, 0x180057e59\nsub     rcx, r8                                                        ; +0x2d, 0x180057e5d\nlea     rax, [rcx-8]                                                   ; +0x30, 0x180057e60\ncmp     rax, 1Fh                                                       ; +0x34, 0x180057e64\nja      short loc_180057E85                                            ; +0x38, 0x180057e68\nmov     rcx, r8; Block                                                 ; +0x3a, 0x180057e6a\ncall    j_j_free_0                                                     ; +0x3d, 0x180057e6d\nxor     eax, eax                                                       ; +0x42, 0x180057e72\nmov     [rbx], rax                                                     ; +0x44, 0x180057e74\nmov     [rbx+8], rax                                                   ; +0x47, 0x180057e77\nmov     [rbx+10h], rax                                                 ; +0x4b, 0x180057e7b\nadd     rsp, 20h                                                       ; +0x4f, 0x180057e7f\npop     rbx                                                            ; +0x53, 0x180057e83\nretn                                                                   ; +0x54, 0x180057e84\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x55, 0x180057e85\ndb 0CCh                                                                ; +0x5b, 0x180057e8b", "xrefs": ["sub_1800E22D0 @ 0x1800e22f1", "sub_1800E2300 @ 0x1800e2307", "unknown_libname_8 @ 0x1800e2317", "sub_1800E2320 @ 0x1800e2327", "int `std::exception_ptr::_Current_exception @ 0x1800e234b", "<???> @ 0x180138aaf", "<???> @ 0x180138ab6", "<???> @ 0x180138abc", "<???> @ 0x1801b29f4", "<???> @ 0x1801b2a00"], "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"}