Function at 0x1801be020
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 0x1801be097
mov eax, dword [rsp + 0xb8]
dec eax
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0xc0], 0
jbe 0x1801be0b1
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 0x1801be0d9
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xa0]
cmp dword [rsp + 0xc0], eax
jbe 0x1801be0de
jmp 0x1801be6b8
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 0x1801be160
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1801be188
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x40], eax
jb 0x1801be186
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x1c]
cmp dword [rsp + 0x40], eax
ja 0x1801be186
jmp 0x1801be18d
jmp 0x1801be153
jmp 0x1801be6b8
mov rax, qword [rsp + 0x48]
mov edx, dword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
call fcn.180167f60
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x1801be1d3
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.180168260
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1801be1d8
jmp 0x1801be6b8
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.1801bd710
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 0x1801be25b
mov byte [rsp + 0x94], 1
jmp 0x1801be263
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 0x1801be289
mov byte [rsp + 0x95], 1
jmp 0x1801be291
mov byte [rsp + 0x95], 0
movzx eax, byte [rsp + 0x95]
mov byte [rsp + 0x79], al
cmp dword [rsp + 0x68], 0
jbe 0x1801be3ff
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 0x1801be357
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 0x1801be3a1
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 0x1801be3b3
jmp 0x1801be636
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x88], eax
jae 0x1801be3ff
movzx eax, byte [rsp + 0x79]
test eax, eax
je 0x1801be3df
mov rax, qword [rsp + 0x80]
add rax, 2
mov qword [rsp + 0x80], rax
jmp 0x1801be3f2
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 0x1801be541
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 0x1801be4bf
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 0x1801be509
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 0x1801be51b
jmp 0x1801be636
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x88], eax
jae 0x1801be53c
mov eax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
jmp 0x1801be3ff
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x80], rax
movzx eax, byte [rsp + 0x78]
test eax, eax
je 0x1801be5df
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 0x1801be629
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 0x1801be6ae
movzx eax, byte [rsp + 0x79]
test eax, eax
je 0x1801be678
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 0x1801be694
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.180168440
mov eax, dword [rsp + 0x28]
add rsp, 0xa0
pop rdi
ret