Function at 0x140224120
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 0x14022414b
mov eax, 0xfffffffd
jmp 0x1402244d1
cmp dword [rsp + 0x88], 1
je 0x140224162
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
jne 0x1402241a7
cmp qword [rsp + 0x98], 0
je 0x14022417b
mov rax, qword [rsp + 0x98]
mov dword [rax], 0
cmp qword [rsp + 0x90], 0
je 0x1402241a0
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
call fcn.140221280
jmp 0x1402244d1
xor eax, eax
jmp 0x1402244d1
xor eax, eax
cmp eax, 1
je 0x14022424e
cmp dword [rsp + 0x88], 2
jne 0x14022424e
cmp qword [rsp + 0x98], 0
je 0x140224217
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
je 0x140224201
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 0x140224201
mov dword [rsp + 0x30], 1
jmp 0x140224209
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 0x14022422c
mov dword [rsp + 0x34], 0
jmp 0x140224245
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
call fcn.140221e60
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
jmp 0x1402244d1
xor eax, eax
cmp eax, 1
je 0x14022434a
cmp dword [rsp + 0x88], 0
je 0x14022434a
mov eax, dword [rsp + 0x88]
dec eax
mov ecx, dword [rsp + 0x88]
and ecx, eax
mov eax, ecx
test eax, eax
jne 0x14022434a
mov dword [rsp + 0x20], 1
cmp dword [rsp + 0x20], 0x1c
jge 0x1402242bd
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 0x1402242bd
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x14022428b
cmp qword [rsp + 0x98], 0
je 0x14022430c
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 0x140224321
mov dword [rsp + 0x38], 0
jmp 0x140224341
xor r9d, r9d
mov r8, qword [rsp + 0x90]
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.140221cd0
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
jmp 0x1402244d1
xor eax, eax
cmp eax, 1
je 0x14022437d
cmp dword [rsp + 0x88], 3
jne 0x14022437d
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
call fcn.1402268b0
jmp 0x1402244d1
mov rax, qword [rsp + 0x80]
mov edx, dword [rax]
lea rcx, [rsp + 0x48]
call fcn.1402206f0
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x1402243a5
mov eax, dword [rsp + 0x3c]
jmp 0x1402244d1
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 0x140224485
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 0x14022446f
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 0x1402243d9
cmp qword [rsp + 0x98], 0
je 0x14022449e
mov rax, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
cmp qword [rsp + 0x90], 0
je 0x1402244c5
lea rcx, [rsp + 0x48]
call fcn.1402213b0
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.140220510
lea rcx, [rsp + 0x48]
call fcn.140220260
xor eax, eax
add rsp, 0x78
ret