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

Disassembly:
sub rsp, 0xb8
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x28], ecx
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x30]
add rax, 0x2e8
mov qword [rsp + 0x18], rax
mov ecx, dword [rsp + 0x28]
sub ecx, 1
mov dword [rsp + 0x44], ecx
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x44], 0
je 0x18001cdfd
mov eax, dword [rsp + 0x44]
shr eax, 1
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x40]
add eax, 1
mov dword [rsp + 0x40], eax
jmp 0x18001cdd7
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x14], eax
mov rcx, qword [rsp + 0x18]
mov eax, dword [rcx + 0xc]
mov dword [rsp + 0x10], eax
mov rcx, qword [rsp + 0x18]
mov eax, dword [rcx + 0x18]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x10]
cmp eax, dword [rsp + 0xc]
ja 0x18001d06f
mov eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 8]
mov qword [rsp + 0x58], rdx
mov dword [rsp + 0x54], eax
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov ecx, 0x40
sub ecx, dword [rax + 8]
cmp ecx, dword [rsp + 0x54]
jae 0x18001cf37
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
cmp qword [rax + 0x18], 0
jne 0x18001ce98
mov dword [rsp + 0xb4], 0
jmp 0x18001cf17
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax]
shr rcx, 8
mov qword [rax], rcx
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax + 0x10]
movzx edx, byte [rax]
mov eax, edx
shl rax, 0x38
mov rcx, qword [rsp + 0xa8]
or rax, qword [rcx]
mov qword [rcx], rax
mov rax, qword [rsp + 0xa8]
mov edx, dword [rax + 8]
sub edx, 8
mov dword [rax + 8], edx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 0x18]
add rcx, 0xffffffffffffffff
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 0x10]
add rcx, 1
mov qword [rax + 0x10], rcx
mov dword [rsp + 0xb4], 1
cmp dword [rsp + 0xb4], 0
jne 0x18001cf32
mov dword [rsp + 0x64], 0
jmp 0x18001cfef
jmp 0x18001ce47
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x7c], ecx
mov qword [rsp + 0x70], rdx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rdx, qword [rsp + 0x88]
mov ecx, dword [rdx + 8]
shr rax, cl
mov r8d, dword [rsp + 0x7c]
mov dword [rsp + 0xa0], r8d
mov dword [rsp], eax
mov eax, dword [rsp + 0xa0]
mov ecx, eax
lea rdx, [0x180040840]
mov eax, dword [rdx + rcx*4]
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp]
and eax, dword [rsp + 0xa4]
mov rcx, qword [rsp + 0x80]
mov dword [rcx], eax
mov eax, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x9c], eax
mov qword [rsp + 0x90], rcx
mov eax, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x90]
add eax, dword [rcx + 8]
mov dword [rcx + 8], eax
mov dword [rsp + 0x64], 1
cmp dword [rsp + 0x64], 0
setne al
xor al, 0xff
test al, 1
jne 0x18001d006
jmp 0x18001d02b
mov eax, dword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov dword [rcx + 0xc], eax
mov rcx, qword [rsp + 0x18]
mov dword [rcx + 8], 2
mov dword [rsp + 0x3c], 2
jmp 0x18001d10f
mov eax, dword [rsp + 8]
cmp eax, dword [rsp + 0x2c]
jb 0x18001d046
mov dword [rsp + 0x3c], 0xfffffffc
jmp 0x18001d10f
mov eax, dword [rsp + 8]
mov rcx, qword [rsp + 0x18]
mov edx, dword [rsp + 0x10]
mov r8d, edx
mov word [rcx + r8*2 + 0xb0], ax
mov edx, dword [rsp + 0x10]
add edx, 1
mov dword [rsp + 0x10], edx
jmp 0x18001ce1d
mov dword [rsp + 0x10], 0
mov eax, dword [rsp + 0x10]
cmp eax, dword [rsp + 0xc]
jae 0x18001d107
mov eax, dword [rsp + 0x10]
add eax, 1
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
cmp eax, dword [rsp + 0xc]
ja 0x18001d0f2
mov rax, qword [rsp + 0x18]
mov ecx, dword [rsp + 0x10]
mov edx, ecx
movzx ecx, word [rax + rdx*2 + 0xb0]
mov rax, qword [rsp + 0x18]
mov r8d, dword [rsp + 4]
mov edx, r8d
movzx r8d, word [rax + rdx*2 + 0xb0]
cmp ecx, r8d
jne 0x18001d0dd
mov dword [rsp + 0x3c], 0xfffffffb
jmp 0x18001d10f
jmp 0x18001d0e2
mov eax, dword [rsp + 4]
add eax, 1
mov dword [rsp + 4], eax
jmp 0x18001d090
jmp 0x18001d0f7
mov eax, dword [rsp + 0x10]
add eax, 1
mov dword [rsp + 0x10], eax
jmp 0x18001d077
mov dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x3c]
add rsp, 0xb8
ret