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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0xb0], 0
jne 0x140316f1d
mov rax, 0xffffffffffffffb8
jmp 0x1403172e3
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
movzx eax, byte [rcx + rax]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0x80
jb 0x140317073
cmp qword [rsp + 0x30], 0xf2
jb 0x140316f8c
lea rax, [0x1404b42d8]
mov rcx, qword [rsp + 0x30]
movsxd rax, dword [rax + rcx*4 - 0x3c8]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x80]
mov eax, 1
mov rcx, qword [rsp + 0x88]
rep stosb byte [rdi], al
mov qword [rsp + 0x30], 0
jmp 0x140317071
mov rax, qword [rsp + 0x30]
sub rax, 0x7f
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
inc rax
xor edx, edx
mov ecx, 2
div rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
inc rax
cmp rax, qword [rsp + 0xb0]
jbe 0x140316fcf
mov rax, 0xffffffffffffffb8
jmp 0x1403172e3
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x28], rax
jb 0x140316fea
mov rax, 0xffffffffffffffec
jmp 0x1403172e3
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x14031700c
mov eax, dword [rsp + 0x20]
add eax, 2
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
cmp rax, qword [rsp + 0x28]
jae 0x140317071
xor edx, edx
mov eax, dword [rsp + 0x20]
mov ecx, 2
div ecx
mov eax, eax
mov rcx, qword [rsp + 0x48]
movzx eax, byte [rcx + rax]
sar eax, 4
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x80]
mov byte [rdx + rcx], al
xor edx, edx
mov eax, dword [rsp + 0x20]
mov ecx, 2
div ecx
mov eax, eax
mov rcx, qword [rsp + 0x48]
movzx eax, byte [rcx + rax]
and eax, 0xf
mov ecx, dword [rsp + 0x20]
inc ecx
mov ecx, ecx
mov rdx, qword [rsp + 0x80]
mov byte [rdx + rcx], al
jmp 0x140317001
jmp 0x1403170d9
mov rax, qword [rsp + 0x30]
inc rax
cmp rax, qword [rsp + 0xb0]
jbe 0x140317091
mov rax, 0xffffffffffffffb8
jmp 0x1403172e3
mov rax, qword [rsp + 0x48]
inc rax
mov rcx, qword [rsp + 0x88]
dec rcx
mov r9, qword [rsp + 0x30]
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x80]
call fcn.140311cc0
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.140312370
test eax, eax
je 0x1403170d9
mov rax, qword [rsp + 0x28]
jmp 0x1403172e3
mov rdi, qword [rsp + 0x90]
xor eax, eax
mov ecx, 0x44
rep stosb byte [rdi], al
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
jmp 0x140317106
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
cmp rax, qword [rsp + 0x28]
jae 0x1403171a3
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
cmp eax, 0x10
jl 0x140317136
mov rax, 0xffffffffffffffec
jmp 0x1403172e3
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx + rax*4]
inc eax
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x80]
movzx ecx, byte [rdx + rcx]
mov rdx, qword [rsp + 0x90]
mov dword [rdx + rcx*4], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
mov ecx, 1
mov dword [rsp + 0x50], ecx
movzx ecx, al
mov eax, dword [rsp + 0x50]
shl eax, cl
sar eax, 1
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x1403170fc
cmp dword [rsp + 0x24], 0
jne 0x1403171b6
mov rax, 0xffffffffffffffec
jmp 0x1403172e3
mov ecx, dword [rsp + 0x24]
call fcn.140311410
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x10
jbe 0x1403171d8
mov rax, 0xffffffffffffffec
jmp 0x1403172e3
mov eax, dword [rsp + 0x40]
mov ecx, 1
mov dword [rsp + 0x54], ecx
movzx ecx, al
mov eax, dword [rsp + 0x54]
shl eax, cl
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x58]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
mov ecx, dword [rsp + 0x38]
call fcn.140311410
mov ecx, 1
mov dword [rsp + 0x5c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x5c]
shl eax, cl
mov dword [rsp + 0x60], eax
mov ecx, dword [rsp + 0x38]
call fcn.140311410
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x60], eax
je 0x140317246
mov rax, 0xffffffffffffffec
jmp 0x1403172e3
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
movzx ecx, byte [rsp + 0x3c]
mov byte [rax], cl
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx + rax*4]
inc eax
mov ecx, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x90]
mov dword [rdx + rcx*4], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x90]
cmp dword [rcx + rax], 2
jb 0x1403172b2
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx + rax]
and eax, 1
test eax, eax
je 0x1403172bb
mov rax, 0xffffffffffffffec
jmp 0x1403172e3
mov rax, qword [rsp + 0x28]
inc rax
mov rcx, qword [rsp + 0x98]
mov dword [rcx], eax
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
inc rax
add rsp, 0x70
pop rdi
ret