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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0xd0
mov rbp, rcx
test rcx, rcx
jne 0x1401aecb1
lea eax, [rcx + 0x14]
add rsp, 0xd0
pop rbp
ret
mov eax, edx
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [rsp + 0x48], eax
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x44], eax
test ecx, ecx
jne 0x1401aecd6
test eax, eax
je 0x1401af167
mov rcx, rbp
call fcn.1401af180
mov dword [rsp + 0x40], eax
cmp eax, 2
jne 0x1401aed00
cmp word [rbp], 0
je 0x1401af167
mov eax, 6
add rsp, 0xd0
pop rbp
ret
mov qword [rsp + 0xe8], rbx
mov ecx, 0xffffffff
xor ebx, ebx
mov qword [rsp + 0xb0], r13
mov r10d, ebx
mov r13, qword [rbp + 8]
mov qword [rsp + 0x80], r13
mov dword [rsp + 0x58], ebx
cmp bx, word [rbp]
jge 0x1401af157
mov qword [rsp + 0xc8], rsi
mov edx, ebx
mov qword [rsp + 0xc0], rdi
mov qword [rsp + 0xb8], r12
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0x90], rbx
nop word [rax + rax]
mov rax, qword [rbp + 0x18]
lea r12d, [rcx + 1]
mov dword [rsp + 0x50], ecx
mov r9d, ebx
mov dword [rsp + 0x54], ebx
mov r8d, ebx
mov dword [rsp + 0xf8], ebx
mov r11d, ebx
movsx ecx, word [rdx + rax]
mov edx, ebx
mov dword [rsp + 0x28], ecx
mov eax, 0xffffffff
mov dword [rsp + 0x2c], eax
mov r14d, ecx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x20], 0
cmp r12d, ecx
je 0x1401af106
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x78]
movsxd rcx, r12d
mov qword [rsp + 0x88], rcx
mov r15, rcx
mov ecx, r14d
nop dword [rax]
mov dword [rsp + 0x60], eax
mov ebx, r12d
mov dword [rsp + 0x70], ebx
mov r10d, eax
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x68], eax
cmp r14d, eax
je 0x1401af0f7
movsxd rbp, r14d
cmp r12d, eax
je 0x1401aee5e
mov eax, dword [r13 + r15*8]
lea rcx, [rsp + 0x38]
sub eax, dword [r13 + rbp*8]
mov dword [rsp + 0x38], eax
mov eax, dword [r13 + r15*8 + 4]
sub eax, dword [r13 + rbp*8 + 4]
mov dword [rsp + 0x3c], eax
call fcn.1401aad30
mov r8d, dword [rsp + 0xf8]
mov r9d, eax
mov dword [rsp + 0x4c], eax
test eax, eax
je 0x1401af0bc
mov rbx, qword [rsp + 0x38]
mov eax, dword [rsp + 0x2c]
mov r11d, dword [rsp + 0x24]
mov edx, dword [rsp + 0x20]
mov r10d, dword [rsp + 0x60]
jmp 0x1401aee6b
mov rbx, rsi
mov dword [rsp + 0x4c], r9d
mov qword [rsp + 0x38], rbx
test r8d, r8d
je 0x1401af0a0
movsxd r12, dword [rsp + 0x38]
test eax, eax
movsxd rcx, edx
mov eax, r14d
cmovs rsi, rdi
mov qword [rsp + 0xf8], rcx
test r10d, r10d
mov qword [rsp + 0x60], rsi
mov rdx, rbx
mov qword [rsp + 0x78], rsi
cmovns eax, r10d
cmp dword [rsp + 0x68], 0
mov dword [rsp + 0x2c], eax
mov eax, r8d
cmovge eax, dword [rsp + 0x30]
imul rcx, r12
mov dword [rsp + 0x54], eax
shr rdx, 0x20
movsxd r10, r11d
movsxd r13, edx
mov rdi, r10
imul rdi, r13
mov rax, rdi
shr rax, 0x3f
sub rdi, rax
mov rax, rcx
add rdi, 0x8000
shr rax, 0x3f
sub rcx, rax
sar rdi, 0x10
add rcx, 0x8000
sar rcx, 0x10
add edi, ecx
cmp edi, 0xffff1000
jle 0x1401af039
lea ecx, [rdx + r11]
add edi, 0x10000
mov edx, dword [rsp + 0x20]
mov r11d, ecx
add edx, r12d
mov eax, edx
neg eax
cmp dword [rsp + 0x40], 0
cmovne edx, eax
neg r11d
mov dword [rsp + 0x30], edx
mov edx, dword [rsp + 0x40]
test edx, edx
cmovne r11d, ecx
imul r13, qword [rsp + 0xf8]
imul r10, r12
mov rax, r10
shr rax, 0x3f
sub r10, rax
mov rax, r13
shr rax, 0x3f
add r10, 0x8000
sub r13, rax
sar r10, 0x10
add r13, 0x8000
mov eax, r10d
sar r13, 0x10
sub eax, r13d
sub r13d, r10d
test edx, edx
mov edx, r9d
cmovne r13d, eax
cmp r8d, r9d
movsxd rax, r13d
cmovl edx, r8d
mov qword [rsp + 0x20], rax
movsxd r8, dword [rsp + 0x48]
mov rcx, r8
movsxd r9, edx
imul rcx, rax
movsxd rax, edi
imul r9, rax
mov dword [rsp + 0xf8], edx
mov rax, r9
shr rax, 0x3f
sub r9, rax
mov rax, rcx
shr rax, 0x3f
add r9, 0x8000
sub rcx, rax
sar r9, 0x10
add rcx, 0x8000
mov qword [rsp + 0x68], r9
sar rcx, 0x10
cmp ecx, r9d
jg 0x1401aefe5
mov edx, r8d
mov r8d, edi
jmp 0x1401aefe8
mov r8d, r13d
mov ecx, r11d
call fcn.1401a8c50
mov r12d, eax
movsxd rax, dword [rsp + 0x44]
mov rdx, rax
imul rdx, qword [rsp + 0x20]
mov rcx, rdx
shr rcx, 0x3f
sub rdx, rcx
add rdx, 0x8000
sar rdx, 0x10
cmp edx, dword [rsp + 0x68]
jle 0x1401af026
mov eax, dword [rsp + 0xf8]
mov edi, r13d
mov ecx, dword [rsp + 0x30]
mov r8d, edi
mov edx, eax
call fcn.1401a8c50
mov r9d, eax
jmp 0x1401af03f
xor r9d, r9d
xor r12d, r12d
mov r13, qword [rsp + 0x80]
cmp rbp, r15
je 0x1401af0a3
movsxd r8, dword [rsp + 0x28]
mov ebx, dword [rsp + 0x44]
mov r10, qword [rsp + 0x88]
mov esi, dword [rsp + 0x48]
mov ecx, dword [r13 + rbp*8]
lea eax, [r9 + rbx]
add dword [r13 + rbp*8 + 4], eax
add ecx, r12d
add ecx, esi
mov rdx, rbp
mov dword [r13 + rbp*8], ecx
inc rbp
cmp rdx, r8
cmovge r14d, dword [rsp + 0x50]
cmovge rbp, r10
inc r14d
cmp rbp, r15
jne 0x1401af061
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x60]
jmp 0x1401af0a3
mov r14d, r12d
mov r8d, dword [rsp + 0x4c]
mov rdi, rbx
mov qword [rsp + 0x20], rbx
mov ebx, dword [rsp + 0x70]
mov dword [rsp + 0xf8], r8d
mov ecx, dword [rsp + 0x28]
mov r12d, ebx
mov eax, dword [rsp + 0x2c]
cmp ebx, ecx
mov r11d, dword [rsp + 0x24]
cmovge r12d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x20]
inc r12d
mov r9d, dword [rsp + 0x54]
inc r15
cmp ebx, ecx
cmovge r15, qword [rsp + 0x88]
cmp r12d, r14d
jne 0x1401aede0
mov rbp, qword [rsp + 0xe0]
xor ebx, ebx
mov r10d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x90]
inc r10d
movsx eax, word [rbp]
add rdx, 2
mov dword [rsp + 0x58], r10d
mov qword [rsp + 0x90], rdx
cmp r10d, eax
jl 0x1401aed70
mov r15, qword [rsp + 0xa0]
mov r14, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xe8]
mov r13, qword [rsp + 0xb0]
xor eax, eax
add rsp, 0xd0
pop rbp
ret