Function at 0x1400015e0
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 [0x140033028]
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.14000a8a0
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0xe0]
call fcn.14000a8a0
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x4e0]
call fcn.14000a8a0
lea rcx, [0x14002db68]
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 0x140001700
or ebx, 0xffffffff
jmp 0x1400018a3
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x1400018a3
cmp eax, 2
jbe 0x140001854
cmp eax, 3
je 0x14000180c
cmp eax, 4
je 0x1400017b8
cmp eax, 7
jne 0x1400018a3
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 0x1400018a3
lea r10, [rsp + 0xe0]
cmp byte [r10], 0
je 0x1400017ab
mov rdx, r10
lea rcx, [rsp + 0x4e0]
call fcn.140001590
lea rdx, [0x14002dbcc]
lea rcx, [rsp + 0x4e0]
call fcn.140001590
xor edx, edx
mov rcx, r10
call fcn.140006f00
lea r10, [rax + 1]
jmp 0x140001771
lea rdx, [rsp + 0x4e0]
jmp 0x140001891
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 0x1400018a3
mov r8d, dword [rsp + 0x40]
lea rdx, [0x14002dbd0]
lea rcx, [0x1400362f0]
call qword [sym.imp.USER32.dll_wsprintfA]
jmp 0x14000189e
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 0x1400018a3
mov r8d, dword [rsp + 0x34]
lea rdx, str._08X
lea rcx, [0x1400362f0]
call qword [sym.imp.USER32.dll_wsprintfA]
jmp 0x14000189e
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 0x1400018a3
lea rdx, [rsp + 0xe0]
lea rcx, [0x1400362f0]
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 0x1400018c3
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rsp + 0x8e0]
xor rcx, rsp
call fcn.140006b30
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