Function at 0x401580
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x268
mov rax, qword [0x00423d58]
mov qword [rsp + 0x258], rax
mov dword [rsp + 0x250], 0x65b
mov rax, qword [rsp + 0x270]
cmp qword [rax + 8], 0
je 0x4015c9
mov eax, 0x4df
jmp 0x401a39
lea rax, [0x004194b8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x278]
lea r8, [0x004194d0]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.00402d00
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x270]
cmp qword [rax + 8], 0
jne 0x401632
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x250], eax
mov eax, dword [rsp + 0x250]
jmp 0x401a39
lea rdx, [0x004194e0]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0x20], rax
lea rdx, [0x004194f0]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0x28], rax
lea rdx, [0x00419500]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0x30], rax
lea rdx, [0x00419510]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0x38], rax
lea rdx, [0x00419520]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0x40], rax
lea rdx, [0x00419534]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0x48], rax
lea rdx, [0x0041953c]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0x50], rax
lea rdx, [0x00419548]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0x58], rax
lea rdx, [0x00419558]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0x60], rax
lea rdx, [0x00419568]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0x68], rax
lea rdx, [0x00419578]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0x70], rax
lea rdx, [0x00419588]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0x78], rax
lea rdx, [0x004195a0]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0x80], rax
lea rdx, [0x004195b8]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0x88], rax
lea rdx, [0x004195c8]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0x90], rax
lea rdx, [0x004195d8]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0x98], rax
lea rdx, [0x004195e8]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0xa0], rax
mov rax, qword [rsp + 0x270]
cmp qword [rax + 0x20], 0
je 0x401983
mov rax, qword [rsp + 0x270]
cmp qword [rax + 0x28], 0
je 0x401983
mov rax, qword [rsp + 0x270]
cmp qword [rax + 0x30], 0
je 0x401983
mov rax, qword [rsp + 0x270]
cmp qword [rax + 0x38], 0
je 0x401983
mov rax, qword [rsp + 0x270]
cmp qword [rax + 0x40], 0
je 0x401983
mov rax, qword [rsp + 0x270]
cmp qword [rax + 0x48], 0
je 0x401983
mov rax, qword [rsp + 0x270]
cmp qword [rax + 0x50], 0
je 0x401983
mov rax, qword [rsp + 0x270]
cmp qword [rax + 0x58], 0
je 0x401983
mov rax, qword [rsp + 0x270]
cmp qword [rax + 0x78], 0
je 0x401983
mov rax, qword [rsp + 0x270]
cmp qword [rax + 0x88], 0
je 0x401983
mov rax, qword [rsp + 0x270]
cmp qword [rax + 0x98], 0
je 0x401983
mov rax, qword [rsp + 0x270]
cmp qword [rax + 0xa0], 0
jne 0x4019a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x250], eax
mov rcx, qword [rsp + 0x270]
call fcn.00401f20
mov eax, dword [rsp + 0x250]
jmp 0x401a39
mov rcx, qword [rsp + 0x280]
mov rax, qword [rsp + 0x270]
call qword [rax + 0x28]
mov dword [rsp + 0x250], eax
cmp dword [rsp + 0x250], 0
jne 0x401a32
mov rax, qword [rsp + 0x270]
mov dword [rax + 0x18], 1
mov rax, qword [rsp + 0x270]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x270]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x270]
cmp qword [rax + 0x10], 0
jne 0x401a1c
mov rcx, qword [rsp + 0x270]
call fcn.00401f20
mov dword [rsp + 0x250], 0xe
jmp 0x401a32
mov rax, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x280]
mov ecx, dword [rcx + 0x20]
mov dword [rax + 0x1c], ecx
mov eax, dword [rsp + 0x250]
mov rcx, qword [rsp + 0x258]
call fcn.00418760
add rsp, 0x268
ret