Function at 0x18021ac50
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 0x18021ac84
mov rcx, qword [rsp + 0x88]
call fcn.180213080
movzx eax, al
test eax, eax
jne 0x18021acb2
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x24], 0
jmp 0x18021accb
mov rcx, qword [rsp + 0x90]
call fcn.180213080
movzx eax, al
test eax, eax
jne 0x18021accb
mov byte [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x18021acf1
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0x10]
cmp dword [rax + 0x10], ecx
jge 0x18021acf1
jmp 0x18021b0a1
mov dword [rsp + 0x20], 0
jmp 0x18021ad05
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 0x18021ad38
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 0x18021ad36
jmp 0x18021ad38
jmp 0x18021acfb
xor eax, eax
test eax, eax
jne 0x18021ad38
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x18021ad4d
xor eax, eax
test eax, eax
jne 0x18021ad47
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
cmp dword [rsp + 0x20], eax
jae 0x18021add6
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 0x18021ad81
jmp 0x18021b0a1
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x18021adad
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 0x18021adad
jmp 0x18021b0a1
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + rax + 0x28]
mov rcx, rax
call fcn.18021a240
movzx eax, al
test eax, eax
je 0x18021add6
jmp 0x18021b0a1
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
call fcn.18021a300
movzx eax, al
test eax, eax
je 0x18021aeb8
mov rcx, qword [rsp + 0x28]
call fcn.18021a280
movzx eax, al
test eax, eax
jne 0x18021aeb8
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x18021ae97
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.18021a340
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.180199fe0
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 0x18021aeb8
mov rax, qword [rsp + 0x28]
mov edx, dword [rax + 0x10]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
call fcn.18021a340
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x14], eax
cmp dword [rsp + 0x20], 0
jbe 0x18021aee6
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 0x18021aee6
jmp 0x18021b0a1
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
cmp dword [rsp + 0x20], eax
jae 0x18021af48
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x18021af25
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 0x18021af23
jmp 0x18021b0a1
jmp 0x18021af48
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 0x18021af48
jmp 0x18021b0a1
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 0x18021af75
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
inc eax
mov dword [rsp + 0x4c], eax
jmp 0x18021af84
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 0x18021afb6
xor eax, eax
test eax, eax
jne 0x18021afab
jmp 0x18021b0a1
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 0x18021b016
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 0x18021afb6
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 0x18021b04f
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x18021b0a1
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 0x18021b09b
add rsp, 0x68
pop rdi
pop rsi
ret