Function at 0x18037b550
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, [0x1805d7793]
call fcn.18024f670
cmp dword [rsp + 0x80], 1
je 0x18037b592
cmp dword [rsp + 0x80], 2
je 0x18037b592
mov eax, 0x18
jmp 0x18037b7e6
cmp dword [rsp + 0x80], 2
jne 0x18037b5bc
mov ecx, dword [rsp + 0x98]
call fcn.18037af80
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x18037b5bc
mov eax, dword [rsp + 0x38]
jmp 0x18037b7e6
mov eax, dword [rsp + 0x88]
and eax, 7
test eax, eax
je 0x18037b5d4
mov dword [rsp + 0x3c], 1
jmp 0x18037b5dc
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 0x18037b605
mov eax, 0x16
jmp 0x18037b7e6
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x20]
cmp dword [rax], ecx
jae 0x18037b630
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov dword [rsp + 0x38], 6
jmp 0x18037b7e2
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 0x18037b748
movsxd rax, dword [rsp + 0x98]
imul rax, rax, 0x50
lea rcx, [0x18058a080]
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 0x18037b6b3
mov dword [rsp + 0x38], 9
jmp 0x18037b7e2
mov dword [rsp + 0x28], 0
jmp 0x18037b6c7
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jae 0x18037b746
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
test eax, eax
jne 0x18037b741
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, [0x18058a080]
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 0x18037b73f
mov dword [rsp + 0x38], 9
jmp 0x18037b7e2
jmp 0x18037b6d1
jmp 0x18037b6bd
jmp 0x18037b75e
mov eax, dword [rsp + 0x24]
mov r8d, eax
mov edx, 0xff
mov rcx, qword [rsp + 0x30]
call fcn.1803c28d0
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.1803c2230
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