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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x4c]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x48]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x90], 0
jne 0x18021e271
jmp 0x18021e837
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x18021e2a1
cmp dword [rsp + 0x50], 1
je 0x18021e47a
cmp dword [rsp + 0x50], 2
je 0x18021e6fb
jmp 0x18021e837
mov edx, 2
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0xc8]
call fcn.180167f60
test eax, eax
jne 0x18021e2e2
mov r8d, 1
lea rdx, [rsp + 0x34]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0xc8]
call fcn.180168180
cmp eax, 1
je 0x18021e2e7
jmp 0x18021e86a
movzx eax, byte [rsp + 0x34]
and eax, 0x1f
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x30], eax
movzx eax, byte [rsp + 0x34]
and eax, 0x80
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x34], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x30]
mov ecx, 1
mov dword [rsp + 0x54], ecx
movzx ecx, al
mov eax, dword [rsp + 0x54]
shl eax, cl
sub eax, 0x100
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x38], eax
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x30], 0x10
jbe 0x18021e34f
jmp 0x18021e86a
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x3c], 9
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x34], 0
je 0x18021e376
mov dword [rsp + 0x58], 0x101
jmp 0x18021e37e
mov dword [rsp + 0x58], 0x100
mov eax, dword [rsp + 0x58]
sub eax, 0x100
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x40], eax
mov dword [rsp + 0x2c], 0
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x30]
cmp dword [rax + 0x3c], ecx
jae 0x18021e3da
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x3c]
mov ecx, 1
mov dword [rsp + 0x5c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x5c]
shl eax, cl
sub eax, 0x100
mov dword [rsp + 0x60], eax
jmp 0x18021e3eb
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x38]
inc eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x60]
mov dword [rax + 0x44], ecx
mov rcx, qword [rsp + 0x80]
call fcn.18021f0a0
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x18021e41c
cmp dword [rsp + 0x44], 0xff
jle 0x18021e421
jmp 0x18021e86a
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x28], eax
cmp qword [rsp + 0x88], 0
je 0x18021e450
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
movzx edx, byte [rsp + 0x24]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x20], eax
jb 0x18021e46c
jmp 0x18021e837
mov rax, qword [rsp + 0x80]
mov dword [rax], 1
mov rcx, qword [rsp + 0x80]
call fcn.18021f0a0
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jge 0x18021e497
jmp 0x18021e86a
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0x100
jne 0x18021e4e4
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x34], 0
je 0x18021e4e4
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x40], 0
mov rax, qword [rsp + 0x80]
mov byte [rax + 0x20], 1
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0
jmp 0x18021e47a
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x4c], 0x100
jb 0x18021e676
mov eax, dword [rsp + 0x4c]
sub eax, 0x100
mov rcx, qword [rsp + 0x80]
cmp eax, dword [rcx + 0x40]
jb 0x18021e5a6
mov eax, dword [rsp + 0x4c]
sub eax, 0x100
mov rcx, qword [rsp + 0x80]
cmp eax, dword [rcx + 0x40]
jbe 0x18021e52f
jmp 0x18021e86a
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
mov rcx, qword [rsp + 0x80]
cmp rax, qword [rcx + 0x80]
jb 0x18021e561
mov rcx, qword [rsp + 0x80]
call fcn.18021f2e0
test eax, eax
jge 0x18021e561
jmp 0x18021e86a
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x70]
movzx edx, byte [rsp + 0x24]
mov byte [rcx + rax], dl
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x78], eax
xor eax, eax
test eax, eax
jne 0x18021e52f
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0x100
jb 0x18021e676
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x58], 0
jne 0x18021e5c8
jmp 0x18021e86a
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
mov rcx, qword [rsp + 0x80]
cmp rax, qword [rcx + 0x80]
jb 0x18021e5fa
mov rcx, qword [rsp + 0x80]
call fcn.18021f2e0
test eax, eax
jge 0x18021e5fa
jmp 0x18021e86a
mov eax, dword [rsp + 0x4c]
sub eax, 0x100
mov eax, eax
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x60]
mov rdx, qword [rsp + 0x80]
mov edx, dword [rdx + 0x78]
mov r8, qword [rsp + 0x80]
mov r8, qword [r8 + 0x70]
movzx eax, byte [rcx + rax]
mov byte [r8 + rdx], al
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x78], eax
xor eax, eax
test eax, eax
jne 0x18021e5c8
mov eax, dword [rsp + 0x4c]
sub eax, 0x100
mov eax, eax
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x58]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x4c], eax
jmp 0x18021e5a6
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
mov rcx, qword [rsp + 0x80]
cmp rax, qword [rcx + 0x80]
jb 0x18021e6b0
mov rcx, qword [rsp + 0x80]
call fcn.18021f2e0
test eax, eax
jge 0x18021e6b0
jmp 0x18021e86a
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x70]
movzx edx, byte [rsp + 0x24]
mov byte [rcx + rax], dl
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x78], eax
xor eax, eax
test eax, eax
jne 0x18021e67e
mov rax, qword [rsp + 0x80]
mov dword [rax], 2
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x78], 0
jbe 0x18021e775
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
dec eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x78], eax
cmp qword [rsp + 0x88], 0
je 0x18021e757
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x70]
mov edx, dword [rsp + 0x20]
mov r8, qword [rsp + 0x88]
movzx eax, byte [rcx + rax]
mov byte [r8 + rdx], al
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x20], eax
jne 0x18021e773
jmp 0x18021e837
jmp 0x18021e6fb
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x38]
cmp dword [rax + 0x40], ecx
jae 0x18021e81c
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x68]
cmp dword [rax + 0x40], ecx
jb 0x18021e7bf
mov rcx, qword [rsp + 0x80]
call fcn.18021f450
test eax, eax
jge 0x18021e7bf
jmp 0x18021e86a
xor eax, eax
test eax, eax
jne 0x18021e7bf
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x40]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x58]
movzx edx, word [rsp + 0x28]
mov word [rcx + rax*2], dx
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x40]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x60]
movzx edx, byte [rsp + 0x24]
mov byte [rcx + rax], dl
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x40]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x40], eax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x80]
mov dword [rax], 1
jmp 0x18021e47a
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x48], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x24]
mov dword [rax + 0x4c], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x2c]
mov dword [rax + 0x50], ecx
mov eax, dword [rsp + 0x20]
jmp 0x18021e87a
mov rax, qword [rsp + 0x80]
mov dword [rax], 3
jmp 0x18021e837
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1802f9ea0]
call fcn.180220850
mov rax, rdi
add rsp, 0x70
pop rdi
ret