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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xd0
mov rbx, rcx
test rcx, rcx
jne 0x14006b8a1
lea eax, [rcx + 0x14]
add rsp, 0xd0
pop rbx
ret
mov eax, edx
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [rsp + 0x44], eax
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x40], eax
test ecx, ecx
jne 0x14006b8c6
test eax, eax
je 0x14006bd32
mov rcx, rbx
call fcn.14006bdf0
cmp eax, 2
jne 0x14006b8eb
cmp word [rbx], 0
je 0x14006bd32
mov eax, 6
add rsp, 0xd0
pop rbx
ret
mov rdx, qword [rbx + 8]
xor r10d, r10d
mov r9d, r10d
cdqe
mov qword [rsp + 0xb0], r13
mov r13d, r10d
mov qword [rsp + 0x70], rdx
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x50], r10d
mov qword [rsp + 0x68], rax
cmp r10w, word [rbx]
jge 0x14006bd2a
mov qword [rsp + 0xe8], rbp
mov ecx, r10d
mov qword [rsp + 0xc8], rsi
mov qword [rsp + 0xc0], rdi
mov qword [rsp + 0xb8], r12
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0x78], rcx
nop dword [rax + rax]
mov rax, qword [rbx + 0x18]
mov r8d, r10d
mov dword [rsp + 0xf8], r10d
mov r11d, r10d
mov dword [rsp + 0x28], r10d
mov r15d, r13d
mov qword [rsp + 0x60], 0
mov r12d, 0xffffffff
movsx ecx, word [rcx + rax]
mov dword [rsp + 0x4c], ecx
mov ebp, ecx
mov qword [rsp + 0x20], 0
cmp r13d, ecx
je 0x14006bcc9
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x60]
movsxd rax, r13d
mov qword [rsp + 0x90], rax
mov r14, rax
nop dword [rax]
cmp ebp, r12d
je 0x14006bcbc
cmp r15d, r12d
je 0x14006ba21
movsxd rax, ebp
lea rcx, [rdx + rax*8]
mov eax, dword [rdx + r14*8]
sub eax, dword [rcx]
mov dword [rsp + 0x38], eax
mov eax, dword [rdx + r14*8 + 4]
sub eax, dword [rcx + 4]
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x3c], eax
call fcn.14006e1e0
mov r8d, dword [rsp + 0x28]
mov r9d, eax
mov dword [rsp + 0x48], eax
test eax, eax
je 0x14006bc88
mov rbx, qword [rsp + 0x38]
mov r11d, dword [rsp + 0x24]
mov r10d, dword [rsp + 0x20]
mov ecx, dword [rsp + 0xf8]
jmp 0x14006ba37
mov ecx, dword [rsp + 0xf8]
mov rbx, rsi
mov qword [rsp + 0x38], rbx
mov r9d, ecx
mov dword [rsp + 0x48], ecx
test r8d, r8d
je 0x14006bc73
test r12d, r12d
mov eax, ebp
mov rdx, rbx
cmovns eax, r12d
cmovs rsi, rdi
movsxd r12, dword [rsp + 0x38]
mov dword [rsp + 0x54], eax
mov eax, r8d
cmovns eax, ecx
mov qword [rsp + 0x98], rsi
mov dword [rsp + 0xf8], eax
movsxd rcx, r10d
mov qword [rsp + 0x28], rcx
imul rcx, r12
shr rdx, 0x20
movsxd r10, r11d
mov rdi, r10
movsxd r13, edx
imul rdi, r13
mov qword [rsp + 0x60], rsi
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 0x14006bc05
lea ecx, [rdx + r11]
add edi, 0x10000
mov edx, dword [rsp + 0x20]
mov r11d, ecx
add edx, r12d
mov eax, edx
neg eax
cmp qword [rsp + 0x68], 0
cmovne edx, eax
neg r11d
mov dword [rsp + 0x20], edx
mov rdx, qword [rsp + 0x68]
test rdx, rdx
cmovne r11d, ecx
imul r13, qword [rsp + 0x28]
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 rdx, rdx
mov edx, r9d
cmovne r13d, eax
cmp r8d, r9d
movsxd rax, r13d
cmovl edx, r8d
mov qword [rsp + 0x80], rax
movsxd r8, dword [rsp + 0x44]
mov rcx, r8
movsxd r9, edx
imul rcx, rax
movsxd rax, edi
imul r9, rax
mov dword [rsp + 0x28], 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 + 0x88], r9
sar rcx, 0x10
cmp ecx, r9d
jg 0x14006bbae
mov edx, r8d
mov r8d, edi
jmp 0x14006bbb1
mov r8d, r13d
mov ecx, r11d
call fcn.14006af40
mov r12d, eax
movsxd rax, dword [rsp + 0x40]
mov rdx, rax
imul rdx, qword [rsp + 0x80]
mov rcx, rdx
shr rcx, 0x3f
sub rdx, rcx
add rdx, 0x8000
sar rdx, 0x10
cmp edx, dword [rsp + 0x88]
jle 0x14006bbf2
mov eax, dword [rsp + 0x28]
mov edi, r13d
mov ecx, dword [rsp + 0x20]
mov r8d, edi
mov edx, eax
call fcn.14006af40
mov r9d, eax
jmp 0x14006bc0b
xor r9d, r9d
xor r12d, r12d
mov r13d, dword [rsp + 0x30]
movsxd rax, ebp
cmp rax, r14
je 0x14006bc6c
movsxd r8, dword [rsp + 0x4c]
mov ebx, dword [rsp + 0x40]
mov r10, qword [rsp + 0x70]
mov r11, qword [rsp + 0x90]
mov esi, dword [rsp + 0x44]
mov rdx, rax
lea rcx, [r10 + rax*8]
lea eax, [r12 + rsi]
add dword [rcx], eax
lea eax, [r9 + rbx]
add dword [rcx + 4], eax
cmp rdx, r8
lea rax, [rdx + 1]
cmovge rax, r11
inc ebp
cmp rdx, r8
cmovge ebp, r13d
cmp rax, r14
jne 0x14006bc32
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x98]
mov r12d, dword [rsp + 0x54]
jmp 0x14006bc76
mov ebp, r15d
mov r8d, dword [rsp + 0x48]
mov rdi, rbx
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rbx
mov ecx, dword [rsp + 0x4c]
mov eax, r15d
mov rdx, qword [rsp + 0x70]
inc r15d
mov r11d, dword [rsp + 0x24]
cmp eax, ecx
mov r10d, dword [rsp + 0x20]
cmovge r15d, r13d
inc r14
cmp eax, ecx
movsxd rax, r13d
cmovge r14, rax
cmp r15d, ebp
jne 0x14006b9c0
mov rbx, qword [rsp + 0xe0]
mov r9d, dword [rsp + 0x50]
movsx eax, word [rbx]
lea r13d, [rcx + 1]
mov rcx, qword [rsp + 0x78]
inc r9d
add rcx, 2
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x50], r9d
mov r10d, 0
mov qword [rsp + 0x78], rcx
cmp r9d, eax
jl 0x14006b960
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 rbp, qword [rsp + 0xe8]
mov r13, qword [rsp + 0xb0]
xor eax, eax
add rsp, 0xd0
pop rbx
ret