Function at 0x18001b188
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x118
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0x3c]
add rax, qword [rsp + 0x120]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x30]
mov rcx, qword [rsp + 0x120]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x18001b39a
mov eax, 8
imul rax, rax, 5
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov eax, 8
imul rax, rax, 5
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x8c]
mov dword [rsp + 0x4c], eax
xor eax, eax
test eax, eax
je 0x18001b24b
jmp 0x18001b243
cmp dword [rsp + 0x4c], 0
jbe 0x18001b39a
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 4]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x4c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x24]
sub rax, 8
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x78]
add rax, 8
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc0], rax
mov eax, dword [rsp + 0x24]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x88]
dec rax
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0xb8], 0
je 0x18001b38b
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
sar eax, 0xc
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
and eax, 0xfff
mov word [rsp + 0x48], ax
movzx eax, word [rsp + 0x48]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
movzx eax, byte [rsp + 0x20]
cmp eax, 3
jne 0x18001b356
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
add rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
jmp 0x18001b378
movzx eax, byte [rsp + 0x20]
cmp eax, 0xa
jne 0x18001b378
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
add rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x58], rax
jmp 0x18001b2c7
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
jmp 0x18001b24b
xor eax, eax
test eax, eax
je 0x18001b3a2
jmp 0x18001b39a
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x38]
cmp dword [rcx + rax + 0x88], 0
je 0x18001b590
movabs rax, 0x8000000000000000
mov qword [rsp + 0xc8], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0xc], 0
je 0x18001b590
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
add rax, qword [rsp + 0x120]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x18001b44b
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
add rax, qword [rsp + 0x120]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x18001b45d
mov eax, 0xfffffffd
jmp 0x18001b81c
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x18001b47d
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
add rax, qword [rsp + 0x120]
mov qword [rsp + 0x40], rax
jmp 0x18001b492
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x10]
add rax, qword [rsp + 0x120]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x50], 0
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18001b57d
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xc8]
mov rax, qword [rax]
and rax, rcx
test rax, rax
je 0x18001b4e7
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
and rax, 0xffff
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x98], rax
jmp 0x18001b521
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
add rax, qword [rsp + 0x120]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
add rax, 2
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x10], 0
je 0x18001b54e
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x10]
add rax, qword [rsp + 0x120]
mov ecx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x98]
mov qword [rax + rcx], rdx
jmp 0x18001b55e
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x98]
mov qword [rax], rcx
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x50]
add rax, 8
mov dword [rsp + 0x50], eax
jmp 0x18001b49a
mov rax, qword [rsp + 0x30]
add rax, 0x14
mov qword [rsp + 0x30], rax
jmp 0x18001b3f8
cmp qword [rsp + 0x138], 0
je 0x18001b71b
xor eax, eax
test eax, eax
je 0x18001b5a7
jmp 0x18001b59f
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
cmp dword [rcx + rax + 0x88], 0
je 0x18001b71b
movabs rax, 0x8000000000000000
mov qword [rsp + 0xf8], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x80], eax
xor eax, eax
test eax, eax
je 0x18001b65c
jmp 0x18001b654
mov dword [rsp + 0x28], 0
jmp 0x18001b670
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x28], eax
jae 0x18001b701
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0xd8]
mov eax, dword [rcx + rax*8]
mov rcx, qword [rsp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xe8], rax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0xe0]
mov eax, dword [rcx + rax*8]
mov rcx, qword [rsp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xf0], rax
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_lstrcmp]
test eax, eax
jne 0x18001b6fc
xor eax, eax
test eax, eax
je 0x18001b6ed
jmp 0x18001b6e5
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x68], rax
jmp 0x18001b701
jmp 0x18001b666
cmp qword [rsp + 0x68], 0
jne 0x18001b71b
xor eax, eax
test eax, eax
je 0x18001b711
jmp 0x18001b709
mov eax, 0xffffffff
jmp 0x18001b81c
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x28]
add rax, qword [rsp + 0x120]
mov qword [rsp + 0xa8], rax
xor eax, eax
test eax, eax
je 0x18001b73b
jmp 0x18001b733
cmp qword [rsp + 0x130], 0
je 0x18001b759
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0xa8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x120]
mov qword [rax + 0x30], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9, qword [rsp + 0x120]
mov r8, qword [rsp + 0x120]
mov rdx, rax
mov rcx, qword [0x180029fd8]
call fcn.18001ae20
mov r8, qword [rsp + 0x128]
mov edx, 1
mov rcx, qword [rsp + 0x120]
call qword [rsp + 0xa8]
mov dword [rsp + 0x84], eax
xor eax, eax
test eax, eax
je 0x18001b7ba
jmp 0x18001b7b2
cmp dword [rsp + 0x84], 0
jne 0x18001b7d0
xor eax, eax
test eax, eax
je 0x18001b7cc
jmp 0x18001b7c4
xor eax, eax
jmp 0x18001b81c
cmp qword [rsp + 0x68], 0
je 0x18001b817
cmp dword [rsp + 0x140], 1
jne 0x18001b7f0
xor eax, eax
test eax, eax
je 0x18001b7ea
jmp 0x18001b7e2
call qword [rsp + 0x68]
jmp 0x18001b80f
cmp dword [rsp + 0x140], 2
jne 0x18001b80f
xor eax, eax
test eax, eax
je 0x18001b802
jmp 0x18001b7fa
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x100], rax
xor eax, eax
test eax, eax
je 0x18001b817
jmp 0x18001b80f
mov eax, 1
add rsp, 0x118
ret