Function at 0x1801d89b0
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 0x1801d89da
jmp 0x1801d8c8a
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x88], eax
jae 0x1801d89fc
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x90], eax
jb 0x1801d8a01
jmp 0x1801d8c8a
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 0x1801d8a75
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 0x1801d8b07
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jne 0x1801d8b96
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
jmp 0x1801d8b1b
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x20], eax
ja 0x1801d8b91
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 0x1801d8b57
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x4c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x4c], eax
jmp 0x1801d8b7b
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x4c], eax
jl 0x1801d8b73
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x4c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x4c], eax
jmp 0x1801d8b7b
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 0x1801d8b11
jmp 0x1801d8c8a
mov dword [rsp + 0x50], 0
mov byte [rsp + 0x54], 0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
jmp 0x1801d8bb7
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x20], eax
ja 0x1801d8c8a
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 0x1801d8bf7
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
jmp 0x1801d8c71
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x58], eax
jl 0x1801d8c13
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
jmp 0x1801d8c71
movzx eax, byte [rsp + 0x54]
test eax, eax
jne 0x1801d8c44
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.18019a040
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.180199fe0
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 0x1801d8bad
add rsp, 0x60
pop rdi
ret