; ; sub_18001F718 from 0x18001f718 to 0x18001f9ad (661 bytes) ; ; 4 xrefs: ; > sub_18001FCC8 @ 0x18001fcd5 ; > sub_18001FDF8 @ 0x18001fe07 ; > @ 0x18004d130 ; > @ 0x18004d13c ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 12:15:45 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x18001f718 mov [rsp+arg_10], rbp ; +0x5, 0x18001f71d mov [rsp+arg_18], rsi ; +0xa, 0x18001f722 push rdi ; +0xf, 0x18001f727 sub rsp, 10h ; +0x10, 0x18001f728 xor eax, eax ; +0x14, 0x18001f72c xor ecx, ecx ; +0x16, 0x18001f72e cpuid ; +0x18, 0x18001f730 xor ecx, 6C65746Eh ; +0x1a, 0x18001f732 xor edx, 49656E69h ; +0x20, 0x18001f738 or edx, ecx ; +0x26, 0x18001f73e mov ebp, eax ; +0x28, 0x18001f740 mov eax, 1 ; +0x2a, 0x18001f742 xor ebx, 756E6547h ; +0x2f, 0x18001f747 or edx, ebx ; +0x35, 0x18001f74d lea ecx, [rax-1] ; +0x37, 0x18001f74f cpuid ; +0x3a, 0x18001f752 mov edi, ecx ; +0x3c, 0x18001f754 jnz short loc_18001F7B6 ; +0x3e, 0x18001f756 and eax, 0FFF3FF0h ; +0x40, 0x18001f758 mov cs:qword_180049010, 8000h ; +0x45, 0x18001f75d mov cs:qword_180049018, 0FFFFFFFFFFFFFFFFh ; +0x50, 0x18001f768 cmp eax, 106C0h ; +0x5b, 0x18001f773 jz short loc_18001F7A2 ; +0x60, 0x18001f778 cmp eax, 20660h ; +0x62, 0x18001f77a jz short loc_18001F7A2 ; +0x67, 0x18001f77f cmp eax, 20670h ; +0x69, 0x18001f781 jz short loc_18001F7A2 ; +0x6e, 0x18001f786 add eax, 0FFFCF9B0h ; +0x70, 0x18001f788 cmp eax, 20h ; ' ' ; +0x75, 0x18001f78d ja short loc_18001F7B6 ; +0x78, 0x18001f790 mov rcx, 100010001h ; +0x7a, 0x18001f792 bt rcx, rax ; +0x84, 0x18001f79c jnb short loc_18001F7B6 ; +0x88, 0x18001f7a0 mov r8d, cs:dword_180049FD8 ; +0x8a, 0x18001f7a2 or r8d, 1 ; +0x91, 0x18001f7a9 mov cs:dword_180049FD8, r8d ; +0x95, 0x18001f7ad jmp short loc_18001F7BD ; +0x9c, 0x18001f7b4 mov r8d, cs:dword_180049FD8 ; +0x9e, 0x18001f7b6 xor r9d, r9d ; +0xa5, 0x18001f7bd mov esi, r9d ; +0xa8, 0x18001f7c0 mov r10d, r9d ; +0xab, 0x18001f7c3 mov r11d, r9d ; +0xae, 0x18001f7c6 cmp ebp, 7 ; +0xb1, 0x18001f7c9 jl short loc_18001F80E ; +0xb4, 0x18001f7cc lea eax, [r9+7] ; +0xb6, 0x18001f7ce xor ecx, ecx ; +0xba, 0x18001f7d2 cpuid ; +0xbc, 0x18001f7d4 mov esi, edx ; +0xbe, 0x18001f7d6 mov r9d, ebx ; +0xc0, 0x18001f7d8 bt ebx, 9 ; +0xc3, 0x18001f7db jnb short loc_18001F7EC ; +0xc7, 0x18001f7df or r8d, 2 ; +0xc9, 0x18001f7e1 mov cs:dword_180049FD8, r8d ; +0xcd, 0x18001f7e5 cmp eax, 1 ; +0xd4, 0x18001f7ec jl short loc_18001F7FE ; +0xd7, 0x18001f7ef mov eax, 7 ; +0xd9, 0x18001f7f1 lea ecx, [rax-6] ; +0xde, 0x18001f7f6 cpuid ; +0xe1, 0x18001f7f9 mov r10d, edx ; +0xe3, 0x18001f7fb mov eax, 24h ; '$' ; +0xe6, 0x18001f7fe cmp ebp, eax ; +0xeb, 0x18001f803 jl short loc_18001F80E ; +0xed, 0x18001f805 xor ecx, ecx ; +0xef, 0x18001f807 cpuid ; +0xf1, 0x18001f809 mov r11d, ebx ; +0xf3, 0x18001f80b mov rax, cs:qword_180049000 ; +0xf6, 0x18001f80e and rax, 0FFFFFFFFFFFFFFFEh ; +0xfd, 0x18001f815 mov cs:dword_180049008, 1 ; +0x101, 0x18001f819 mov cs:dword_18004900C, 2 ; +0x10b, 0x18001f823 mov cs:qword_180049000, rax ; +0x115, 0x18001f82d bt edi, 14h ; +0x11c, 0x18001f834 jnb short loc_18001F859 ; +0x120, 0x18001f838 and rax, 0FFFFFFFFFFFFFFEFh ; +0x122, 0x18001f83a mov cs:dword_180049008, 2 ; +0x126, 0x18001f83e mov cs:qword_180049000, rax ; +0x130, 0x18001f848 mov cs:dword_18004900C, 6 ; +0x137, 0x18001f84f bt edi, 1Bh ; +0x141, 0x18001f859 jnb loc_18001F996 ; +0x145, 0x18001f85d xor ecx, ecx ; +0x14b, 0x18001f863 xgetbv ; +0x14d, 0x18001f865 shl rdx, 20h ; +0x150, 0x18001f868 or rdx, rax ; +0x154, 0x18001f86c mov [rsp+18h+arg_0], rdx ; +0x157, 0x18001f86f bt edi, 1Ch ; +0x15c, 0x18001f874 jnb loc_18001F97A ; +0x160, 0x18001f878 mov rax, [rsp+18h+arg_0] ; +0x166, 0x18001f87e and al, 6 ; +0x16b, 0x18001f883 cmp al, 6 ; +0x16d, 0x18001f885 jnz loc_18001F97A ; +0x16f, 0x18001f887 mov eax, cs:dword_18004900C ; +0x175, 0x18001f88d mov dl, 0E0h ; +0x17b, 0x18001f893 or eax, 8 ; +0x17d, 0x18001f895 mov cs:dword_180049008, 3 ; +0x180, 0x18001f898 mov cs:dword_18004900C, eax ; +0x18a, 0x18001f8a2 test r9b, 20h ; +0x190, 0x18001f8a8 jz short loc_18001F910 ; +0x194, 0x18001f8ac or eax, 20h ; +0x196, 0x18001f8ae mov cs:dword_180049008, 5 ; +0x199, 0x18001f8b1 mov cs:dword_18004900C, eax ; +0x1a3, 0x18001f8bb mov ecx, 0D0030000h ; +0x1a9, 0x18001f8c1 mov rax, cs:qword_180049000 ; +0x1ae, 0x18001f8c6 and r9d, ecx ; +0x1b5, 0x18001f8cd and rax, 0FFFFFFFFFFFFFFFDh ; +0x1b8, 0x18001f8d0 mov cs:qword_180049000, rax ; +0x1bc, 0x18001f8d4 cmp r9d, ecx ; +0x1c3, 0x18001f8db jnz short loc_18001F917 ; +0x1c6, 0x18001f8de mov rax, [rsp+18h+arg_0] ; +0x1c8, 0x18001f8e0 and al, dl ; +0x1cd, 0x18001f8e5 cmp al, dl ; +0x1cf, 0x18001f8e7 jnz short loc_18001F910 ; +0x1d1, 0x18001f8e9 mov rax, cs:qword_180049000 ; +0x1d3, 0x18001f8eb or cs:dword_18004900C, 40h ; +0x1da, 0x18001f8f2 and rax, 0FFFFFFFFFFFFFFDBh ; +0x1e1, 0x18001f8f9 mov cs:dword_180049008, 6 ; +0x1e5, 0x18001f8fd mov cs:qword_180049000, rax ; +0x1ef, 0x18001f907 jmp short loc_18001F917 ; +0x1f6, 0x18001f90e mov rax, cs:qword_180049000 ; +0x1f8, 0x18001f910 bt esi, 17h ; +0x1ff, 0x18001f917 jnb short loc_18001F929 ; +0x203, 0x18001f91b btr rax, 18h ; +0x205, 0x18001f91d mov cs:qword_180049000, rax ; +0x20a, 0x18001f922 bt r10d, 13h ; +0x211, 0x18001f929 jnb short loc_18001F97A ; +0x216, 0x18001f92e mov rax, [rsp+18h+arg_0] ; +0x218, 0x18001f930 and al, dl ; +0x21d, 0x18001f935 cmp al, dl ; +0x21f, 0x18001f937 jnz short loc_18001F97A ; +0x221, 0x18001f939 mov ecx, r11d ; +0x223, 0x18001f93b mov eax, r11d ; +0x226, 0x18001f93e shr rcx, 10h ; +0x229, 0x18001f941 and eax, 400FFh ; +0x22d, 0x18001f945 and ecx, 6 ; +0x232, 0x18001f94a mov cs:dword_180049FD4, eax ; +0x235, 0x18001f94d or rcx, 1000029h ; +0x23b, 0x18001f953 not rcx ; +0x242, 0x18001f95a and rcx, cs:qword_180049000 ; +0x245, 0x18001f95d mov cs:qword_180049000, rcx ; +0x24c, 0x18001f964 cmp al, 1 ; +0x253, 0x18001f96b jbe short loc_18001F97A ; +0x255, 0x18001f96d and rcx, 0FFFFFFFFFFFFFFBFh ; +0x257, 0x18001f96f mov cs:qword_180049000, rcx ; +0x25b, 0x18001f973 bt r10d, 15h ; +0x262, 0x18001f97a jnb short loc_18001F996 ; +0x267, 0x18001f97f mov rax, [rsp+18h+arg_0] ; +0x269, 0x18001f981 bt rax, 13h ; +0x26e, 0x18001f986 jnb short loc_18001F996 ; +0x273, 0x18001f98b btr cs:qword_180049000, 7 ; +0x275, 0x18001f98d mov rbx, [rsp+18h+arg_8] ; +0x27e, 0x18001f996 xor eax, eax ; +0x283, 0x18001f99b mov rbp, [rsp+18h+arg_10] ; +0x285, 0x18001f99d mov rsi, [rsp+18h+arg_18] ; +0x28a, 0x18001f9a2 add rsp, 10h ; +0x28f, 0x18001f9a7 pop rdi ; +0x293, 0x18001f9ab retn ; +0x294, 0x18001f9ac