Function at 0x1801a45a0
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
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x78], eax
jbe 0x1801a45ca
jmp 0x1801a487a
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x88], eax
jae 0x1801a45ec
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x90], eax
jb 0x1801a45f1
jmp 0x1801a487a
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x10]
mov eax, dword [rcx + rax*8]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x10]
mov eax, dword [rcx + rax*8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jle 0x1801a4665
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax*8]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax*8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
mov eax, dword [rcx + rax*8]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
mov eax, dword [rcx + rax*8]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
je 0x1801a46f7
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jne 0x1801a4786
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
jmp 0x1801a470b
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x20], eax
ja 0x1801a4781
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax*8]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x4c], eax
jg 0x1801a4747
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x4c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x4c], eax
jmp 0x1801a476b
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x4c], eax
jl 0x1801a4763
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x4c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x4c], eax
jmp 0x1801a476b
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
mov edx, dword [rsp + 0x4c]
mov dword [rcx + rax*8], edx
jmp 0x1801a4701
jmp 0x1801a487a
mov dword [rsp + 0x50], 0
mov byte [rsp + 0x54], 0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
jmp 0x1801a47a7
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x20], eax
ja 0x1801a487a
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax*8]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x58], eax
jg 0x1801a47e7
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
jmp 0x1801a4861
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x58], eax
jl 0x1801a4803
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
jmp 0x1801a4861
movzx eax, byte [rsp + 0x54]
test eax, eax
jne 0x1801a4834
mov byte [rsp + 0x54], 1
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x38]
sub edx, ecx
mov ecx, edx
mov edx, eax
call fcn.180165c30
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x10]
mov edx, dword [rsp + 0x24]
mov eax, dword [rcx + rax*8]
sub eax, edx
mov edx, dword [rsp + 0x50]
mov ecx, eax
call fcn.180165bd0
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
mov edx, dword [rsp + 0x58]
mov dword [rcx + rax*8], edx
jmp 0x1801a479d
add rsp, 0x60
pop rdi
ret