{"type": "func", "start": 6443628112, "end": 6443628985, "name": "sub_18011F650", "pseudocode": "// \n// sub_18011F650 from 0x18011f650 to 0x18011f9b9 (873 bytes)\n// \n// 3 xrefs:\n// > sub_18011E9B0 @ 0x18011ea43\n// > <???> @ 0x180191be0\n// > <???> @ 0x1802023b4\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:54:51 +0000\n// \n\n__int64 __fastcall sub_18011F650(__int16 a1)\n{\n  int v1; // ecx\n  void *v3; // rax\n  void *v4; // rcx\n  void *v5; // rdx\n  void *v6; // r8\n  void *v7; // r9\n  void *v8; // r10\n  void *v9; // r11\n  void *v10; // rbx\n  void *v11; // rdi\n  void *v12; // rsi\n\n  if ( !dword_1801F4410 )\n  {\n    qword_1801F5880 = 0;\n    qword_1801F58D8 = (__int64)&unk_18016FA98;\n    qword_1801F58A8 = (__int64)&unk_18016FAB0;\n    qword_1801F5878 = 0;\n    qword_1801F5870 = 0;\n    qword_1801F5868 = 0;\n    qword_1801F5860 = 0;\n    qword_1801F5858 = 0;\n    qword_1801F5850 = 0;\n    qword_1801F5848 = 0;\n    qword_1801F5840 = 0;\n    qword_1801F5838 = 0;\n    qword_1801F5830 = 0;\n    qword_1801F5828 = 0;\n    qword_1801F5820 = 0;\n    qword_1801F5818 = 0;\n    qword_1801F5810 = 0;\n    qword_1801F5808 = 0;\n    qword_1801F5800 = 0;\n    qword_1801F57F8 = 0;\n    qword_1801F57F0 = 0;\n    qword_1801F57E8 = 0;\n    qword_1801F57E0 = 0;\n    qword_1801F57D8 = 0;\n    qword_1801F57D0 = 0;\n    qword_1801F57C8 = 0;\n    qword_1801F57C0 = 0;\n    qword_1801F57B8 = 0;\n    qword_1801F57B0 = 0;\n    qword_1801F57A8 = 0;\n    qword_1801F57A0 = 0;\n    qword_1801F5798 = 0;\n    qword_1801F5790 = 0;\n    qword_1801F5788 = 0;\n    qword_1801F5780 = 0;\n    qword_1801F5778 = 0;\n    qword_1801F5770 = 0;\n    qword_1801F5768 = 0;\n    qword_1801F5760 = 0;\n    qword_1801F5758 = 0;\n    qword_1801F5750 = 0;\n    qword_1801F5748 = 0;\n    qword_1801F5740 = 0;\n    dword_1801F4410 = 1;\n  }\n  if ( a1 )\n  {\n    v1 = a1 - 1;\n    if ( v1 )\n    {\n      if ( v1 != 1 )\n        return 2;\n      v3 = &unk_18016F948;\n      v4 = &unk_18016F938;\n      v5 = &unk_18016F928;\n      v6 = &unk_18016F918;\n      v7 = &unk_18016F908;\n      v8 = &unk_18016F8F8;\n      v9 = &unk_18016F8E8;\n      v10 = &unk_18016F8D8;\n      v11 = &unk_18016F8C8;\n      v12 = &unk_18016F8B8;\n    }\n    else\n    {\n      v3 = &unk_18016F9E8;\n      v4 = &unk_18016F9D8;\n      v5 = &unk_18016F9C8;\n      v6 = &unk_18016F9B8;\n      v7 = &unk_18016F9A8;\n      v8 = &unk_18016F998;\n      v9 = &unk_18016F988;\n      v10 = &unk_18016F978;\n      v11 = &unk_18016F968;\n      v12 = &unk_18016F958;\n    }\n  }\n  else\n  {\n    v3 = &unk_18016FA88;\n    v4 = &unk_18016FA78;\n    v5 = &unk_18016FA68;\n    v6 = &unk_18016FA58;\n    v7 = &unk_18016FA48;\n    v8 = &unk_18016FA38;\n    v9 = &unk_18016FA28;\n    v10 = &unk_18016FA18;\n    v11 = &unk_18016FA08;\n    v12 = &unk_18016F9F8;\n  }\n  qword_1801F58E0 = (__int64)v12;\n  qword_1801F58D0 = (__int64)v11;\n  qword_1801F58C8 = (__int64)v10;\n  qword_1801F5888 = (__int64)v3;\n  qword_1801F58C0 = (__int64)v9;\n  qword_1801F58B8 = (__int64)v8;\n  qword_1801F58B0 = (__int64)v7;\n  qword_1801F58A0 = (__int64)v6;\n  qword_1801F5898 = (__int64)v5;\n  qword_1801F5890 = (__int64)v4;\n  return 0;\n}", "assembly": "; \n; sub_18011F650 from 0x18011f650 to 0x18011f9b9 (873 bytes)\n; \n; 3 xrefs:\n; > sub_18011E9B0 @ 0x18011ea43\n; > <???> @ 0x180191be0\n; > <???> @ 0x1802023b4\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:54:51 +0000\n; \nsub     rsp, 8                                                         ; +0x0, 0x18011f650\ncmp     cs:dword_1801F4410, 0                                          ; +0x4, 0x18011f654\njnz     loc_18011F84A                                                  ; +0xb, 0x18011f65b\nlea     rax, unk_18016FA98                                             ; +0x11, 0x18011f661\nmov     cs:qword_1801F5880, 0                                          ; +0x18, 0x18011f668\nmov     cs:qword_1801F58D8, rax                                        ; +0x23, 0x18011f673\nlea     rax, unk_18016FAB0                                             ; +0x2a, 0x18011f67a\nmov     cs:qword_1801F58A8, rax                                        ; +0x31, 0x18011f681\nmov     cs:qword_1801F5878, 0                                          ; +0x38, 0x18011f688\nmov     cs:qword_1801F5870, 0                                          ; +0x43, 0x18011f693\nmov     cs:qword_1801F5868, 0                                          ; +0x4e, 0x18011f69e\nmov     cs:qword_1801F5860, 0                                          ; +0x59, 0x18011f6a9\nmov     cs:qword_1801F5858, 0                                          ; +0x64, 0x18011f6b4\nmov     cs:qword_1801F5850, 0                                          ; +0x6f, 0x18011f6bf\nmov     cs:qword_1801F5848, 0                                          ; +0x7a, 0x18011f6ca\nmov     cs:qword_1801F5840, 0                                          ; +0x85, 0x18011f6d5\nmov     cs:qword_1801F5838, 0                                          ; +0x90, 0x18011f6e0\nmov     cs:qword_1801F5830, 0                                          ; +0x9b, 0x18011f6eb\nmov     cs:qword_1801F5828, 0                                          ; +0xa6, 0x18011f6f6\nmov     cs:qword_1801F5820, 0                                          ; +0xb1, 0x18011f701\nmov     cs:qword_1801F5818, 0                                          ; +0xbc, 0x18011f70c\nmov     cs:qword_1801F5810, 0                                          ; +0xc7, 0x18011f717\nmov     cs:qword_1801F5808, 0                                          ; +0xd2, 0x18011f722\nmov     cs:qword_1801F5800, 0                                          ; +0xdd, 0x18011f72d\nmov     cs:qword_1801F57F8, 0                                          ; +0xe8, 0x18011f738\nmov     cs:qword_1801F57F0, 0                                          ; +0xf3, 0x18011f743\nmov     cs:qword_1801F57E8, 0                                          ; +0xfe, 0x18011f74e\nmov     cs:qword_1801F57E0, 0                                          ; +0x109, 0x18011f759\nmov     cs:qword_1801F57D8, 0                                          ; +0x114, 0x18011f764\nmov     cs:qword_1801F57D0, 0                                          ; +0x11f, 0x18011f76f\nmov     cs:qword_1801F57C8, 0                                          ; +0x12a, 0x18011f77a\nmov     cs:qword_1801F57C0, 0                                          ; +0x135, 0x18011f785\nmov     cs:qword_1801F57B8, 0                                          ; +0x140, 0x18011f790\nmov     cs:qword_1801F57B0, 0                                          ; +0x14b, 0x18011f79b\nmov     cs:qword_1801F57A8, 0                                          ; +0x156, 0x18011f7a6\nmov     cs:qword_1801F57A0, 0                                          ; +0x161, 0x18011f7b1\nmov     cs:qword_1801F5798, 0                                          ; +0x16c, 0x18011f7bc\nmov     cs:qword_1801F5790, 0                                          ; +0x177, 0x18011f7c7\nmov     cs:qword_1801F5788, 0                                          ; +0x182, 0x18011f7d2\nmov     cs:qword_1801F5780, 0                                          ; +0x18d, 0x18011f7dd\nmov     cs:qword_1801F5778, 0                                          ; +0x198, 0x18011f7e8\nmov     cs:qword_1801F5770, 0                                          ; +0x1a3, 0x18011f7f3\nmov     cs:qword_1801F5768, 0                                          ; +0x1ae, 0x18011f7fe\nmov     cs:qword_1801F5760, 0                                          ; +0x1b9, 0x18011f809\nmov     cs:qword_1801F5758, 0                                          ; +0x1c4, 0x18011f814\nmov     cs:qword_1801F5750, 0                                          ; +0x1cf, 0x18011f81f\nmov     cs:qword_1801F5748, 0                                          ; +0x1da, 0x18011f82a\nmov     cs:qword_1801F5740, 0                                          ; +0x1e5, 0x18011f835\nmov     cs:dword_1801F4410, 1                                          ; +0x1f0, 0x18011f840\nmov     [rsp+8+arg_0], rbx                                             ; +0x1fa, 0x18011f84a\nmovsx   ecx, cx                                                        ; +0x1ff, 0x18011f84f\nmov     [rsp+8+arg_8], rsi                                             ; +0x202, 0x18011f852\nmov     [rsp+8+var_8], rdi                                             ; +0x207, 0x18011f857\ntest    ecx, ecx                                                       ; +0x20b, 0x18011f85b\njz      loc_18011F918                                                  ; +0x20d, 0x18011f85d\nsub     ecx, 1                                                         ; +0x213, 0x18011f863\njz      short loc_18011F8D0                                            ; +0x216, 0x18011f866\ncmp     ecx, 1                                                         ; +0x218, 0x18011f868\njz      short loc_18011F885                                            ; +0x21b, 0x18011f86b\nmov     eax, 2                                                         ; +0x21d, 0x18011f86d\nmov     rdi, [rsp+8+var_8]                                             ; +0x222, 0x18011f872\nmov     rsi, [rsp+8+arg_8]                                             ; +0x226, 0x18011f876\nmov     rbx, [rsp+8+arg_0]                                             ; +0x22b, 0x18011f87b\nadd     rsp, 8                                                         ; +0x230, 0x18011f880\nretn                                                                   ; +0x234, 0x18011f884\nlea     rax, unk_18016F948                                             ; +0x235, 0x18011f885\nlea     rcx, unk_18016F938                                             ; +0x23c, 0x18011f88c\nlea     rdx, unk_18016F928                                             ; +0x243, 0x18011f893\nlea     r8, unk_18016F918                                              ; +0x24a, 0x18011f89a\nlea     r9, unk_18016F908                                              ; +0x251, 0x18011f8a1\nlea     r10, unk_18016F8F8                                             ; +0x258, 0x18011f8a8\nlea     r11, unk_18016F8E8                                             ; +0x25f, 0x18011f8af\nlea     rbx, unk_18016F8D8                                             ; +0x266, 0x18011f8b6\nlea     rdi, unk_18016F8C8                                             ; +0x26d, 0x18011f8bd\nlea     rsi, unk_18016F8B8                                             ; +0x274, 0x18011f8c4\njmp     loc_18011F95E                                                  ; +0x27b, 0x18011f8cb\nlea     rax, unk_18016F9E8                                             ; +0x280, 0x18011f8d0\nlea     rcx, unk_18016F9D8                                             ; +0x287, 0x18011f8d7\nlea     rdx, unk_18016F9C8                                             ; +0x28e, 0x18011f8de\nlea     r8, unk_18016F9B8                                              ; +0x295, 0x18011f8e5\nlea     r9, unk_18016F9A8                                              ; +0x29c, 0x18011f8ec\nlea     r10, unk_18016F998                                             ; +0x2a3, 0x18011f8f3\nlea     r11, unk_18016F988                                             ; +0x2aa, 0x18011f8fa\nlea     rbx, unk_18016F978                                             ; +0x2b1, 0x18011f901\nlea     rdi, unk_18016F968                                             ; +0x2b8, 0x18011f908\nlea     rsi, unk_18016F958                                             ; +0x2bf, 0x18011f90f\njmp     short loc_18011F95E                                            ; +0x2c6, 0x18011f916\nlea     rax, unk_18016FA88                                             ; +0x2c8, 0x18011f918\nlea     rcx, unk_18016FA78                                             ; +0x2cf, 0x18011f91f\nlea     rdx, unk_18016FA68                                             ; +0x2d6, 0x18011f926\nlea     r8, unk_18016FA58                                              ; +0x2dd, 0x18011f92d\nlea     r9, unk_18016FA48                                              ; +0x2e4, 0x18011f934\nlea     r10, unk_18016FA38                                             ; +0x2eb, 0x18011f93b\nlea     r11, unk_18016FA28                                             ; +0x2f2, 0x18011f942\nlea     rbx, unk_18016FA18                                             ; +0x2f9, 0x18011f949\nlea     rdi, unk_18016FA08                                             ; +0x300, 0x18011f950\nlea     rsi, unk_18016F9F8                                             ; +0x307, 0x18011f957\nmov     cs:qword_1801F58E0, rsi                                        ; +0x30e, 0x18011f95e\nmov     rsi, [rsp+8+arg_8]                                             ; +0x315, 0x18011f965\nmov     cs:qword_1801F58D0, rdi                                        ; +0x31a, 0x18011f96a\nmov     rdi, [rsp+8+var_8]                                             ; +0x321, 0x18011f971\nmov     cs:qword_1801F58C8, rbx                                        ; +0x325, 0x18011f975\nmov     rbx, [rsp+8+arg_0]                                             ; +0x32c, 0x18011f97c\nmov     cs:qword_1801F5888, rax                                        ; +0x331, 0x18011f981\nxor     eax, eax                                                       ; +0x338, 0x18011f988\nmov     cs:qword_1801F58C0, r11                                        ; +0x33a, 0x18011f98a\nmov     cs:qword_1801F58B8, r10                                        ; +0x341, 0x18011f991\nmov     cs:qword_1801F58B0, r9                                         ; +0x348, 0x18011f998\nmov     cs:qword_1801F58A0, r8                                         ; +0x34f, 0x18011f99f\nmov     cs:qword_1801F5898, rdx                                        ; +0x356, 0x18011f9a6\nmov     cs:qword_1801F5890, rcx                                        ; +0x35d, 0x18011f9ad\nadd     rsp, 8                                                         ; +0x364, 0x18011f9b4\nretn                                                                   ; +0x368, 0x18011f9b8", "xrefs": ["sub_18011E9B0 @ 0x18011ea43", "<???> @ 0x180191be0", "<???> @ 0x1802023b4"], "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"}