Function at 0x180390690
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, [0x1805f57a5]
call fcn.1802647b0
cmp dword [rsp + 0x80], 1
je 0x1803906d2
cmp dword [rsp + 0x80], 2
je 0x1803906d2
mov eax, 0x18
jmp 0x180390926
cmp dword [rsp + 0x80], 2
jne 0x1803906fc
mov ecx, dword [rsp + 0x98]
call fcn.1803900c0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1803906fc
mov eax, dword [rsp + 0x38]
jmp 0x180390926
mov eax, dword [rsp + 0x88]
and eax, 7
test eax, eax
je 0x180390714
mov dword [rsp + 0x3c], 1
jmp 0x18039071c
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 0x180390745
mov eax, 0x16
jmp 0x180390926
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x20]
cmp dword [rax], ecx
jae 0x180390770
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov dword [rsp + 0x38], 6
jmp 0x180390922
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 0x180390888
movsxd rax, dword [rsp + 0x98]
imul rax, rax, 0x50
lea rcx, [0x1805a4fd0]
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 0x1803907f3
mov dword [rsp + 0x38], 9
jmp 0x180390922
mov dword [rsp + 0x28], 0
jmp 0x180390807
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jae 0x180390886
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
test eax, eax
jne 0x180390881
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, [0x1805a4fd0]
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 0x18039087f
mov dword [rsp + 0x38], 9
jmp 0x180390922
jmp 0x180390811
jmp 0x1803907fd
jmp 0x18039089e
mov eax, dword [rsp + 0x24]
mov r8d, eax
mov edx, 0xff
mov rcx, qword [rsp + 0x30]
call fcn.1803d7a10
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.1803d7370
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