Function at 0x1800018f0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x8f0
mov rax, qword [0x18003a020]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
mov rdi, r9
mov rsi, rdx
mov r15, rcx
mov dword [rsp + 0x34], r8d
mov qword [rsp + 0x50], 0xffffffff80000001
xor ebx, ebx
mov qword [rsp + 0x38], rbx
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x60]
call fcn.1800157e0
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0xe0]
call fcn.1800157e0
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x4e0]
call fcn.1800157e0
lea rcx, str.ADVAPI32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r13, rax
lea rdx, str.RegQueryValueExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
lea rdx, str.RegOpenKeyExA
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
lea rdx, str.RegEnumValueA
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RegEnumKeyExA
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RegCloseKey
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r15
mov rcx, 0xffffffff80000001
call qword [rsp + 0x48]
test eax, eax
je 0x180001a0c
or ebx, 0xffffffff
jmp 0x180001bac
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x180001bac
cmp eax, 2
jbe 0x180001b60
cmp eax, 3
je 0x180001b18
cmp eax, 4
je 0x180001ac7
cmp eax, 7
jne 0x180001bac
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, rsi
mov rcx, qword [rsp + 0x38]
call r12
test eax, eax
jne 0x180001bac
lea r10, [rsp + 0xe0]
nop
cmp byte [r10], 0
je 0x180001aba
mov rdx, r10
lea rcx, [rsp + 0x4e0]
call fcn.1800018a0
lea rdx, [0x1800323bc]
lea rcx, [rsp + 0x4e0]
call fcn.1800018a0
xor edx, edx
mov rcx, r10
call fcn.180011370
lea r10, [rax + 1]
jmp 0x180001a80
lea rdx, [rsp + 0x4e0]
jmp 0x180001b9e
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, rsi
mov rcx, qword [rsp + 0x38]
call r12
test eax, eax
jne 0x180001bac
mov r8d, dword [rsp + 0x40]
lea rdx, [0x1800323c0]
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
jmp 0x180001ba7
mov eax, dword [rsp + 0x950]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x38]
call r12
test eax, eax
jne 0x180001bac
mov r8d, dword [rsp + 0x34]
lea rdx, str._08X
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
jmp 0x180001ba7
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, rsi
mov rcx, qword [rsp + 0x38]
call r12
test eax, eax
jne 0x180001bac
lea rdx, [rsp + 0xe0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 1
mov rcx, 0xffffffff80000001
call r14
mov rcx, qword [rsp + 0x38]
call r14
test r13, r13
je 0x180001bcc
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rsp + 0x8e0]
xor rcx, rsp
call fcn.180010fa0
add rsp, 0x8f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret