Function at 0x1401d0880
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
push rdi
sub rsp, 0x60
mov rax, qword [rsp + 0x70]
mov qword [rsp], rax
mov rax, qword [rsp]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov eax, dword [rsp + 0x90]
mov ecx, 1
mov dword [rsp + 0x48], ecx
movzx ecx, al
mov eax, dword [rsp + 0x48]
shl eax, cl
mov dword [rsp + 0x1c], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x88]
inc eax
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x90]
sub eax, 5
mov ecx, dword [rsp + 0x2c]
shl eax, cl
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
add eax, 4
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x1c]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x1c]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x90]
inc eax
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jae 0x1401d0cfd
cmp dword [rsp + 0x20], 1
jle 0x1401d0cfd
cmp dword [rsp + 0x38], 0
je 0x1401d0b53
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jae 0x1401d09a5
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
movsx eax, word [rcx + rax*2]
test eax, eax
jne 0x1401d09a5
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
jmp 0x1401d097b
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jne 0x1401d09b4
jmp 0x1401d0cfd
mov eax, dword [rsp + 0x3c]
add eax, 0x18
cmp dword [rsp + 0x30], eax
jb 0x1401d0a64
mov eax, dword [rsp + 0x3c]
add eax, 0x18
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x2c]
mov ecx, 0xffff
mov dword [rsp + 0x4c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x4c]
shl eax, cl
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x98], 0
jne 0x1401d0a18
mov rax, qword [rsp + 0x10]
sub rax, 2
cmp qword [rsp + 8], rax
jbe 0x1401d0a18
mov rax, 0xffffffffffffffba
jmp 0x1401d0d92
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx edx, byte [rsp + 0x28]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x28]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 8]
add rax, 2
mov qword [rsp + 8], rax
mov eax, dword [rsp + 0x28]
shr eax, 0x10
mov dword [rsp + 0x28], eax
jmp 0x1401d09b4
mov eax, dword [rsp + 0x3c]
add eax, 3
cmp dword [rsp + 0x30], eax
jb 0x1401d0aab
mov eax, dword [rsp + 0x3c]
add eax, 3
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x2c]
mov ecx, 3
mov dword [rsp + 0x50], ecx
movzx ecx, al
mov eax, dword [rsp + 0x50]
shl eax, cl
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
add eax, 2
mov dword [rsp + 0x2c], eax
jmp 0x1401d0a64
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x2c]
shl eax, cl
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
add eax, 2
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0x10
jle 0x1401d0b53
cmp dword [rsp + 0x98], 0
jne 0x1401d0b01
mov rax, qword [rsp + 0x10]
sub rax, 2
cmp qword [rsp + 8], rax
jbe 0x1401d0b01
mov rax, 0xffffffffffffffba
jmp 0x1401d0d92
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx edx, byte [rsp + 0x28]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x28]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 8]
add rax, 2
mov qword [rsp + 8], rax
mov eax, dword [rsp + 0x28]
shr eax, 0x10
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
sub eax, 0x10
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x24]
lea eax, [rax + rax - 1]
sub eax, dword [rsp + 0x20]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x40], 0
jge 0x1401d0b94
mov eax, dword [rsp + 0x40]
neg eax
mov dword [rsp + 0x54], eax
jmp 0x1401d0b9c
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x40], eax
jl 0x1401d0bd0
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x2c]
movzx ecx, al
mov eax, dword [rsp + 0x40]
shl eax, cl
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x18]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jge 0x1401d0c0d
mov dword [rsp + 0x58], 1
jmp 0x1401d0c15
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x40], 1
jne 0x1401d0c36
mov dword [rsp + 0x5c], 1
jmp 0x1401d0c3e
mov dword [rsp + 0x5c], 0
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x20], 1
jge 0x1401d0c59
mov rax, 0xffffffffffffffff
jmp 0x1401d0d92
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jge 0x1401d0c79
mov eax, dword [rsp + 0x18]
dec eax
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x24]
sar eax, 1
mov dword [rsp + 0x24], eax
jmp 0x1401d0c59
cmp dword [rsp + 0x2c], 0x10
jle 0x1401d0cf8
cmp dword [rsp + 0x98], 0
jne 0x1401d0ca6
mov rax, qword [rsp + 0x10]
sub rax, 2
cmp qword [rsp + 8], rax
jbe 0x1401d0ca6
mov rax, 0xffffffffffffffba
jmp 0x1401d0d92
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx edx, byte [rsp + 0x28]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x28]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 8]
add rax, 2
mov qword [rsp + 8], rax
mov eax, dword [rsp + 0x28]
shr eax, 0x10
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
sub eax, 0x10
mov dword [rsp + 0x2c], eax
jmp 0x1401d094f
cmp dword [rsp + 0x20], 1
je 0x1401d0d10
mov rax, 0xffffffffffffffff
jmp 0x1401d0d92
cmp dword [rsp + 0x98], 0
jne 0x1401d0d33
mov rax, qword [rsp + 0x10]
sub rax, 2
cmp qword [rsp + 8], rax
jbe 0x1401d0d33
mov rax, 0xffffffffffffffba
jmp 0x1401d0d92
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx edx, byte [rsp + 0x28]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x28]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x2c]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
cdqe
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp]
mov rcx, qword [rsp + 8]
sub rcx, rax
mov rax, rcx
add rsp, 0x60
pop rdi
ret