Function at 0x18007f6a0
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 0x18007f6c1
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 0x18007f6e6
test eax, eax
je 0x18007fb52
mov rcx, rbx
call fcn.18007fc10
cmp eax, 2
jne 0x18007f70b
cmp word [rbx], 0
je 0x18007fb52
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 0x18007fb4a
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 0x18007fae9
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 0x18007fadc
cmp r15d, r12d
je 0x18007f841
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.180082330
mov r8d, dword [rsp + 0x28]
mov r9d, eax
mov dword [rsp + 0x48], eax
test eax, eax
je 0x18007faa8
mov rbx, qword [rsp + 0x38]
mov r11d, dword [rsp + 0x24]
mov r10d, dword [rsp + 0x20]
mov ecx, dword [rsp + 0xf8]
jmp 0x18007f857
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 0x18007fa93
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 0x18007fa25
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 0x18007f9ce
mov edx, r8d
mov r8d, edi
jmp 0x18007f9d1
mov r8d, r13d
mov ecx, r11d
call fcn.18007ed20
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 0x18007fa12
mov eax, dword [rsp + 0x28]
mov edi, r13d
mov ecx, dword [rsp + 0x20]
mov r8d, edi
mov edx, eax
call fcn.18007ed20
mov r9d, eax
jmp 0x18007fa2b
xor r9d, r9d
xor r12d, r12d
mov r13d, dword [rsp + 0x30]
movsxd rax, ebp
cmp rax, r14
je 0x18007fa8c
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 0x18007fa52
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x98]
mov r12d, dword [rsp + 0x54]
jmp 0x18007fa96
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 0x18007f7e0
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 0x18007f780
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