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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x38], 0
cmp qword [rsp + 0x98], 0
je 0x140019a56
mov rax, qword [rsp + 0x98]
mov byte [rax], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140019a75
mov eax, 0xffffff9a
jmp 0x140019fcc
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019a98
mov eax, 0xffffff9a
jmp 0x140019fcc
mov rax, qword [rsp + 0x20]
cmp qword [rax], 0
jne 0x140019aad
mov eax, 0xffffff9c
jmp 0x140019fcc
cmp dword [rsp + 0x90], 0
jne 0x140019abe
xor eax, eax
jmp 0x140019fcc
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x90]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x80]
cmp dword [rsp + 0x90], eax
jbe 0x140019b05
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x80]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x20], 0
jbe 0x140019fbb
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x10], 0
jne 0x140019c92
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x7c], 0
jbe 0x140019c92
mov dword [rsp + 0x2c], 0x4000
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x2c]
cmp dword [rax + 0x7c], ecx
jae 0x140019b54
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x7c]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jne 0x140019b78
cmp qword [rsp + 0x98], 0
je 0x140019b71
mov rax, qword [rsp + 0x98]
mov byte [rax], 1
xor eax, eax
jmp 0x140019fcc
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x60]
mov rcx, qword [rsp + 0x20]
add eax, dword [rcx + 0x94]
xor r8d, r8d
mov edx, eax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x88]
call fcn.1400182a0
test eax, eax
je 0x140019baf
mov eax, 0xffffffff
jmp 0x140019fcc
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x20]
mov r9, qword [rcx + 0x88]
mov r8d, 1
mov edx, eax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax]
call fcn.1400183c0
cmp rax, 1
je 0x140019be4
mov eax, 0xffffffff
jmp 0x140019fcc
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x60]
add eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0x60], eax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x2c]
mov eax, dword [rax + 0x7c]
sub eax, ecx
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0x7c], eax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x2c]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x98]
test eax, eax
je 0x140019c92
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 8]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x3c], 0
jmp 0x140019c5d
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x3c], eax
jae 0x140019c92
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, 0x9c
mov rdx, qword [rsp + 0x60]
mov dl, byte [rdx + rax]
call fcn.140016ee8
mov ecx, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
jmp 0x140019c53
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xa8]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x10]
cmp dword [rsp + 0x30], eax
jbe 0x140019cbb
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jbe 0x140019d6f
mov eax, dword [rsp + 0x30]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
mov al, byte [rcx + rax]
mov byte [rsp + 0x34], al
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x30]
mov eax, dword [rax + 0x80]
sub eax, ecx
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0x80], eax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x30]
mov eax, dword [rax + 0x10]
sub eax, ecx
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0x10], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 8]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x30]
mov eax, dword [rax + 0xa8]
sub eax, ecx
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0xa8], eax
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xa8], 0
jne 0x140019d6f
movsx eax, byte [rsp + 0x34]
mov rcx, qword [rsp + 0x20]
movsx ecx, byte [rcx + 0xac]
cmp eax, ecx
je 0x140019d6f
mov eax, 0xffffff96
jmp 0x140019fcc
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x90], 0
jne 0x140019ed2
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x10]
cmp dword [rax + 0x20], ecx
jae 0x140019da1
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x28], eax
jmp 0x140019dad
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x40], 0
jmp 0x140019dc1
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x40], eax
jae 0x140019dee
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
mov edx, dword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
mov r8, qword [r8 + 0x18]
mov al, byte [rax + rcx]
mov byte [rdx + r8], al
jmp 0x140019db7
mov r8d, dword [rsp + 0x28]
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x18]
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 0x74]
call fcn.140016b10
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0x74], eax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax + 0x80]
sub eax, ecx
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0x80], eax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax + 0x10]
sub eax, ecx
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0x10], eax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax + 0x20]
sub eax, ecx
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0x20], eax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x18]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x18], rax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 8]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x24]
add eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0x24], eax
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x80], 0
jne 0x140019ecd
cmp qword [rsp + 0x98], 0
je 0x140019ecd
mov rax, qword [rsp + 0x98]
mov byte [rax], 1
jmp 0x140019fb6
mov dword [rsp + 0x54], 2
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x20]
add rax, 8
mov edx, dword [rsp + 0x54]
mov rcx, rax
call fcn.1400176a0
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 0x74]
call fcn.140016b10
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0x74], eax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x48]
mov eax, dword [rax + 0x80]
sub eax, ecx
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0x80], eax
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x44], 1
je 0x140019f91
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x80], 0
jne 0x140019fad
cmp qword [rsp + 0x98], 0
je 0x140019fa7
mov rax, qword [rsp + 0x98]
mov byte [rax], 1
mov eax, dword [rsp + 0x38]
jmp 0x140019fcc
cmp dword [rsp + 0x44], 0
je 0x140019fb6
jmp 0x140019fbb
jmp 0x140019b05
cmp dword [rsp + 0x44], 0
jne 0x140019fc8
mov eax, dword [rsp + 0x38]
jmp 0x140019fcc
mov eax, dword [rsp + 0x44]
add rsp, 0x78
ret