Function at 0x1400856d0
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 + 0x34], 0
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0x98], 0
je 0x14008570e
mov rax, qword [rsp + 0x98]
mov byte [rax], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14008572d
mov eax, 0xffffff9a
jmp 0x140085c6b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140085750
mov eax, 0xffffff9a
jmp 0x140085c6b
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x140085765
mov eax, 0xffffff9c
jmp 0x140085c6b
cmp dword [rsp + 0x90], 0
jne 0x140085776
xor eax, eax
jmp 0x140085c6b
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x90]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x80]
cmp dword [rsp + 0x90], eax
jbe 0x1400857bd
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0x80]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x20], 0
jbe 0x140085c5a
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x10], 0
jne 0x14008594b
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x7c], 0
jbe 0x14008594b
mov dword [rsp + 0x3c], 0x4000
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x3c]
cmp dword [rax + 0x7c], ecx
jae 0x14008580c
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x7c]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x140085830
cmp qword [rsp + 0x98], 0
je 0x140085829
mov rax, qword [rsp + 0x98]
mov byte [rax], 1
xor eax, eax
jmp 0x140085c6b
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x60]
mov rcx, qword [rsp + 0x28]
add eax, dword [rcx + 0x94]
xor r8d, r8d
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x88]
call fcn.140083e10
test eax, eax
je 0x140085867
mov eax, 0xffffffff
jmp 0x140085c6b
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x28]
mov r9, qword [rcx + 0x88]
mov r8d, 1
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax]
call fcn.140083f30
cmp rax, 1
je 0x14008589c
mov eax, 0xffffffff
jmp 0x140085c6b
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x60]
add eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x60], eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x3c]
mov eax, dword [rax + 0x7c]
sub eax, ecx
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x7c], eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 0x98]
test eax, eax
je 0x14008594b
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0
jmp 0x140085915
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x48], eax
jae 0x14008594b
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
add rcx, 0x9c
mov rdx, qword [rsp + 0x40]
movzx edx, byte [rdx + rax]
call fcn.140082b90
mov ecx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
jmp 0x14008590b
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xa8]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
cmp dword [rsp + 0x38], eax
jbe 0x140085974
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jbe 0x140085a0d
mov eax, dword [rsp + 0x38]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x4c], al
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x38]
mov eax, dword [rax + 0x10]
sub eax, ecx
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x10], eax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx + 8]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x38]
mov eax, dword [rax + 0xa8]
sub eax, ecx
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0xa8], eax
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xa8], 0
jne 0x140085a0d
movsx eax, byte [rsp + 0x4c]
mov rcx, qword [rsp + 0x28]
movsx ecx, byte [rcx + 0xac]
cmp eax, ecx
je 0x140085a0d
mov eax, 0xffffff96
jmp 0x140085c6b
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x90], 0
jne 0x140085b71
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0x10]
cmp dword [rax + 0x20], ecx
jae 0x140085a3f
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x54], eax
jmp 0x140085a4b
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x50], 0
jmp 0x140085a5f
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x50], eax
jae 0x140085a8d
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
mov edx, dword [rsp + 0x50]
mov r8, qword [rsp + 0x28]
mov r8, qword [r8 + 0x18]
movzx eax, byte [rax + rcx]
mov byte [rdx + r8], al
jmp 0x140085a55
mov r8d, dword [rsp + 0x54]
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 0x18]
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 0x74]
call fcn.140082820
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x74], eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x54]
mov eax, dword [rax + 0x80]
sub eax, ecx
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x80], eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x54]
mov eax, dword [rax + 0x10]
sub eax, ecx
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x10], eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x54]
mov eax, dword [rax + 0x20]
sub eax, ecx
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x20], eax
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx + 0x18]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x18], rax
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx + 8]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
add eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x24], eax
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x80], 0
jne 0x140085b6c
cmp qword [rsp + 0x98], 0
je 0x140085b6c
mov rax, qword [rsp + 0x98]
mov byte [rax], 1
jmp 0x140085c55
mov dword [rsp + 0x64], 2
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
add rax, 8
mov edx, dword [rsp + 0x64]
mov rcx, rax
call fcn.140083250
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x68]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x60], eax
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 0x74]
call fcn.140082820
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x74], eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x60]
mov eax, dword [rax + 0x80]
sub eax, ecx
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x80], eax
mov eax, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x68]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x34], 1
je 0x140085c30
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x80], 0
jne 0x140085c4c
cmp qword [rsp + 0x98], 0
je 0x140085c46
mov rax, qword [rsp + 0x98]
mov byte [rax], 1
mov eax, dword [rsp + 0x30]
jmp 0x140085c6b
cmp dword [rsp + 0x34], 0
je 0x140085c55
jmp 0x140085c5a
jmp 0x1400857bd
cmp dword [rsp + 0x34], 0
jne 0x140085c67
mov eax, dword [rsp + 0x30]
jmp 0x140085c6b
mov eax, dword [rsp + 0x34]
add rsp, 0x78
ret