{"type": "func", "start": 6442739120, "end": 6442739716, "name": "sub_1800465B0", "pseudocode": "// \n// sub_1800465B0 from 0x1800465b0 to 0x180046804 (596 bytes)\n// \n// 2 xrefs:\n// > sub_180045B60 @ 0x180046053\n// > <???> @ 0x1801f8208\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:53:13 +0000\n// \n\n_BOOL8 __fastcall sub_1800465B0(__int64 a1, __int64 a2, __int64 a3)\n{\n  size_t v6; // rcx\n  _BYTE *v7; // rax\n  _BYTE *v8; // r8\n  unsigned int v10; // eax\n  size_t v11; // rcx\n  _BYTE *v12; // rax\n  _BYTE *v13; // r8\n  unsigned int v14; // eax\n  __int64 v15; // rax\n  size_t v16; // rcx\n  _BYTE *v17; // rax\n  _BYTE *v18; // r8\n  unsigned int v19; // eax\n  unsigned int v20; // [rsp+38h] [rbp+10h] BYREF\n\n  if ( !(unsigned int)sub_180041D20(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), &v20, 0x20u) )\n    return 0;\n  *(_DWORD *)a3 = v20;\n  if ( !(unsigned int)sub_180041D20(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), &v20, 0x20u) )\n    return 0;\n  v6 = v20 + 1LL;\n  if ( v6 < v20 )\n  {\n    *(_QWORD *)(a3 + 8) = 0;\nLABEL_6:\n    **(_DWORD **)a2 = 8;\n    return 0;\n  }\n  v7 = j__malloc_base(v6);\n  *(_QWORD *)(a3 + 8) = v7;\n  v8 = v7;\n  if ( !v7 )\n    goto LABEL_6;\n  v10 = v20;\n  if ( v20 )\n  {\n    if ( !(unsigned int)sub_180041BB0(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), v8, v20) )\n      return 0;\n    v10 = v20;\n  }\n  *(_BYTE *)(v10 + *(_QWORD *)(a3 + 8)) = 0;\n  if ( !(unsigned int)sub_180041D20(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), &v20, 0x20u) )\n    return 0;\n  v11 = v20 + 1LL;\n  if ( v11 < v20 )\n  {\n    *(_QWORD *)(a3 + 16) = 0;\n    goto LABEL_6;\n  }\n  v12 = j__malloc_base(v11);\n  *(_QWORD *)(a3 + 16) = v12;\n  v13 = v12;\n  if ( !v12 )\n    goto LABEL_6;\n  v14 = v20;\n  if ( v20 )\n  {\n    if ( !(unsigned int)sub_180041BB0(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), v13, v20) )\n      return 0;\n    v14 = v20;\n  }\n  *(_BYTE *)(v14 + *(_QWORD *)(a3 + 16)) = 0;\n  if ( !(unsigned int)sub_180041D20(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), (unsigned int *)(a3 + 24), 0x20u)\n    || !(unsigned int)sub_180041D20(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), (unsigned int *)(a3 + 28), 0x20u)\n    || !(unsigned int)sub_180041D20(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), (unsigned int *)(a3 + 32), 0x20u)\n    || !(unsigned int)sub_180041D20(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), (unsigned int *)(a3 + 36), 0x20u)\n    || !(unsigned int)sub_180041D20(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), (unsigned int *)(a3 + 40), 0x20u) )\n  {\n    return 0;\n  }\n  v15 = *(unsigned int *)(a3 + 40);\n  v16 = v15 + 1;\n  if ( (_DWORD)v15 )\n    v16 = *(unsigned int *)(a3 + 40);\n  v17 = j__malloc_base(v16);\n  *(_QWORD *)(a3 + 48) = v17;\n  v18 = v17;\n  if ( !v17 )\n    goto LABEL_6;\n  v19 = *(_DWORD *)(a3 + 40);\n  return !v19 || (unsigned int)sub_180041BB0(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), v18, v19);\n}", "assembly": "; \n; sub_1800465B0 from 0x1800465b0 to 0x180046804 (596 bytes)\n; \n; 2 xrefs:\n; > sub_180045B60 @ 0x180046053\n; > <???> @ 0x1801f8208\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:53:13 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800465b0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800465b5\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x1800465ba\npush    r14                                                            ; +0xf, 0x1800465bf\nsub     rsp, 20h                                                       ; +0x11, 0x1800465c1\nmov     r9d, cs:dword_180165A58                                        ; +0x15, 0x1800465c5\nmov     rbx, rdx                                                       ; +0x1c, 0x1800465cc\nmov     rdx, [rdx+8]                                                   ; +0x1f, 0x1800465cf\nmov     rdi, r8                                                        ; +0x23, 0x1800465d3\nlea     r8, [rsp+28h+arg_8]                                            ; +0x26, 0x1800465d6\nmov     rsi, rcx                                                       ; +0x2b, 0x1800465db\nmov     rdx, [rdx+78h]                                                 ; +0x2e, 0x1800465de\ncall    sub_180041D20                                                  ; +0x32, 0x1800465e2\ntest    eax, eax                                                       ; +0x37, 0x1800465e7\njz      short loc_180046642                                            ; +0x39, 0x1800465e9\nmov     eax, [rsp+28h+arg_8]                                           ; +0x3b, 0x1800465eb\nlea     r8, [rsp+28h+arg_8]                                            ; +0x3f, 0x1800465ef\nmov     [rdi], eax                                                     ; +0x44, 0x1800465f4\nmov     rcx, rsi                                                       ; +0x46, 0x1800465f6\nmov     rdx, [rbx+8]                                                   ; +0x49, 0x1800465f9\nmov     r9d, cs:dword_180165A5C                                        ; +0x4d, 0x1800465fd\nmov     rdx, [rdx+78h]                                                 ; +0x54, 0x180046604\ncall    sub_180041D20                                                  ; +0x58, 0x180046608\ntest    eax, eax                                                       ; +0x5d, 0x18004660d\njz      short loc_180046642                                            ; +0x5f, 0x18004660f\nmov     eax, [rsp+28h+arg_8]                                           ; +0x61, 0x180046611\nlea     rcx, [rax+1]; Size                                             ; +0x65, 0x180046615\ncmp     rcx, rax                                                       ; +0x69, 0x180046619\njnb     short loc_180046628                                            ; +0x6c, 0x18004661c\nmov     qword ptr [rdi+8], 0                                           ; +0x6e, 0x18004661e\njmp     short loc_180046639                                            ; +0x76, 0x180046626\ncall    j__malloc_base                                                 ; +0x78, 0x180046628\nmov     [rdi+8], rax                                                   ; +0x7d, 0x18004662d\nmov     r8, rax                                                        ; +0x81, 0x180046631\ntest    rax, rax                                                       ; +0x84, 0x180046634\njnz     short loc_18004665A                                            ; +0x87, 0x180046637\nmov     rax, [rbx]                                                     ; +0x89, 0x180046639\nmov     dword ptr [rax], 8                                             ; +0x8c, 0x18004663c\nxor     eax, eax                                                       ; +0x92, 0x180046642\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x94, 0x180046644\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x99, 0x180046649\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x9e, 0x18004664e\nadd     rsp, 20h                                                       ; +0xa3, 0x180046653\npop     r14                                                            ; +0xa7, 0x180046657\nretn                                                                   ; +0xa9, 0x180046659\nmov     eax, [rsp+28h+arg_8]                                           ; +0xaa, 0x18004665a\ntest    eax, eax                                                       ; +0xae, 0x18004665e\njz      short loc_18004667D                                            ; +0xb0, 0x180046660\nmov     rdx, [rbx+8]                                                   ; +0xb2, 0x180046662\nmov     r9d, eax                                                       ; +0xb6, 0x180046666\nmov     rcx, rsi                                                       ; +0xb9, 0x180046669\nmov     rdx, [rdx+78h]                                                 ; +0xbc, 0x18004666c\ncall    sub_180041BB0                                                  ; +0xc0, 0x180046670\ntest    eax, eax                                                       ; +0xc5, 0x180046675\njz      short loc_180046642                                            ; +0xc7, 0x180046677\nmov     eax, [rsp+28h+arg_8]                                           ; +0xc9, 0x180046679\nmov     ecx, eax                                                       ; +0xcd, 0x18004667d\nlea     r8, [rsp+28h+arg_8]                                            ; +0xcf, 0x18004667f\nmov     rax, [rdi+8]                                                   ; +0xd4, 0x180046684\nmov     byte ptr [rcx+rax], 0                                          ; +0xd8, 0x180046688\nmov     rcx, rsi                                                       ; +0xdc, 0x18004668c\nmov     rdx, [rbx+8]                                                   ; +0xdf, 0x18004668f\nmov     r9d, cs:dword_180165A60                                        ; +0xe3, 0x180046693\nmov     rdx, [rdx+78h]                                                 ; +0xea, 0x18004669a\ncall    sub_180041D20                                                  ; +0xee, 0x18004669e\ntest    eax, eax                                                       ; +0xf3, 0x1800466a3\njz      short loc_180046642                                            ; +0xf5, 0x1800466a5\nmov     eax, [rsp+28h+arg_8]                                           ; +0xf7, 0x1800466a7\nlea     rcx, [rax+1]; Size                                             ; +0xfb, 0x1800466ab\ncmp     rcx, rax                                                       ; +0xff, 0x1800466af\njnb     short loc_1800466C1                                            ; +0x102, 0x1800466b2\nmov     qword ptr [rdi+10h], 0                                         ; +0x104, 0x1800466b4\njmp     loc_180046639                                                  ; +0x10c, 0x1800466bc\ncall    j__malloc_base                                                 ; +0x111, 0x1800466c1\nmov     [rdi+10h], rax                                                 ; +0x116, 0x1800466c6\nmov     r8, rax                                                        ; +0x11a, 0x1800466ca\ntest    rax, rax                                                       ; +0x11d, 0x1800466cd\njz      loc_180046639                                                  ; +0x120, 0x1800466d0\nmov     eax, [rsp+28h+arg_8]                                           ; +0x126, 0x1800466d6\ntest    eax, eax                                                       ; +0x12a, 0x1800466da\njz      short loc_1800466FD                                            ; +0x12c, 0x1800466dc\nmov     rdx, [rbx+8]                                                   ; +0x12e, 0x1800466de\nmov     r9d, eax                                                       ; +0x132, 0x1800466e2\nmov     rcx, rsi                                                       ; +0x135, 0x1800466e5\nmov     rdx, [rdx+78h]                                                 ; +0x138, 0x1800466e8\ncall    sub_180041BB0                                                  ; +0x13c, 0x1800466ec\ntest    eax, eax                                                       ; +0x141, 0x1800466f1\njz      loc_180046642                                                  ; +0x143, 0x1800466f3\nmov     eax, [rsp+28h+arg_8]                                           ; +0x149, 0x1800466f9\nmov     ecx, eax                                                       ; +0x14d, 0x1800466fd\nlea     r8, [rdi+18h]                                                  ; +0x14f, 0x1800466ff\nmov     rax, [rdi+10h]                                                 ; +0x153, 0x180046703\nmov     byte ptr [rcx+rax], 0                                          ; +0x157, 0x180046707\nmov     rcx, rsi                                                       ; +0x15b, 0x18004670b\nmov     rdx, [rbx+8]                                                   ; +0x15e, 0x18004670e\nmov     r9d, cs:dword_180165A64                                        ; +0x162, 0x180046712\nmov     rdx, [rdx+78h]                                                 ; +0x169, 0x180046719\ncall    sub_180041D20                                                  ; +0x16d, 0x18004671d\ntest    eax, eax                                                       ; +0x172, 0x180046722\njz      loc_180046642                                                  ; +0x174, 0x180046724\nmov     rdx, [rbx+8]                                                   ; +0x17a, 0x18004672a\nlea     r8, [rdi+1Ch]                                                  ; +0x17e, 0x18004672e\nmov     r9d, cs:dword_180165A68                                        ; +0x182, 0x180046732\nmov     rcx, rsi                                                       ; +0x189, 0x180046739\nmov     rdx, [rdx+78h]                                                 ; +0x18c, 0x18004673c\ncall    sub_180041D20                                                  ; +0x190, 0x180046740\ntest    eax, eax                                                       ; +0x195, 0x180046745\njz      loc_180046642                                                  ; +0x197, 0x180046747\nmov     rdx, [rbx+8]                                                   ; +0x19d, 0x18004674d\nlea     r8, [rdi+20h]                                                  ; +0x1a1, 0x180046751\nmov     r9d, cs:dword_180165A6C                                        ; +0x1a5, 0x180046755\nmov     rcx, rsi                                                       ; +0x1ac, 0x18004675c\nmov     rdx, [rdx+78h]                                                 ; +0x1af, 0x18004675f\ncall    sub_180041D20                                                  ; +0x1b3, 0x180046763\ntest    eax, eax                                                       ; +0x1b8, 0x180046768\njz      loc_180046642                                                  ; +0x1ba, 0x18004676a\nmov     rdx, [rbx+8]                                                   ; +0x1c0, 0x180046770\nlea     r8, [rdi+24h]                                                  ; +0x1c4, 0x180046774\nmov     r9d, cs:dword_180165A70                                        ; +0x1c8, 0x180046778\nmov     rcx, rsi                                                       ; +0x1cf, 0x18004677f\nmov     rdx, [rdx+78h]                                                 ; +0x1d2, 0x180046782\ncall    sub_180041D20                                                  ; +0x1d6, 0x180046786\ntest    eax, eax                                                       ; +0x1db, 0x18004678b\njz      loc_180046642                                                  ; +0x1dd, 0x18004678d\nmov     rdx, [rbx+8]                                                   ; +0x1e3, 0x180046793\nlea     r8, [rdi+28h]                                                  ; +0x1e7, 0x180046797\nmov     r9d, cs:dword_180165A74                                        ; +0x1eb, 0x18004679b\nmov     rcx, rsi                                                       ; +0x1f2, 0x1800467a2\nmov     rdx, [rdx+78h]                                                 ; +0x1f5, 0x1800467a5\ncall    sub_180041D20                                                  ; +0x1f9, 0x1800467a9\ntest    eax, eax                                                       ; +0x1fe, 0x1800467ae\njz      loc_180046642                                                  ; +0x200, 0x1800467b0\nmov     eax, [rdi+28h]                                                 ; +0x206, 0x1800467b6\ntest    eax, eax                                                       ; +0x209, 0x1800467b9\nlea     rcx, [rax+1]                                                   ; +0x20b, 0x1800467bb\ncmovnz  rcx, rax; Size                                                 ; +0x20f, 0x1800467bf\ncall    j__malloc_base                                                 ; +0x213, 0x1800467c3\nmov     [rdi+30h], rax                                                 ; +0x218, 0x1800467c8\nmov     r8, rax                                                        ; +0x21c, 0x1800467cc\ntest    rax, rax                                                       ; +0x21f, 0x1800467cf\njz      loc_180046639                                                  ; +0x222, 0x1800467d2\nmov     eax, [rdi+28h]                                                 ; +0x228, 0x1800467d8\ntest    eax, eax                                                       ; +0x22b, 0x1800467db\njz      short loc_1800467FA                                            ; +0x22d, 0x1800467dd\nmov     rdx, [rbx+8]                                                   ; +0x22f, 0x1800467df\nmov     r9d, eax                                                       ; +0x233, 0x1800467e3\nmov     rcx, rsi                                                       ; +0x236, 0x1800467e6\nmov     rdx, [rdx+78h]                                                 ; +0x239, 0x1800467e9\ncall    sub_180041BB0                                                  ; +0x23d, 0x1800467ed\ntest    eax, eax                                                       ; +0x242, 0x1800467f2\njz      loc_180046642                                                  ; +0x244, 0x1800467f4\nmov     eax, 1                                                         ; +0x24a, 0x1800467fa\njmp     loc_180046644                                                  ; +0x24f, 0x1800467ff", "xrefs": ["sub_180045B60 @ 0x180046053", "<???> @ 0x1801f8208"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}