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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x20]
add rax, 0x178
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xc8]
mov dword [rax], 0
mov rax, qword [rsp + 0xc8]
mov dword [rax + 4], 0
cmp dword [rsp + 0xb8], 0
jbe 0x1801c4107
mov eax, dword [rsp + 0xb8]
dec eax
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0xc0], 0
jbe 0x1801c4121
mov eax, dword [rsp + 0xc0]
dec eax
mov dword [rsp + 0xc0], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xa0]
cmp dword [rsp + 0xb8], eax
ja 0x1801c4149
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xa0]
cmp dword [rsp + 0xc0], eax
jbe 0x1801c414e
jmp 0x1801c4728
mov eax, dword [rsp + 0xb8]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0xb0]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xc0]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0xb0]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x38]
shl eax, 0x10
movzx ecx, word [rsp + 0x3c]
or eax, ecx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0xc0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0xa0]
mov qword [rsp + 0x50], rax
jmp 0x1801c41d0
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1801c41f8
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x40], eax
jb 0x1801c41f6
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x1c]
cmp dword [rsp + 0x40], eax
ja 0x1801c41f6
jmp 0x1801c41fd
jmp 0x1801c41c3
jmp 0x1801c4728
mov rax, qword [rsp + 0x48]
mov edx, dword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
call fcn.18016dfd0
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x1801c4243
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 8]
mov rcx, qword [rsp + 0x48]
imul eax, dword [rcx + 0xc]
mov edx, eax
mov rcx, qword [rsp + 0x50]
call fcn.18016e2d0
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1801c4248
jmp 0x1801c4728
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 8]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x5c], eax
mov ecx, dword [rsp + 0x58]
call fcn.1801c3780
mov ecx, 1
mov dword [rsp + 0x90], ecx
movzx ecx, al
mov eax, dword [rsp + 0x90]
shl eax, cl
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
imul eax, dword [rsp + 0x5c]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x58]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 9]
and eax, 1
test eax, eax
je 0x1801c42cb
mov byte [rsp + 0x94], 1
jmp 0x1801c42d3
mov byte [rsp + 0x94], 0
movzx eax, byte [rsp + 0x94]
mov byte [rsp + 0x78], al
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 9]
and eax, 2
test eax, eax
je 0x1801c42f9
mov byte [rsp + 0x95], 1
jmp 0x1801c4301
mov byte [rsp + 0x95], 0
movzx eax, byte [rsp + 0x95]
mov byte [rsp + 0x79], al
cmp dword [rsp + 0x68], 0
jbe 0x1801c446f
mov eax, dword [rsp + 0x68]
imul eax, dword [rsp + 0x5c]
mov eax, eax
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
movzx eax, byte [rsp + 0x78]
test eax, eax
je 0x1801c43c7
mov rax, qword [rsp + 0x80]
add rax, 4
mov qword [rsp + 0x80], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax - 4]
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x80]
movzx ecx, byte [rdx + rcx - 4]
shl ecx, 0x10
or eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x80]
movzx ecx, byte [rdx + rcx - 4]
shl ecx, 8
or eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x80]
movzx ecx, byte [rdx + rcx - 4]
or eax, ecx
mov dword [rsp + 0x88], eax
jmp 0x1801c4411
mov rax, qword [rsp + 0x80]
add rax, 2
mov qword [rsp + 0x80], rax
mov eax, 1
imul rax, rax, 0xfffffffffffffffe
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
shl eax, 0x10
mov ecx, 1
imul rcx, rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x80]
movzx ecx, byte [rdx + rcx]
or eax, ecx
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x88], eax
jne 0x1801c4423
jmp 0x1801c46a6
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x88], eax
jae 0x1801c446f
movzx eax, byte [rsp + 0x79]
test eax, eax
je 0x1801c444f
mov rax, qword [rsp + 0x80]
add rax, 2
mov qword [rsp + 0x80], rax
jmp 0x1801c4462
mov rax, qword [rsp + 0x80]
inc rax
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x64], eax
jbe 0x1801c45b1
mov eax, dword [rsp + 0x64]
shr eax, 1
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
movzx eax, byte [rsp + 0x78]
test eax, eax
je 0x1801c452f
mov rax, qword [rsp + 0x80]
add rax, 4
mov qword [rsp + 0x80], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax - 4]
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x80]
movzx ecx, byte [rdx + rcx - 4]
shl ecx, 0x10
or eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x80]
movzx ecx, byte [rdx + rcx - 4]
shl ecx, 8
or eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x80]
movzx ecx, byte [rdx + rcx - 4]
or eax, ecx
mov dword [rsp + 0x88], eax
jmp 0x1801c4579
mov rax, qword [rsp + 0x80]
add rax, 2
mov qword [rsp + 0x80], rax
mov eax, 1
imul rax, rax, 0xfffffffffffffffe
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
shl eax, 0x10
mov ecx, 1
imul rcx, rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x80]
movzx ecx, byte [rdx + rcx]
or eax, ecx
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x88], eax
jne 0x1801c458b
jmp 0x1801c46a6
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x88], eax
jae 0x1801c45ac
mov eax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
jmp 0x1801c446f
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x80], rax
movzx eax, byte [rsp + 0x78]
test eax, eax
je 0x1801c464f
mov rax, qword [rsp + 0x80]
add rax, 4
mov qword [rsp + 0x80], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax - 4]
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x80]
movzx ecx, byte [rdx + rcx - 4]
shl ecx, 0x10
or eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x80]
movzx ecx, byte [rdx + rcx - 4]
shl ecx, 8
or eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x80]
movzx ecx, byte [rdx + rcx - 4]
or eax, ecx
mov dword [rsp + 0x88], eax
jmp 0x1801c4699
mov rax, qword [rsp + 0x80]
add rax, 2
mov qword [rsp + 0x80], rax
mov eax, 1
imul rax, rax, 0xfffffffffffffffe
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
shl eax, 0x10
mov ecx, 1
imul rcx, rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x80]
movzx ecx, byte [rdx + rcx]
or eax, ecx
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x88], eax
jne 0x1801c471e
movzx eax, byte [rsp + 0x79]
test eax, eax
je 0x1801c46e8
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
shl eax, 8
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x80]
movzx ecx, byte [rdx + rcx]
or eax, ecx
cwde
mov dword [rsp + 0x8c], eax
jmp 0x1801c4704
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x8c], eax
mov rax, qword [rsp + 0x48]
movsx eax, word [rax + 0xa]
add eax, dword [rsp + 0x8c]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x50]
call fcn.18016e4b0
mov eax, dword [rsp + 0x28]
add rsp, 0xa0
pop rdi
ret