Function at 0x18008fe00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x50
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x60], eax
jle 0x18008fe26
jmp 0x180090028
mov dword [rsp + 0x24], 0
jmp 0x18008fe3a
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 1
jg 0x180090028
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x80], rax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x88]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x88], rax
movsxd rax, dword [rsp + 0x70]
movsxd rcx, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x80]
mov ecx, dword [r8 + rcx*8]
cmp dword [rdx + rax*8], ecx
jle 0x18008feb2
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x78], eax
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx + rax*8]
mov dword [rsp + 0x2c], eax
movsxd rax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx + rax*8]
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax*8]
mov dword [rsp + 0x34], eax
movsxd rax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x88]
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 + 0x30]
cmp dword [rsp + 0x2c], eax
jne 0x18008ff3a
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jne 0x180090023
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x2c], eax
je 0x18008ff69
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x30]
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.18004eb20
mov dword [rsp + 0x48], eax
jmp 0x18008ff71
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
jmp 0x18008ff8d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x20], eax
jg 0x180090023
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx + rax*8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], eax
jg 0x18008ffcb
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
jmp 0x18009000a
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x28], eax
jl 0x18008ffe7
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
jmp 0x18009000a
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
mov edx, dword [rsp + 0x44]
mov ecx, eax
call fcn.18004eac0
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
mov edx, dword [rsp + 0x28]
mov dword [rcx + rax*8], edx
jmp 0x18008ff83
jmp 0x18008fe30
add rsp, 0x50
pop rdi
ret