{"type": "func", "start": 6443107376, "end": 6443107972, "name": "sub_1800A0430", "pseudocode": "// \n// sub_1800A0430 from 0x1800a0430 to 0x1800a0684 (596 bytes)\n// \n// 10 xrefs:\n// > sub_18009FC50 @ 0x1800a0064\n// > sub_18009FC50 @ 0x1800a0089\n// > sub_18009FC50 @ 0x1800a00ae\n// > sub_1800A0210 @ 0x1800a03b2\n// > sub_1800A19A0 @ 0x1800a1abe\n// > sub_1800A19A0 @ 0x1800a1bbf\n// > sub_1800A19A0 @ 0x1800a1bd7\n// > sub_1800A19A0 @ 0x1800a1c0c\n// > sub_1800A19A0 @ 0x1800a1c23\n// > <???> @ 0x1801b7764\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_1800A0430(__int64 a1, __int64 a2, unsigned __int64 *a3)\n{\n  unsigned int v5; // edi\n  __int64 v6; // rsi\n  __int64 v7; // r15\n  __int64 v8; // r14\n  __int64 v9; // rsi\n  __int64 v10; // r15\n  __int64 v11; // r14\n  __int64 v12; // rsi\n  __int64 v13; // rsi\n  __int64 v14; // r14\n  __int64 v15; // r15\n  __int64 v16; // rsi\n  __int64 v17; // r14\n  __int64 v18; // rsi\n  __int64 v20; // [rsp+60h] [rbp+8h] BYREF\n  unsigned __int64 *v21; // [rsp+70h] [rbp+18h]\n\n  v21 = a3;\n  v5 = 0;\n  if ( (*(unsigned int (__fastcall **)(_QWORD, __int64, __int64 *, __int64))(a1 + 8))(*(_QWORD *)(a1 + 56), a2, &v20, 1) == 1 )\n  {\n    v5 = (unsigned __int8)v20;\n    v6 = (unsigned __int8)v20;\n    v7 = (unsigned __int8)v20;\n  }\n  else\n  {\n    if ( (*(unsigned int (__fastcall **)(_QWORD, __int64))(a1 + 48))(*(_QWORD *)(a1 + 56), a2) )\n      goto LABEL_32;\n    v6 = 0;\n    v7 = 0;\n  }\n  if ( (*(unsigned int (__fastcall **)(_QWORD, __int64, __int64 *, __int64))(a1 + 8))(*(_QWORD *)(a1 + 56), a2, &v20, 1) == 1 )\n  {\n    v5 = (unsigned __int8)v20;\n    v8 = (unsigned __int8)v20;\n    v6 = (unsigned __int8)v20;\n  }\n  else\n  {\n    if ( (*(unsigned int (__fastcall **)(_QWORD, __int64))(a1 + 48))(*(_QWORD *)(a1 + 56), a2) )\n      goto LABEL_32;\n    v8 = (unsigned int)v6;\n  }\n  v9 = v7 | (v6 << 8);\n  if ( (*(unsigned int (__fastcall **)(_QWORD, __int64, __int64 *, __int64))(a1 + 8))(*(_QWORD *)(a1 + 56), a2, &v20, 1) == 1 )\n  {\n    v5 = (unsigned __int8)v20;\n    LODWORD(v10) = (unsigned __int8)v20;\n    v8 = (unsigned __int8)v20;\n  }\n  else\n  {\n    if ( (*(unsigned int (__fastcall **)(_QWORD, __int64))(a1 + 48))(*(_QWORD *)(a1 + 56), a2) )\n      goto LABEL_32;\n    LODWORD(v10) = v8;\n  }\n  v11 = v9 | (v8 << 16);\n  if ( (*(unsigned int (__fastcall **)(_QWORD, __int64, __int64 *, __int64))(a1 + 8))(*(_QWORD *)(a1 + 56), a2, &v20, 1) == 1 )\n  {\n    v5 = (unsigned __int8)v20;\n    LODWORD(v10) = (unsigned __int8)v20;\n    v12 = (unsigned __int8)v20;\n  }\n  else\n  {\n    if ( (*(unsigned int (__fastcall **)(_QWORD, __int64))(a1 + 48))(*(_QWORD *)(a1 + 56), a2) )\n      goto LABEL_32;\n    LODWORD(v20) = v10;\n    v12 = (unsigned int)v10;\n  }\n  v13 = v11 | (v12 << 24);\n  if ( (*(unsigned int (__fastcall **)(_QWORD, __int64, __int64 *, __int64))(a1 + 8))(*(_QWORD *)(a1 + 56), a2, &v20, 1) == 1 )\n  {\n    v5 = (unsigned __int8)v20;\n    v14 = (unsigned __int8)v20;\n    v10 = (unsigned __int8)v20;\n  }\n  else\n  {\n    if ( (*(unsigned int (__fastcall **)(_QWORD, __int64))(a1 + 48))(*(_QWORD *)(a1 + 56), a2) )\n      goto LABEL_32;\n    v14 = (unsigned int)v10;\n    v10 = (unsigned int)v10;\n  }\n  v15 = v13 | (v10 << 32);\n  if ( (*(unsigned int (__fastcall **)(_QWORD, __int64, __int64 *, __int64))(a1 + 8))(*(_QWORD *)(a1 + 56), a2, &v20, 1) == 1 )\n  {\n    v5 = (unsigned __int8)v20;\n    v16 = (unsigned __int8)v20;\n    v14 = (unsigned __int8)v20;\n  }\n  else\n  {\n    if ( (*(unsigned int (__fastcall **)(_QWORD, __int64))(a1 + 48))(*(_QWORD *)(a1 + 56), a2) )\n      goto LABEL_32;\n    v16 = (unsigned int)v14;\n  }\n  v17 = v15 | (v14 << 40);\n  if ( (*(unsigned int (__fastcall **)(_QWORD, __int64, __int64 *, __int64))(a1 + 8))(*(_QWORD *)(a1 + 56), a2, &v20, 1) == 1 )\n  {\n    v5 = (unsigned __int8)v20;\n    v16 = (unsigned __int8)v20;\n  }\n  else if ( (*(unsigned int (__fastcall **)(_QWORD, __int64))(a1 + 48))(*(_QWORD *)(a1 + 56), a2) )\n  {\n    goto LABEL_32;\n  }\n  v18 = v17 | (v16 << 48);\n  if ( (*(unsigned int (__fastcall **)(_QWORD, __int64, __int64 *, __int64))(a1 + 8))(*(_QWORD *)(a1 + 56), a2, &v20, 1) == 1 )\n  {\n    v5 = (unsigned __int8)v20;\nLABEL_30:\n    *v21 = v18 | ((unsigned __int64)v5 << 56);\n    return 0;\n  }\n  if ( !(*(unsigned int (__fastcall **)(_QWORD, __int64))(a1 + 48))(*(_QWORD *)(a1 + 56), a2) )\n    goto LABEL_30;\nLABEL_32:\n  *v21 = 0;\n  return 0xFFFFFFFFLL;\n}", "assembly": "; \n; sub_1800A0430 from 0x1800a0430 to 0x1800a0684 (596 bytes)\n; \n; 10 xrefs:\n; > sub_18009FC50 @ 0x1800a0064\n; > sub_18009FC50 @ 0x1800a0089\n; > sub_18009FC50 @ 0x1800a00ae\n; > sub_1800A0210 @ 0x1800a03b2\n; > sub_1800A19A0 @ 0x1800a1abe\n; > sub_1800A19A0 @ 0x1800a1bbf\n; > sub_1800A19A0 @ 0x1800a1bd7\n; > sub_1800A19A0 @ 0x1800a1c0c\n; > sub_1800A19A0 @ 0x1800a1c23\n; > <???> @ 0x1801b7764\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_8], rbx                                               ; +0x0, 0x1800a0430\nmov     [rsp+arg_10], r8                                               ; +0x5, 0x1800a0435\npush    rbp                                                            ; +0xa, 0x1800a043a\npush    rsi                                                            ; +0xb, 0x1800a043b\npush    rdi                                                            ; +0xc, 0x1800a043c\npush    r12                                                            ; +0xd, 0x1800a043d\npush    r13                                                            ; +0xf, 0x1800a043f\npush    r14                                                            ; +0x11, 0x1800a0441\npush    r15                                                            ; +0x13, 0x1800a0443\nsub     rsp, 20h                                                       ; +0x15, 0x1800a0445\nxor     r13d, r13d                                                     ; +0x19, 0x1800a0449\nlea     r8, [rsp+58h+arg_0]                                            ; +0x1c, 0x1800a044c\nmov     rbx, rcx                                                       ; +0x21, 0x1800a0451\nmov     rbp, rdx                                                       ; +0x24, 0x1800a0454\nmov     rcx, [rcx+38h]                                                 ; +0x27, 0x1800a0457\nmov     edi, r13d                                                      ; +0x2b, 0x1800a045b\nlea     r9d, [r13+1]                                                   ; +0x2e, 0x1800a045e\ncall    qword ptr [rbx+8]                                              ; +0x32, 0x1800a0462\ncmp     eax, 1                                                         ; +0x35, 0x1800a0465\njnz     short loc_1800A0476                                            ; +0x38, 0x1800a0468\nmovzx   edi, byte ptr [rsp+58h+arg_0]                                  ; +0x3a, 0x1800a046a\nmov     esi, edi                                                       ; +0x3f, 0x1800a046f\nmov     r15d, edi                                                      ; +0x41, 0x1800a0471\njmp     short loc_1800A048E                                            ; +0x44, 0x1800a0474\nmov     rcx, [rbx+38h]                                                 ; +0x46, 0x1800a0476\nmov     rdx, rbp                                                       ; +0x4a, 0x1800a047a\ncall    qword ptr [rbx+30h]                                            ; +0x4d, 0x1800a047d\ntest    eax, eax                                                       ; +0x50, 0x1800a0480\njnz     loc_1800A0675                                                  ; +0x52, 0x1800a0482\nmov     esi, r13d                                                      ; +0x58, 0x1800a0488\nmov     r15, r13                                                       ; +0x5b, 0x1800a048b\nmov     rcx, [rbx+38h]                                                 ; +0x5e, 0x1800a048e\nlea     r8, [rsp+58h+arg_0]                                            ; +0x62, 0x1800a0492\nmov     r9d, 1                                                         ; +0x67, 0x1800a0497\nmov     rdx, rbp                                                       ; +0x6d, 0x1800a049d\ncall    qword ptr [rbx+8]                                              ; +0x70, 0x1800a04a0\ncmp     eax, 1                                                         ; +0x73, 0x1800a04a3\njnz     short loc_1800A04B4                                            ; +0x76, 0x1800a04a6\nmovzx   edi, byte ptr [rsp+58h+arg_0]                                  ; +0x78, 0x1800a04a8\nmov     r14d, edi                                                      ; +0x7d, 0x1800a04ad\nmov     esi, edi                                                       ; +0x80, 0x1800a04b0\njmp     short loc_1800A04C9                                            ; +0x82, 0x1800a04b2\nmov     rcx, [rbx+38h]                                                 ; +0x84, 0x1800a04b4\nmov     rdx, rbp                                                       ; +0x88, 0x1800a04b8\ncall    qword ptr [rbx+30h]                                            ; +0x8b, 0x1800a04bb\ntest    eax, eax                                                       ; +0x8e, 0x1800a04be\njnz     loc_1800A0675                                                  ; +0x90, 0x1800a04c0\nmov     r14d, esi                                                      ; +0x96, 0x1800a04c6\nmov     rcx, [rbx+38h]                                                 ; +0x99, 0x1800a04c9\nlea     r8, [rsp+58h+arg_0]                                            ; +0x9d, 0x1800a04cd\nshl     rsi, 8                                                         ; +0xa2, 0x1800a04d2\nmov     r9d, 1                                                         ; +0xa6, 0x1800a04d6\nmov     rdx, rbp                                                       ; +0xac, 0x1800a04dc\nor      rsi, r15                                                       ; +0xaf, 0x1800a04df\ncall    qword ptr [rbx+8]                                              ; +0xb2, 0x1800a04e2\ncmp     eax, 1                                                         ; +0xb5, 0x1800a04e5\njnz     short loc_1800A04F7                                            ; +0xb8, 0x1800a04e8\nmovzx   edi, byte ptr [rsp+58h+arg_0]                                  ; +0xba, 0x1800a04ea\nmov     r15d, edi                                                      ; +0xbf, 0x1800a04ef\nmov     r14d, edi                                                      ; +0xc2, 0x1800a04f2\njmp     short loc_1800A050C                                            ; +0xc5, 0x1800a04f5\nmov     rcx, [rbx+38h]                                                 ; +0xc7, 0x1800a04f7\nmov     rdx, rbp                                                       ; +0xcb, 0x1800a04fb\ncall    qword ptr [rbx+30h]                                            ; +0xce, 0x1800a04fe\ntest    eax, eax                                                       ; +0xd1, 0x1800a0501\njnz     loc_1800A0675                                                  ; +0xd3, 0x1800a0503\nmov     r15d, r14d                                                     ; +0xd9, 0x1800a0509\nmov     rcx, [rbx+38h]                                                 ; +0xdc, 0x1800a050c\nlea     r8, [rsp+58h+arg_0]                                            ; +0xe0, 0x1800a0510\nshl     r14, 10h                                                       ; +0xe5, 0x1800a0515\nmov     r9d, 1                                                         ; +0xe9, 0x1800a0519\nmov     rdx, rbp                                                       ; +0xef, 0x1800a051f\nor      r14, rsi                                                       ; +0xf2, 0x1800a0522\ncall    qword ptr [rbx+8]                                              ; +0xf5, 0x1800a0525\ncmp     eax, 1                                                         ; +0xf8, 0x1800a0528\njnz     short loc_1800A0539                                            ; +0xfb, 0x1800a052b\nmovzx   edi, byte ptr [rsp+58h+arg_0]                                  ; +0xfd, 0x1800a052d\nmov     r15d, edi                                                      ; +0x102, 0x1800a0532\nmov     esi, edi                                                       ; +0x105, 0x1800a0535\njmp     short loc_1800A0558                                            ; +0x107, 0x1800a0537\nmov     rcx, [rbx+38h]                                                 ; +0x109, 0x1800a0539\nmov     rdx, rbp                                                       ; +0x10d, 0x1800a053d\ncall    qword ptr [rbx+30h]                                            ; +0x110, 0x1800a0540\ntest    eax, eax                                                       ; +0x113, 0x1800a0543\njnz     loc_1800A0675                                                  ; +0x115, 0x1800a0545\nmov     dword ptr [rsp+58h+arg_0], r15d                                ; +0x11b, 0x1800a054b\nmov     esi, r15d                                                      ; +0x120, 0x1800a0550\nmov     r15, [rsp+58h+arg_0]                                           ; +0x123, 0x1800a0553\nmov     rcx, [rbx+38h]                                                 ; +0x128, 0x1800a0558\nlea     r8, [rsp+58h+arg_0]                                            ; +0x12c, 0x1800a055c\nshl     rsi, 18h                                                       ; +0x131, 0x1800a0561\nmov     r9d, 1                                                         ; +0x135, 0x1800a0565\nmov     rdx, rbp                                                       ; +0x13b, 0x1800a056b\nor      rsi, r14                                                       ; +0x13e, 0x1800a056e\ncall    qword ptr [rbx+8]                                              ; +0x141, 0x1800a0571\ncmp     eax, 1                                                         ; +0x144, 0x1800a0574\njnz     short loc_1800A0586                                            ; +0x147, 0x1800a0577\nmovzx   edi, byte ptr [rsp+58h+arg_0]                                  ; +0x149, 0x1800a0579\nmov     r14d, edi                                                      ; +0x14e, 0x1800a057e\nmov     r15d, edi                                                      ; +0x151, 0x1800a0581\njmp     short loc_1800A059E                                            ; +0x154, 0x1800a0584\nmov     rcx, [rbx+38h]                                                 ; +0x156, 0x1800a0586\nmov     rdx, rbp                                                       ; +0x15a, 0x1800a058a\ncall    qword ptr [rbx+30h]                                            ; +0x15d, 0x1800a058d\ntest    eax, eax                                                       ; +0x160, 0x1800a0590\njnz     loc_1800A0675                                                  ; +0x162, 0x1800a0592\nmov     r14d, r15d                                                     ; +0x168, 0x1800a0598\nmov     r15d, r15d                                                     ; +0x16b, 0x1800a059b\nmov     rcx, [rbx+38h]                                                 ; +0x16e, 0x1800a059e\nlea     r8, [rsp+58h+arg_0]                                            ; +0x172, 0x1800a05a2\nshl     r15, 20h                                                       ; +0x177, 0x1800a05a7\nmov     r9d, 1                                                         ; +0x17b, 0x1800a05ab\nmov     rdx, rbp                                                       ; +0x181, 0x1800a05b1\nor      r15, rsi                                                       ; +0x184, 0x1800a05b4\ncall    qword ptr [rbx+8]                                              ; +0x187, 0x1800a05b7\ncmp     eax, 1                                                         ; +0x18a, 0x1800a05ba\njnz     short loc_1800A05CB                                            ; +0x18d, 0x1800a05bd\nmovzx   edi, byte ptr [rsp+58h+arg_0]                                  ; +0x18f, 0x1800a05bf\nmov     esi, edi                                                       ; +0x194, 0x1800a05c4\nmov     r14d, edi                                                      ; +0x196, 0x1800a05c6\njmp     short loc_1800A05E0                                            ; +0x199, 0x1800a05c9\nmov     rcx, [rbx+38h]                                                 ; +0x19b, 0x1800a05cb\nmov     rdx, rbp                                                       ; +0x19f, 0x1800a05cf\ncall    qword ptr [rbx+30h]                                            ; +0x1a2, 0x1800a05d2\ntest    eax, eax                                                       ; +0x1a5, 0x1800a05d5\njnz     loc_1800A0675                                                  ; +0x1a7, 0x1800a05d7\nmov     esi, r14d                                                      ; +0x1ad, 0x1800a05dd\nmov     rcx, [rbx+38h]                                                 ; +0x1b0, 0x1800a05e0\nlea     r8, [rsp+58h+arg_0]                                            ; +0x1b4, 0x1800a05e4\nshl     r14, 28h                                                       ; +0x1b9, 0x1800a05e9\nmov     r9d, 1                                                         ; +0x1bd, 0x1800a05ed\nmov     rdx, rbp                                                       ; +0x1c3, 0x1800a05f3\nor      r14, r15                                                       ; +0x1c6, 0x1800a05f6\ncall    qword ptr [rbx+8]                                              ; +0x1c9, 0x1800a05f9\ncmp     eax, 1                                                         ; +0x1cc, 0x1800a05fc\njnz     short loc_1800A060A                                            ; +0x1cf, 0x1800a05ff\nmovzx   edi, byte ptr [rsp+58h+arg_0]                                  ; +0x1d1, 0x1800a0601\nmov     esi, edi                                                       ; +0x1d6, 0x1800a0606\njmp     short loc_1800A0618                                            ; +0x1d8, 0x1800a0608\nmov     rcx, [rbx+38h]                                                 ; +0x1da, 0x1800a060a\nmov     rdx, rbp                                                       ; +0x1de, 0x1800a060e\ncall    qword ptr [rbx+30h]                                            ; +0x1e1, 0x1800a0611\ntest    eax, eax                                                       ; +0x1e4, 0x1800a0614\njnz     short loc_1800A0675                                            ; +0x1e6, 0x1800a0616\nmov     rcx, [rbx+38h]                                                 ; +0x1e8, 0x1800a0618\nlea     r8, [rsp+58h+arg_0]                                            ; +0x1ec, 0x1800a061c\nshl     rsi, 30h                                                       ; +0x1f1, 0x1800a0621\nmov     r9d, 1                                                         ; +0x1f5, 0x1800a0625\nmov     rdx, rbp                                                       ; +0x1fb, 0x1800a062b\nor      rsi, r14                                                       ; +0x1fe, 0x1800a062e\ncall    qword ptr [rbx+8]                                              ; +0x201, 0x1800a0631\ncmp     eax, 1                                                         ; +0x204, 0x1800a0634\njnz     short loc_1800A0667                                            ; +0x207, 0x1800a0637\nmovzx   edi, byte ptr [rsp+58h+arg_0]                                  ; +0x209, 0x1800a0639\nmov     rdx, [rsp+58h+arg_10]                                          ; +0x20e, 0x1800a063e\nmov     eax, r13d                                                      ; +0x213, 0x1800a0643\nmov     ecx, edi                                                       ; +0x216, 0x1800a0646\nshl     rcx, 38h                                                       ; +0x218, 0x1800a0648\nor      rcx, rsi                                                       ; +0x21c, 0x1800a064c\nmov     [rdx], rcx                                                     ; +0x21f, 0x1800a064f\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x222, 0x1800a0652\nadd     rsp, 20h                                                       ; +0x227, 0x1800a0657\npop     r15                                                            ; +0x22b, 0x1800a065b\npop     r14                                                            ; +0x22d, 0x1800a065d\npop     r13                                                            ; +0x22f, 0x1800a065f\npop     r12                                                            ; +0x231, 0x1800a0661\npop     rdi                                                            ; +0x233, 0x1800a0663\npop     rsi                                                            ; +0x234, 0x1800a0664\npop     rbp                                                            ; +0x235, 0x1800a0665\nretn                                                                   ; +0x236, 0x1800a0666\nmov     rcx, [rbx+38h]                                                 ; +0x237, 0x1800a0667\nmov     rdx, rbp                                                       ; +0x23b, 0x1800a066b\ncall    qword ptr [rbx+30h]                                            ; +0x23e, 0x1800a066e\ntest    eax, eax                                                       ; +0x241, 0x1800a0671\njz      short loc_1800A063E                                            ; +0x243, 0x1800a0673\nmov     rdx, [rsp+58h+arg_10]                                          ; +0x245, 0x1800a0675\nmov     eax, 0FFFFFFFFh                                                ; +0x24a, 0x1800a067a\nmov     [rdx], r13                                                     ; +0x24f, 0x1800a067f\njmp     short loc_1800A0652                                            ; +0x252, 0x1800a0682", "xrefs": ["sub_18009FC50 @ 0x1800a0064", "sub_18009FC50 @ 0x1800a0089", "sub_18009FC50 @ 0x1800a00ae", "sub_1800A0210 @ 0x1800a03b2", "sub_1800A19A0 @ 0x1800a1abe", "sub_1800A19A0 @ 0x1800a1bbf", "sub_1800A19A0 @ 0x1800a1bd7", "sub_1800A19A0 @ 0x1800a1c0c", "sub_1800A19A0 @ 0x1800a1c23", "<???> @ 0x1801b7764"], "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"}