Function at 0x1800018f0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x8f0
mov rax, qword [0x18003d020]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
mov rdi, rdx
mov r14, rcx
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x48], 0xffffffff80000001
xor ebx, ebx
mov qword [rsp + 0x38], rbx
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x60]
call fcn.180016520
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0xe0]
call fcn.180016520
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x4e0]
call fcn.180016520
lea rcx, str.ADVAPI32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
lea rdx, str.RegQueryValueExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
lea rdx, str.RegOpenKeyExA
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.RegEnumValueA
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RegEnumKeyExA
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RegCloseKey
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r14
mov rcx, 0xffffffff80000001
call r15
test eax, eax
je 0x180001a10
or ebx, 0xffffffff
jmp 0x180001bb3
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x180001bb3
cmp eax, 2
jbe 0x180001b64
cmp eax, 3
je 0x180001b1c
cmp eax, 4
je 0x180001ac8
cmp eax, 7
jne 0x180001bb3
mov dword [rsp + 0x30], 0x400
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call rsi
test eax, eax
jne 0x180001bb3
lea r10, [rsp + 0xe0]
cmp byte [r10], 0
je 0x180001abb
mov rdx, r10
lea rcx, [rsp + 0x4e0]
call fcn.1800018a0
lea rdx, [0x180034cec]
lea rcx, [rsp + 0x4e0]
call fcn.1800018a0
xor edx, edx
mov rcx, r10
call fcn.180011620
lea r10, [rax + 1]
jmp 0x180001a81
lea rdx, [rsp + 0x4e0]
jmp 0x180001ba1
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call rsi
test eax, eax
jne 0x180001bb3
mov r8d, dword [rsp + 0x40]
lea rdx, [0x180034cf0]
lea rcx, [0x180042910]
call qword [sym.imp.USER32.dll_wsprintfA]
jmp 0x180001bae
mov dword [rsp + 0x30], 0x400
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call rsi
test eax, eax
jne 0x180001bb3
mov r8d, dword [rsp + 0x34]
lea rdx, str._08X
lea rcx, [0x180042910]
call qword [sym.imp.USER32.dll_wsprintfA]
jmp 0x180001bae
mov dword [rsp + 0x30], 0x400
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call rsi
test eax, eax
jne 0x180001bb3
lea rdx, [rsp + 0xe0]
lea rcx, [0x180042910]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 1
mov rcx, 0xffffffff80000001
call r13
mov rcx, qword [rsp + 0x38]
call r13
test r12, r12
je 0x180001bd3
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rsp + 0x8e0]
xor rcx, rsp
call fcn.180011250
lea r11, [rsp + 0x8f0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret