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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp dword [rsp + 0x88], 0
jne 0x14022f2bb
mov eax, 0xfffffffd
jmp 0x14022f641
cmp dword [rsp + 0x88], 1
je 0x14022f2d2
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
jne 0x14022f317
cmp qword [rsp + 0x98], 0
je 0x14022f2eb
mov rax, qword [rsp + 0x98]
mov dword [rax], 0
cmp qword [rsp + 0x90], 0
je 0x14022f310
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
call fcn.14022c3f0
jmp 0x14022f641
xor eax, eax
jmp 0x14022f641
xor eax, eax
cmp eax, 1
je 0x14022f3be
cmp dword [rsp + 0x88], 2
jne 0x14022f3be
cmp qword [rsp + 0x98], 0
je 0x14022f387
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
je 0x14022f371
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x10]
mov eax, dword [rcx + rax]
and eax, 1
test eax, eax
je 0x14022f371
mov dword [rsp + 0x30], 1
jmp 0x14022f379
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
cmp qword [rsp + 0x90], 0
jne 0x14022f39c
mov dword [rsp + 0x34], 0
jmp 0x14022f3b5
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
call fcn.14022cfd0
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
jmp 0x14022f641
xor eax, eax
cmp eax, 1
je 0x14022f4ba
cmp dword [rsp + 0x88], 0
je 0x14022f4ba
mov eax, dword [rsp + 0x88]
dec eax
mov ecx, dword [rsp + 0x88]
and ecx, eax
mov eax, ecx
test eax, eax
jne 0x14022f4ba
mov dword [rsp + 0x20], 1
cmp dword [rsp + 0x20], 0x1c
jge 0x14022f42d
mov eax, dword [rsp + 0x20]
mov ecx, 1
mov dword [rsp + 0x40], ecx
movzx ecx, al
mov eax, dword [rsp + 0x40]
shl eax, cl
cmp dword [rsp + 0x88], eax
je 0x14022f42d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x14022f3fb
cmp qword [rsp + 0x98], 0
je 0x14022f47c
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x60], rcx
mov edx, dword [rsp + 0x20]
mov r8d, 1
movzx ecx, dl
mov edx, r8d
shl edx, cl
mov ecx, edx
dec ecx
mov rdx, qword [rsp + 0x60]
mov eax, dword [rdx + rax]
and eax, ecx
mov rcx, qword [rsp + 0x98]
mov dword [rcx], eax
cmp qword [rsp + 0x90], 0
jne 0x14022f491
mov dword [rsp + 0x38], 0
jmp 0x14022f4b1
xor r9d, r9d
mov r8, qword [rsp + 0x90]
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.14022ce40
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
jmp 0x14022f641
xor eax, eax
cmp eax, 1
je 0x14022f4ed
cmp dword [rsp + 0x88], 3
jne 0x14022f4ed
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
call fcn.140231a20
jmp 0x14022f641
mov rax, qword [rsp + 0x80]
mov edx, dword [rax]
lea rcx, [rsp + 0x48]
call fcn.14022b860
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x14022f515
mov eax, dword [rsp + 0x3c]
jmp 0x14022f641
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 8]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x44], 0
jle 0x14022f5f5
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x28]
shl rax, 0x1c
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov ecx, dword [rdx + rcx*4]
or rax, rcx
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x88]
cmp qword [rsp + 0x28], rax
jb 0x14022f5df
mov eax, dword [rsp + 0x88]
mov qword [rsp + 0x68], rax
xor edx, edx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
div rcx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x88]
imul rax, rcx
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
mov edx, dword [rsp + 0x24]
mov dword [rcx + rax*4], edx
jmp 0x14022f549
cmp qword [rsp + 0x98], 0
je 0x14022f60e
mov rax, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
cmp qword [rsp + 0x90], 0
je 0x14022f635
lea rcx, [rsp + 0x48]
call fcn.14022c520
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.14022b680
lea rcx, [rsp + 0x48]
call fcn.14022b3d0
xor eax, eax
add rsp, 0x78
ret