Function at 0x1802d6460
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, [0x1804b958b]
call fcn.1801a9330
cmp dword [rsp + 0x80], 1
je 0x1802d64a2
cmp dword [rsp + 0x80], 2
je 0x1802d64a2
mov eax, 0x18
jmp 0x1802d66f6
cmp dword [rsp + 0x80], 2
jne 0x1802d64cc
mov ecx, dword [rsp + 0x98]
call fcn.1802d5e90
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1802d64cc
mov eax, dword [rsp + 0x38]
jmp 0x1802d66f6
mov eax, dword [rsp + 0x88]
and eax, 7
test eax, eax
je 0x1802d64e4
mov dword [rsp + 0x3c], 1
jmp 0x1802d64ec
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 0x1802d6515
mov eax, 0x16
jmp 0x1802d66f6
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x20]
cmp dword [rax], ecx
jae 0x1802d6540
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov dword [rsp + 0x38], 6
jmp 0x1802d66f2
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 0x1802d6658
movsxd rax, dword [rsp + 0x98]
imul rax, rax, 0x50
lea rcx, [0x18047e940]
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 0x1802d65c3
mov dword [rsp + 0x38], 9
jmp 0x1802d66f2
mov dword [rsp + 0x28], 0
jmp 0x1802d65d7
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jae 0x1802d6656
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
test eax, eax
jne 0x1802d6651
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, [0x18047e940]
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 0x1802d664f
mov dword [rsp + 0x38], 9
jmp 0x1802d66f2
jmp 0x1802d65e1
jmp 0x1802d65cd
jmp 0x1802d666e
mov eax, dword [rsp + 0x24]
mov r8d, eax
mov edx, 0xff
mov rcx, qword [rsp + 0x30]
call fcn.1801ad4e0
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.1801ace30
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