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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x68
mov byte [rsp + 0x24], 1
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
xor eax, eax
test eax, eax
jne 0x1801e6874
mov rcx, qword [rsp + 0x88]
call fcn.1801dec70
movzx eax, al
test eax, eax
jne 0x1801e68a2
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x24], 0
jmp 0x1801e68bb
mov rcx, qword [rsp + 0x90]
call fcn.1801dec70
movzx eax, al
test eax, eax
jne 0x1801e68bb
mov byte [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x1801e68e1
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0x10]
cmp dword [rax + 0x10], ecx
jge 0x1801e68e1
jmp 0x1801e6c91
mov dword [rsp + 0x20], 0
jmp 0x1801e68f5
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
cmp dword [rsp + 0x20], eax
jae 0x1801e6928
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x28]
mov edx, dword [rdx + 0x10]
cmp dword [rcx + rax + 0x38], edx
jl 0x1801e6926
jmp 0x1801e6928
jmp 0x1801e68eb
xor eax, eax
test eax, eax
jne 0x1801e6928
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x1801e693d
xor eax, eax
test eax, eax
jne 0x1801e6937
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
cmp dword [rsp + 0x20], eax
jae 0x1801e69c6
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x28]
mov edx, dword [rdx + 0x10]
cmp dword [rcx + rax + 0x38], edx
jne 0x1801e6971
jmp 0x1801e6c91
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x1801e699d
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x30]
mov edx, dword [rdx + 0x10]
cmp dword [rcx + rax + 0x38], edx
jg 0x1801e699d
jmp 0x1801e6c91
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + rax + 0x28]
mov rcx, rax
call fcn.1801e5e30
movzx eax, al
test eax, eax
je 0x1801e69c6
jmp 0x1801e6c91
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
call fcn.1801e5ef0
movzx eax, al
test eax, eax
je 0x1801e6aa8
mov rcx, qword [rsp + 0x28]
call fcn.1801e5e70
movzx eax, al
test eax, eax
jne 0x1801e6aa8
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x1801e6a87
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x28]
add eax, dword [rcx + 0x10]
cdq
sub eax, edx
sar eax, 1
mov edx, eax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
call fcn.1801e5f30
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0x10]
mov eax, dword [rax + 0x10]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov rcx, qword [rsp + 0x80]
mov edx, dword [rcx + 0x1c]
mov ecx, eax
call fcn.180165bd0
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x14], eax
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x14], eax
jmp 0x1801e6aa8
mov rax, qword [rsp + 0x28]
mov edx, dword [rax + 0x10]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
call fcn.1801e5f30
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x14], eax
cmp dword [rsp + 0x20], 0
jbe 0x1801e6ad6
mov eax, dword [rsp + 0x20]
dec eax
mov eax, eax
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x80]
mov eax, dword [rdx + rax + 0x3c]
cmp dword [rcx + 0x14], eax
jge 0x1801e6ad6
jmp 0x1801e6c91
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
cmp dword [rsp + 0x20], eax
jae 0x1801e6b38
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x1801e6b15
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x80]
mov eax, dword [rdx + rax + 0x3c]
cmp dword [rcx + 0x14], eax
jle 0x1801e6b13
jmp 0x1801e6c91
jmp 0x1801e6b38
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x80]
mov eax, dword [rdx + rax + 0x3c]
cmp dword [rcx + 0x14], eax
jle 0x1801e6b38
jmp 0x1801e6c91
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
dec eax
mov dword [rsp + 0x40], eax
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x1801e6b65
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
inc eax
mov dword [rsp + 0x4c], eax
jmp 0x1801e6b74
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x20]
mov eax, dword [rax + 0x20]
sub eax, ecx
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x44], 0xc0
jb 0x1801e6ba6
xor eax, eax
test eax, eax
jne 0x1801e6b9b
jmp 0x1801e6c91
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x48]
dec eax
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x50], 0
je 0x1801e6c06
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x20
mov ecx, dword [rsp + 0x44]
imul rcx, rcx, 0x20
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x80]
lea rdi, [rdx + rcx + 0x28]
lea rsi, [r8 + rax + 0x28]
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x44]
dec eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
jmp 0x1801e6ba6
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x80]
lea rdi, [rcx + rax + 0x28]
mov rsi, qword [rsp + 0x28]
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x20], eax
xor eax, eax
test eax, eax
jne 0x1801e6c3f
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x1801e6c91
mov eax, dword [rsp + 0x20]
inc eax
mov eax, eax
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x80]
lea rdi, [rcx + rax + 0x28]
mov rsi, qword [rsp + 0x30]
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x20], eax
xor eax, eax
test eax, eax
jne 0x1801e6c8b
add rsp, 0x68
pop rdi
pop rsi
ret