Function at 0x18001b52c
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 0x18001b73e
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 0x18001b5ef
jmp 0x18001b5e7
cmp dword [rsp + 0x4c], 0
jbe 0x18001b73e
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 0x18001b72f
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 0x18001b6fa
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
add rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
jmp 0x18001b71c
movzx eax, byte [rsp + 0x20]
cmp eax, 0xa
jne 0x18001b71c
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 0x18001b66b
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
jmp 0x18001b5ef
xor eax, eax
test eax, eax
je 0x18001b746
jmp 0x18001b73e
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x38]
cmp dword [rcx + rax + 0x88], 0
je 0x18001b934
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 0x18001b934
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 0x18001b7ef
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 0x18001b801
mov eax, 0xfffffffd
jmp 0x18001bbc0
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x18001b821
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
add rax, qword [rsp + 0x120]
mov qword [rsp + 0x40], rax
jmp 0x18001b836
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 0x18001b921
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xc8]
mov rax, qword [rax]
and rax, rcx
test rax, rax
je 0x18001b88b
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 0x18001b8c5
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 0x18001b8f2
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 0x18001b902
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 0x18001b83e
mov rax, qword [rsp + 0x30]
add rax, 0x14
mov qword [rsp + 0x30], rax
jmp 0x18001b79c
cmp qword [rsp + 0x138], 0
je 0x18001babf
xor eax, eax
test eax, eax
je 0x18001b94b
jmp 0x18001b943
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
cmp dword [rcx + rax + 0x88], 0
je 0x18001babf
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 0x18001ba00
jmp 0x18001b9f8
mov dword [rsp + 0x28], 0
jmp 0x18001ba14
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x28], eax
jae 0x18001baa5
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 0x18001baa0
xor eax, eax
test eax, eax
je 0x18001ba91
jmp 0x18001ba89
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x68], rax
jmp 0x18001baa5
jmp 0x18001ba0a
cmp qword [rsp + 0x68], 0
jne 0x18001babf
xor eax, eax
test eax, eax
je 0x18001bab5
jmp 0x18001baad
mov eax, 0xffffffff
jmp 0x18001bbc0
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 0x18001badf
jmp 0x18001bad7
cmp qword [rsp + 0x130], 0
je 0x18001bafd
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 [0x18002a268]
call fcn.18001b1c4
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 0x18001bb5e
jmp 0x18001bb56
cmp dword [rsp + 0x84], 0
jne 0x18001bb74
xor eax, eax
test eax, eax
je 0x18001bb70
jmp 0x18001bb68
xor eax, eax
jmp 0x18001bbc0
cmp qword [rsp + 0x68], 0
je 0x18001bbbb
cmp dword [rsp + 0x140], 1
jne 0x18001bb94
xor eax, eax
test eax, eax
je 0x18001bb8e
jmp 0x18001bb86
call qword [rsp + 0x68]
jmp 0x18001bbb3
cmp dword [rsp + 0x140], 2
jne 0x18001bbb3
xor eax, eax
test eax, eax
je 0x18001bba6
jmp 0x18001bb9e
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x100], rax
xor eax, eax
test eax, eax
je 0x18001bbbb
jmp 0x18001bbb3
mov eax, 1
add rsp, 0x118
ret