Function at 0x140002030
Capabilities:
Link many functions at runtime

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
cmp qword [0x14001f0b0], 0
mov rsi, qword [rsp + 0xc8]
mov r12, rcx
mov r14, rdx
mov ebx, r8d
mov edi, r9d
je 0x140002380
cmp qword [0x14001f0a8], 0
je 0x1400023b8
cmp qword [0x14001f0a0], 0
je 0x1400023f8
cmp qword [0x14001f098], 0
je 0x140002438
cmp qword [0x14001f090], 0
je 0x140002478
cmp qword [0x14001f088], 0
je 0x1400024b8
cmp qword [0x14001f080], 0
je 0x1400024f8
cmp qword [0x14001f078], 0
je 0x140002538
cmp qword [0x14001f070], 0
je 0x140002578
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [0x14001f0a8]
mov r13, rax
test rax, rax
je 0x1400025b0
lea rbp, [rsp + 0x40]
mov edx, 2
mov rcx, rax
xor r12d, r12d
mov r9d, 4
mov r8, rbp
mov dword [rsp + 0x40], 0xea60
call qword [0x14001f0a0]
mov r8, rbp
mov edx, 5
mov rcx, r13
mov r9d, 4
call qword [0x14001f0a0]
mov r8, rbp
mov edx, 6
mov rcx, r13
mov r9d, 4
call qword [0x14001f0a0]
xor r9d, r9d
movzx r8d, bx
mov rdx, r14
mov qword [rsp + 0x38], 0
mov rcx, r13
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
call qword [0x14001f090]
mov r15, rax
test rax, rax
je 0x140002336
cmp dword [rsp + 0xe8], 1
sbb ebx, ebx
and ebx, 0xff800000
sub ebx, 0x7f380000
cmp edi, 2
je 0x140002358
lea rcx, [0x14001a38d]
call fcn.140006e10
mov dword [rsp + 0xd8], 0
mov qword [rsp + 0xd0], 0
mov r12, rax
mov rdx, r12
xor r9d, r9d
mov rcx, r15
mov dword [rsp + 0x30], ebx
mov r8, qword [rsp + 0xc0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [0x14001f088]
mov rcx, r12
xor r12d, r12d
mov r14, rax
call fcn.140006ea0
test r14, r14
je 0x14000232d
test rsi, rsi
je 0x14000227c
lea rcx, [0x14001a3ad]
call fcn.140006e10
mov rcx, rax
mov r12, rax
call sub.msvcrt.dll_wcslen
mov rcx, rsi
mov rbx, rax
call sub.msvcrt.dll_wcslen
lea rcx, [rbx + rax + 1]
add rcx, rcx
call fcn.140005de0
mov rbx, rax
test rax, rax
je 0x140002271
mov rdx, r12
mov rcx, rax
call sub.msvcrt.dll_wcscpy
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_wcscat
mov rcx, r12
mov rsi, rbx
call fcn.140006ea0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
mov eax, dword [rsp + 0xd8]
mov r9, qword [rsp + 0xd0]
mov dword [rsp + 0x20], eax
call qword [0x14001f080]
mov eax, dword [rsp + 0xe8]
test eax, eax
jne 0x1400025c0
mov ecx, 0x1000
call fcn.140005de0
mov r12, rax
test rax, rax
je 0x140002324
xor edi, edi
xor ebx, ebx
lea rsi, [rsp + 0x4c]
jmp 0x1400022fb
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x140002316
lea edx, [rdi + 0x2000]
mov rcx, r12
add ebx, eax
call fcn.140005e10
lea ebp, [rdi + 0x1000]
mov r12, rax
mov edi, ebp
mov edx, edi
mov r9, rsi
mov r8d, 0x1000
mov rcx, r14
add rdx, r12
call qword [0x14001f078]
test eax, eax
jne 0x1400022d8
test ebx, ebx
je 0x140002370
mov rax, qword [rsp + 0xe0]
mov dword [rax], ebx
mov rcx, r14
call qword [0x14001f070]
mov rcx, r15
call qword [0x14001f070]
mov rcx, r13
call qword [0x14001f070]
mov rax, r12
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14001a39c]
call fcn.140006e10
mov r12, rax
jmp 0x1400021d2
mov rcx, r12
xor r12d, r12d
call fcn.140005e40
jmp 0x140002324
lea rcx, [0x14001a2a0]
call fcn.140006e10
mov r13, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, r13
mov qword [0x14001f0b0], rax
call fcn.140006ea0
cmp qword [0x14001f0a8], 0
jne 0x140002070
nop dword [rax]
lea rcx, [0x14001a2bf]
call fcn.140006d90
mov rcx, qword [0x14001f0b0]
mov r13, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r13
mov qword [0x14001f0a8], rax
call fcn.140006ea0
cmp qword [0x14001f0a0], 0
jne 0x14000207e
nop dword [rax]
lea rcx, [0x14001a2d5]
call fcn.140006d90
mov rcx, qword [0x14001f0b0]
mov r13, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r13
mov qword [0x14001f0a0], rax
call fcn.140006ea0
cmp qword [0x14001f098], 0
jne 0x14000208c
nop dword [rax]
lea rcx, [0x14001a2f0]
call fcn.140006d90
mov rcx, qword [0x14001f0b0]
mov r13, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r13
mov qword [0x14001f098], rax
call fcn.140006ea0
cmp qword [0x14001f090], 0
jne 0x14000209a
nop dword [rax]
lea rcx, [0x14001a30d]
call fcn.140006d90
mov rcx, qword [0x14001f0b0]
mov r13, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r13
mov qword [0x14001f090], rax
call fcn.140006ea0
cmp qword [0x14001f088], 0
jne 0x1400020a8
nop dword [rax]
lea rcx, [0x14001a326]
call fcn.140006d90
mov rcx, qword [0x14001f0b0]
mov r13, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r13
mov qword [0x14001f088], rax
call fcn.140006ea0
cmp qword [0x14001f080], 0
jne 0x1400020b6
nop dword [rax]
lea rcx, [0x14001a33f]
call fcn.140006d90
mov rcx, qword [0x14001f0b0]
mov r13, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r13
mov qword [0x14001f080], rax
call fcn.140006ea0
cmp qword [0x14001f078], 0
jne 0x1400020c4
nop dword [rax]
lea rcx, [0x14001a358]
call fcn.140006d90
mov rcx, qword [0x14001f0b0]
mov r13, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r13
mov qword [0x14001f078], rax
call fcn.140006ea0
cmp qword [0x14001f070], 0
jne 0x1400020d2
nop dword [rax]
lea rcx, [0x14001a371]
call fcn.140006d90
mov rcx, qword [0x14001f0b0]
mov r13, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r13
mov qword [0x14001f070], rax
call fcn.140006ea0
jmp 0x1400020d2
xor r12d, r12d
jmp 0x14000233f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
je 0x1400025d8
cmp eax, 0x2f19
jne 0x1400022b5
lea rbx, [rsp + 0x44]
lea r9, [rsp + 0x48]
mov rcx, r14
mov dword [rsp + 0x48], 4
mov r8, rbx
mov edx, 0x1f
call qword [0x14001f098]
mov r8, rbx
mov rcx, r14
mov edx, 0x1f
or dword [rsp + 0x44], 0x3180
mov r9d, 4
call qword [0x14001f0a0]
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov eax, dword [rsp + 0xd8]
mov r9, qword [rsp + 0xd0]
mov dword [rsp + 0x20], eax
call qword [0x14001f080]
jmp 0x1400022b5