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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0xa0]
mov ecx, 1
mov dword [rsp + 0x50], ecx
movzx ecx, al
mov eax, dword [rsp + 0x50]
shl eax, cl
mov dword [rsp + 0x2c], eax
mov dword [rsp], 0
mov dword [rsp + 4], 0
mov dword [rsp + 8], 0
mov eax, dword [rsp + 0x98]
inc eax
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0xa0]
sub eax, 5
mov ecx, dword [rsp + 4]
shl eax, cl
mov ecx, dword [rsp]
add ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 4]
add eax, 4
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x1c], eax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xa0]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 8], eax
jae 0x1402d921e
cmp dword [rsp + 0x1c], 1
jle 0x1402d921e
cmp dword [rsp + 0x40], 0
je 0x1402d907a
mov eax, dword [rsp + 8]
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 8], eax
jae 0x1402d8eda
mov eax, dword [rsp + 8]
mov rcx, qword [rsp + 0x90]
movsx eax, word [rcx + rax*2]
test eax, eax
jne 0x1402d8eda
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
jmp 0x1402d8eb0
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 8], eax
jne 0x1402d8ee9
jmp 0x1402d921e
mov eax, dword [rsp + 0x18]
add eax, 0x18
cmp dword [rsp + 8], eax
jb 0x1402d8f93
mov eax, dword [rsp + 0x18]
add eax, 0x18
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 4]
mov ecx, 0xffff
mov dword [rsp + 0x54], ecx
movzx ecx, al
mov eax, dword [rsp + 0x54]
shl eax, cl
mov ecx, dword [rsp]
add ecx, eax
mov eax, ecx
mov dword [rsp], eax
cmp dword [rsp + 0xa8], 0
jne 0x1402d8f4b
mov rax, qword [rsp + 0x48]
sub rax, 2
cmp qword [rsp + 0x10], rax
jbe 0x1402d8f4b
mov rax, 0xffffffffffffffba
jmp 0x1402d92b2
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x10]
movzx edx, byte [rsp]
mov byte [rcx + rax], dl
mov eax, dword [rsp]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x10]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x10]
add rax, 2
mov qword [rsp + 0x10], rax
mov eax, dword [rsp]
shr eax, 0x10
mov dword [rsp], eax
jmp 0x1402d8ee9
mov eax, dword [rsp + 0x18]
add eax, 3
cmp dword [rsp + 8], eax
jb 0x1402d8fd8
mov eax, dword [rsp + 0x18]
add eax, 3
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 4]
mov ecx, 3
mov dword [rsp + 0x58], ecx
movzx ecx, al
mov eax, dword [rsp + 0x58]
shl eax, cl
mov ecx, dword [rsp]
add ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 4]
add eax, 2
mov dword [rsp + 4], eax
jmp 0x1402d8f93
mov eax, dword [rsp + 0x18]
mov ecx, dword [rsp + 8]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 4]
shl eax, cl
mov ecx, dword [rsp]
add ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 4]
add eax, 2
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 0x10
jle 0x1402d907a
cmp dword [rsp + 0xa8], 0
jne 0x1402d902c
mov rax, qword [rsp + 0x48]
sub rax, 2
cmp qword [rsp + 0x10], rax
jbe 0x1402d902c
mov rax, 0xffffffffffffffba
jmp 0x1402d92b2
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x10]
movzx edx, byte [rsp]
mov byte [rcx + rax], dl
mov eax, dword [rsp]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x10]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x10]
add rax, 2
mov qword [rsp + 0x10], rax
mov eax, dword [rsp]
shr eax, 0x10
mov dword [rsp], eax
mov eax, dword [rsp + 4]
sub eax, 0x10
mov dword [rsp + 4], eax
mov eax, dword [rsp + 8]
mov rcx, qword [rsp + 0x90]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x20]
lea eax, [rax + rax - 1]
sub eax, dword [rsp + 0x1c]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0xc], 0
jge 0x1402d90bb
mov eax, dword [rsp + 0xc]
neg eax
mov dword [rsp + 0x30], eax
jmp 0x1402d90c3
mov eax, dword [rsp + 0xc]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x1c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x1c], eax
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0xc], eax
jl 0x1402d90f7
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0xc]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 4]
movzx ecx, al
mov eax, dword [rsp + 0xc]
shl eax, cl
mov ecx, dword [rsp]
add ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 4]
add ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0xc], eax
jge 0x1402d9132
mov dword [rsp + 0x38], 1
jmp 0x1402d913a
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
cmp dword [rsp + 0xc], 1
jne 0x1402d915b
mov dword [rsp + 0x3c], 1
jmp 0x1402d9163
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x1c], 1
jge 0x1402d917e
mov rax, 0xffffffffffffffff
jmp 0x1402d92b2
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x1c], eax
jge 0x1402d919e
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
sar eax, 1
mov dword [rsp + 0x20], eax
jmp 0x1402d917e
cmp dword [rsp + 4], 0x10
jle 0x1402d9219
cmp dword [rsp + 0xa8], 0
jne 0x1402d91cb
mov rax, qword [rsp + 0x48]
sub rax, 2
cmp qword [rsp + 0x10], rax
jbe 0x1402d91cb
mov rax, 0xffffffffffffffba
jmp 0x1402d92b2
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x10]
movzx edx, byte [rsp]
mov byte [rcx + rax], dl
mov eax, dword [rsp]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x10]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x10]
add rax, 2
mov qword [rsp + 0x10], rax
mov eax, dword [rsp]
shr eax, 0x10
mov dword [rsp], eax
mov eax, dword [rsp + 4]
sub eax, 0x10
mov dword [rsp + 4], eax
jmp 0x1402d8e84
cmp dword [rsp + 0x1c], 1
je 0x1402d9231
mov rax, 0xffffffffffffffff
jmp 0x1402d92b2
cmp dword [rsp + 0xa8], 0
jne 0x1402d9254
mov rax, qword [rsp + 0x48]
sub rax, 2
cmp qword [rsp + 0x10], rax
jbe 0x1402d9254
mov rax, 0xffffffffffffffba
jmp 0x1402d92b2
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x10]
movzx edx, byte [rsp]
mov byte [rcx + rax], dl
mov eax, dword [rsp]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x10]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 4]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
cdqe
mov rcx, qword [rsp + 0x10]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x10]
sub rcx, rax
mov rax, rcx
add rsp, 0x78
ret