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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rcx, [0x1805054c5]
call fcn.1801b5d60
cmp dword [rsp + 0x80], 1
je 0x1802e3582
cmp dword [rsp + 0x80], 2
je 0x1802e3582
mov eax, 0x18
jmp 0x1802e37d6
cmp dword [rsp + 0x80], 2
jne 0x1802e35ac
mov ecx, dword [rsp + 0x98]
call fcn.1802e2f70
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1802e35ac
mov eax, dword [rsp + 0x38]
jmp 0x1802e37d6
mov eax, dword [rsp + 0x88]
and eax, 7
test eax, eax
je 0x1802e35c4
mov dword [rsp + 0x3c], 1
jmp 0x1802e35cc
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x88]
shr eax, 3
add eax, dword [rsp + 0x3c]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x78]
add eax, 0xb
cmp eax, dword [rsp + 0x20]
jbe 0x1802e35f5
mov eax, 0x16
jmp 0x1802e37d6
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x20]
cmp dword [rax], ecx
jae 0x1802e3620
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov dword [rsp + 0x38], 6
jmp 0x1802e37d2
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
sub eax, 3
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x80], 2
jne 0x1802e3738
movsxd rax, dword [rsp + 0x98]
imul rax, rax, 0x50
lea rcx, [0x1804ca2f0]
mov qword [rsp + 0x40], rcx
mov r8, qword [rsp + 0x90]
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
call qword [r9 + rax + 0x28]
cmp eax, dword [rsp + 0x24]
je 0x1802e36a3
mov dword [rsp + 0x38], 9
jmp 0x1802e37d2
mov dword [rsp + 0x28], 0
jmp 0x1802e36b7
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jae 0x1802e3736
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
test eax, eax
jne 0x1802e3731
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x98]
imul rcx, rcx, 0x50
mov qword [rsp + 0x48], rcx
lea rdx, [0x1804ca2f0]
mov qword [rsp + 0x50], rdx
mov r8, qword [rsp + 0x90]
mov edx, 1
mov rcx, rax
mov r9, qword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
call qword [r9 + rax + 0x28]
cmp eax, 1
je 0x1802e372f
mov dword [rsp + 0x38], 9
jmp 0x1802e37d2
jmp 0x1802e36c1
jmp 0x1802e36ad
jmp 0x1802e374e
mov eax, dword [rsp + 0x24]
mov r8d, eax
mov edx, 0xff
mov rcx, qword [rsp + 0x30]
call fcn.1801ba2c0
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0xa0]
mov byte [rcx + rax], 0
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0xa0]
movzx edx, byte [rsp + 0x80]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x24]
add eax, 2
mov eax, eax
mov rcx, qword [rsp + 0xa0]
mov byte [rcx + rax], 0
mov eax, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x24]
add ecx, 3
mov ecx, ecx
mov rdx, qword [rsp + 0xa0]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
mov rdx, qword [rsp + 0x70]
call fcn.1801b9c10
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
add rsp, 0x60
pop rdi
ret