Function at 0x22814c0
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 [0x022ad190]
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.02295160
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0xe0]
call fcn.02295160
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x4e0]
call fcn.02295160
lea rcx, [0x022a6ae8]
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 0x22815dc
or ebx, 0xffffffff
jmp 0x228177c
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x228177c
cmp eax, 2
jbe 0x2281730
cmp eax, 3
je 0x22816e8
cmp eax, 4
je 0x2281697
cmp eax, 7
jne 0x228177c
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 0x228177c
lea r10, [rsp + 0xe0]
nop
cmp byte [r10], 0
je 0x228168a
mov rdx, r10
lea rcx, [rsp + 0x4e0]
call fcn.02281470
lea rdx, [0x022a6b4c]
lea rcx, [rsp + 0x4e0]
call fcn.02281470
xor edx, edx
mov rcx, r10
call fcn.02290170
lea r10, [rax + 1]
jmp 0x2281650
lea rdx, [rsp + 0x4e0]
jmp 0x228176e
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 0x228177c
mov r8d, dword [rsp + 0x40]
lea rdx, [0x022a6b50]
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
jmp 0x2281777
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 0x228177c
mov r8d, dword [rsp + 0x34]
lea rdx, str._08X
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
jmp 0x2281777
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 0x228177c
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 0x228179c
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rsp + 0x8e0]
xor rcx, rsp
call fcn.0228fda0
add rsp, 0x8f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret