Function at 0x1803a49e0
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, [0x1806087f3]
call fcn.180278fb0
cmp dword [rsp + 0x80], 1
je 0x1803a4a22
cmp dword [rsp + 0x80], 2
je 0x1803a4a22
mov eax, 0x18
jmp 0x1803a4c77
cmp dword [rsp + 0x80], 2
jne 0x1803a4a4c
mov ecx, dword [rsp + 0x98]
call fcn.1803a4410
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1803a4a4c
mov eax, dword [rsp + 0x38]
jmp 0x1803a4c77
mov eax, dword [rsp + 0x88]
and eax, 7
test eax, eax
je 0x1803a4a64
mov dword [rsp + 0x3c], 1
jmp 0x1803a4a6c
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 0x1803a4a95
mov eax, 0x16
jmp 0x1803a4c77
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x20]
cmp dword [rax], ecx
jae 0x1803a4ac0
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov dword [rsp + 0x38], 6
jmp 0x1803a4c73
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 0x1803a4bd8
movsxd rax, dword [rsp + 0x98]
imul rax, rax, 0x50
lea rcx, [0x1805b71c0]
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 0x1803a4b43
mov dword [rsp + 0x38], 9
jmp 0x1803a4c73
mov dword [rsp + 0x28], 0
jmp 0x1803a4b57
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jae 0x1803a4bd6
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
test eax, eax
jne 0x1803a4bd1
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, [0x1805b71c0]
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 0x1803a4bcf
mov dword [rsp + 0x38], 9
jmp 0x1803a4c73
jmp 0x1803a4b61
jmp 0x1803a4b4d
jmp 0x1803a4bef
mov eax, dword [rsp + 0x24]
mov r8d, eax
mov edx, 0xff
mov rcx, qword [rsp + 0x30]
call fcn.1803ebf90
nop
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.1803eb8f0
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