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

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov dword [rsp + 0x20], 0
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0xd0]
call fcn.140013a88
nop
mov al, byte [rsp + 0xd8]
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x140021b73
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
mov rax, qword [rcx + rax + 0x28]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 1
jg 0x1400218d7
mov qword [rsp + 0x90], 0
jmp 0x14002190e
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
mov rax, qword [rcx + rax + 0x28]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
dec rax
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
mov eax, dword [rcx + rax + 0x18]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
and eax, 0x1c0
cmp eax, 0x40
je 0x140021a17
jmp 0x14002195b
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x20], 0
jne 0x140021a17
cmp qword [rsp + 0x30], 0
jle 0x140021a17
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
mov al, byte [rcx + rax + 0x58]
mov byte [rsp + 0x25], al
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
mov rax, qword [rcx + rax + 0x48]
mov qword [rsp + 0xb0], rax
mov dl, byte [rsp + 0x25]
mov rcx, qword [rsp + 0xb0]
call fcn.140021750
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], 0xffffffff
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x54], eax
jne 0x1400219ee
mov dword [rsp + 0x38], 1
jmp 0x1400219f6
mov dword [rsp + 0x38], 0
mov al, byte [rsp + 0x38]
mov byte [rsp + 0x26], al
movzx eax, byte [rsp + 0x26]
test eax, eax
je 0x140021a12
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
jmp 0x14002194e
cmp dword [rsp + 0x20], 0
jne 0x140021aa6
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
mov rax, qword [rcx + rax + 0x48]
mov qword [rsp + 0xb8], rax
mov dl, byte [rsp + 0x108]
mov rcx, qword [rsp + 0xb8]
call fcn.140021750
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], 0xffffffff
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x60], eax
jne 0x140021a82
mov dword [rsp + 0x3c], 1
jmp 0x140021a8a
mov dword [rsp + 0x3c], 0
mov al, byte [rsp + 0x3c]
mov byte [rsp + 0x27], al
movzx eax, byte [rsp + 0x27]
test eax, eax
je 0x140021aa6
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
jmp 0x140021ab5
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x20], 0
jne 0x140021b71
cmp qword [rsp + 0x30], 0
jle 0x140021b71
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
mov al, byte [rcx + rax + 0x58]
mov byte [rsp + 0x28], al
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
mov rax, qword [rcx + rax + 0x48]
mov qword [rsp + 0xc0], rax
mov dl, byte [rsp + 0x28]
mov rcx, qword [rsp + 0xc0]
call fcn.140021750
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], 0xffffffff
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x6c], eax
jne 0x140021b48
mov dword [rsp + 0x40], 1
jmp 0x140021b50
mov dword [rsp + 0x40], 0
mov al, byte [rsp + 0x40]
mov byte [rsp + 0x29], al
movzx eax, byte [rsp + 0x29]
test eax, eax
je 0x140021b6c
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
jmp 0x140021aa8
jmp 0x140021b73
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x98]
mov qword [rax + 0x28], 0
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x88]
cmp qword [rax + 0x48], 0
je 0x140021c09
mov dword [rsp + 0x48], 0
jmp 0x140021c11
mov dword [rsp + 0x48], 4
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x74]
or ecx, eax
mov eax, ecx
or eax, dword [rsp + 0x48]
xor r8d, r8d
mov edx, eax
mov rcx, qword [rsp + 0x88]
call fcn.1400103f8
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0xd0]
call fcn.140013a54
mov rax, qword [rsp + 0xc8]
add rsp, 0xf8
ret