Function at 0x1801a5530
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 0x1801a555a
jmp 0x1801a580a
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x88], eax
jae 0x1801a557c
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x90], eax
jb 0x1801a5581
jmp 0x1801a580a
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 0x1801a55f5
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 0x1801a5687
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jne 0x1801a5716
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
jmp 0x1801a569b
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x20], eax
ja 0x1801a5711
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 0x1801a56d7
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x4c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x4c], eax
jmp 0x1801a56fb
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x4c], eax
jl 0x1801a56f3
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x4c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x4c], eax
jmp 0x1801a56fb
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 0x1801a5691
jmp 0x1801a580a
mov dword [rsp + 0x50], 0
mov byte [rsp + 0x54], 0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
jmp 0x1801a5737
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x20], eax
ja 0x1801a580a
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 0x1801a5777
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
jmp 0x1801a57f1
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x58], eax
jl 0x1801a5793
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
jmp 0x1801a57f1
movzx eax, byte [rsp + 0x54]
test eax, eax
jne 0x1801a57c4
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.180166bc0
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.180166b60
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 0x1801a572d
add rsp, 0x60
pop rdi
ret