Function at 0x1801f2e70
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 + 0x78]
mov ecx, dword [rsp + 0x88]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
mov ecx, dword [rsp + 0x90]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jle 0x1801f2ed8
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x90], eax
jl 0x1801f2ed8
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x80], eax
jle 0x1801f2edf
xor al, al
jmp 0x1801f31f7
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x80], eax
jge 0x1801f2f3e
mov eax, dword [rsp + 0x80]
mov ecx, dword [rsp + 0x98]
sub ecx, eax
mov eax, ecx
mov r8d, dword [rsp + 0x24]
mov edx, eax
mov ecx, dword [rsp + 0x20]
call fcn.180166a50
mov ecx, dword [rsp + 0x78]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
movzx ecx, al
mov eax, dword [rsp + 0x98]
sar eax, cl
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 0
jmp 0x1801f2f6e
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
movzx ecx, al
mov eax, dword [rsp + 0x80]
sar eax, cl
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
dec eax
mov ecx, dword [rsp + 0x80]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x90], eax
jle 0x1801f2f9f
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
movzx ecx, al
mov eax, dword [rsp + 0xa0]
sar eax, cl
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x34], 0
jmp 0x1801f2fcf
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
movzx ecx, al
mov eax, dword [rsp + 0x90]
sar eax, cl
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
dec eax
mov ecx, dword [rsp + 0x90]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x30], 0
jle 0x1801f301f
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], eax
jne 0x1801f2fe9
xor al, al
jmp 0x1801f31f7
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x30]
mov eax, dword [rax + 4]
sub eax, ecx
mov r8d, dword [rsp + 0x24]
mov edx, eax
mov ecx, dword [rsp + 0x20]
call fcn.180166a50
mov ecx, dword [rsp + 0x78]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
jmp 0x1801f304b
mov rax, qword [rsp + 0x70]
movsx eax, byte [rax + 0x6b]
test eax, eax
je 0x1801f304b
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x30]
sub rax, 4
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x6b], 0
cmp dword [rsp + 0x34], 0
jne 0x1801f3059
mov byte [rsp + 0x50], 1
jmp 0x1801f305e
mov byte [rsp + 0x50], 0
mov rax, qword [rsp + 0x70]
movzx ecx, byte [rsp + 0x50]
mov byte [rax + 0x6b], cl
mov rax, qword [rsp + 0x70]
movsx eax, byte [rax + 0x6a]
test eax, eax
je 0x1801f3091
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x70]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x6a], 0
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
inc eax
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x30]
lea rax, [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
cmp rax, qword [rcx + 0x28]
jb 0x1801f30d3
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x38], 0x62
mov al, 1
jmp 0x1801f31f7
cmp dword [rsp + 0x20], 0
jle 0x1801f3116
mov r8d, dword [rsp + 0x24]
mov edx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 4]
call fcn.1801692f0
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
imul eax, dword [rsp + 0x20]
cdq
idiv dword [rsp + 0x24]
mov eax, edx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x20], 1
jmp 0x1801f315c
mov eax, dword [rsp + 0x20]
neg eax
mov r8d, dword [rsp + 0x24]
mov edx, eax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 4]
call fcn.1801692f0
neg eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x20]
neg eax
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 4]
imul ecx, eax
mov eax, ecx
cdq
idiv dword [rsp + 0x24]
mov eax, edx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x20], 0xffffffff
mov eax, dword [rsp + 0x24]
neg eax
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
cmp dword [rsp + 0x38], 0
jle 0x1801f31e7
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x78]
mov dword [rax], ecx
mov rax, qword [rsp + 0x48]
add rax, 4
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x78]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x1801f31db
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x44]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x78]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x38]
dec eax
mov dword [rsp + 0x38], eax
jmp 0x1801f3174
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x30], rcx
xor al, al
add rsp, 0x60
pop rdi
ret