Function at 0x18001bb50
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 0x18001bd62
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 0x18001bc13
jmp 0x18001bc0b
cmp dword [rsp + 0x4c], 0
jbe 0x18001bd62
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 0x18001bd53
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 0x18001bd1e
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
add rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
jmp 0x18001bd40
movzx eax, byte [rsp + 0x20]
cmp eax, 0xa
jne 0x18001bd40
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 0x18001bc8f
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
jmp 0x18001bc13
xor eax, eax
test eax, eax
je 0x18001bd6a
jmp 0x18001bd62
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x38]
cmp dword [rcx + rax + 0x88], 0
je 0x18001bf58
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 0x18001bf58
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 0x18001be13
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 0x18001be25
mov eax, 0xfffffffd
jmp 0x18001c1e4
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x18001be45
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
add rax, qword [rsp + 0x120]
mov qword [rsp + 0x40], rax
jmp 0x18001be5a
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 0x18001bf45
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xc8]
mov rax, qword [rax]
and rax, rcx
test rax, rax
je 0x18001beaf
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 0x18001bee9
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 0x18001bf16
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 0x18001bf26
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 0x18001be62
mov rax, qword [rsp + 0x30]
add rax, 0x14
mov qword [rsp + 0x30], rax
jmp 0x18001bdc0
cmp qword [rsp + 0x138], 0
je 0x18001c0e3
xor eax, eax
test eax, eax
je 0x18001bf6f
jmp 0x18001bf67
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
cmp dword [rcx + rax + 0x88], 0
je 0x18001c0e3
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 0x18001c024
jmp 0x18001c01c
mov dword [rsp + 0x28], 0
jmp 0x18001c038
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x28], eax
jae 0x18001c0c9
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_lstrcmpA]
test eax, eax
jne 0x18001c0c4
xor eax, eax
test eax, eax
je 0x18001c0b5
jmp 0x18001c0ad
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x68], rax
jmp 0x18001c0c9
jmp 0x18001c02e
cmp qword [rsp + 0x68], 0
jne 0x18001c0e3
xor eax, eax
test eax, eax
je 0x18001c0d9
jmp 0x18001c0d1
mov eax, 0xffffffff
jmp 0x18001c1e4
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 0x18001c103
jmp 0x18001c0fb
cmp qword [rsp + 0x130], 0
je 0x18001c121
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 [0x18002b158]
call fcn.18001b7e8
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 0x18001c182
jmp 0x18001c17a
cmp dword [rsp + 0x84], 0
jne 0x18001c198
xor eax, eax
test eax, eax
je 0x18001c194
jmp 0x18001c18c
xor eax, eax
jmp 0x18001c1e4
cmp qword [rsp + 0x68], 0
je 0x18001c1df
cmp dword [rsp + 0x140], 1
jne 0x18001c1b8
xor eax, eax
test eax, eax
je 0x18001c1b2
jmp 0x18001c1aa
call qword [rsp + 0x68]
jmp 0x18001c1d7
cmp dword [rsp + 0x140], 2
jne 0x18001c1d7
xor eax, eax
test eax, eax
je 0x18001c1ca
jmp 0x18001c1c2
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x100], rax
xor eax, eax
test eax, eax
je 0x18001c1df
jmp 0x18001c1d7
mov eax, 1
add rsp, 0x118
ret