Function at 0x140172bb0
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 0x140172bd1
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 + 0x44], eax
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x40], eax
test ecx, ecx
jne 0x140172bf6
test eax, eax
je 0x140173095
mov rcx, rbp
call fcn.140173150
cmp eax, 2
jne 0x140172c1c
cmp word [rbp], 0
je 0x140173095
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]
cdqe
mov qword [rsp + 0x80], r13
mov dword [rsp + 0x54], ebx
mov qword [rsp + 0x78], rax
cmp bx, word [rbp]
jge 0x140173085
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 dword [rax]
mov rax, qword [rbp + 0x18]
lea r12d, [rcx + 1]
mov dword [rsp + 0x4c], ecx
mov r9d, ebx
mov dword [rsp + 0x50], ebx
mov r8d, ebx
mov dword [rsp + 0xf8], ebx
mov r11d, ebx
movsx ecx, word [rax + rdx]
mov edx, ebx
mov dword [rsp + 0x28], ecx
mov eax, 0xffffffff
mov dword [rsp + 0x2c], eax
mov r14d, ecx
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x20], 0
cmp r12d, ecx
je 0x140173034
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x70]
movsxd rcx, r12d
mov qword [rsp + 0x88], rcx
mov r15, rcx
mov ecx, r14d
nop dword [rax]
mov dword [rsp + 0x58], eax
mov ebx, r12d
mov dword [rsp + 0x68], ebx
mov r10d, eax
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x60], eax
cmp r14d, eax
je 0x140173025
movsxd rbp, r14d
cmp r12d, eax
je 0x140172d7e
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.140175800
mov r8d, dword [rsp + 0xf8]
mov r9d, eax
mov dword [rsp + 0x48], eax
test eax, eax
je 0x140172fea
mov rbx, qword [rsp + 0x38]
mov eax, dword [rsp + 0x2c]
mov r11d, dword [rsp + 0x24]
mov edx, dword [rsp + 0x20]
mov r10d, dword [rsp + 0x58]
jmp 0x140172d8b
mov rbx, rsi
mov dword [rsp + 0x48], r9d
mov qword [rsp + 0x38], rbx
test r8d, r8d
je 0x140172fce
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 + 0x58], rsi
mov rdx, rbx
mov qword [rsp + 0x70], rsi
cmovns eax, r10d
cmp dword [rsp + 0x60], 0
mov dword [rsp + 0x2c], eax
mov eax, r8d
cmovge eax, dword [rsp + 0x30]
imul rcx, r12
mov dword [rsp + 0x50], 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 0x140172f5d
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 + 0x78], 0
cmovne edx, eax
neg r11d
mov dword [rsp + 0x30], edx
mov rdx, qword [rsp + 0x78]
test rdx, rdx
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 rdx, rdx
mov edx, r9d
cmovne r13d, eax
cmp r8d, r9d
movsxd rax, r13d
cmovl edx, r8d
mov qword [rsp + 0x20], rax
movsxd r8, dword [rsp + 0x44]
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 + 0x60], r9
sar rcx, 0x10
cmp ecx, r9d
jg 0x140172f09
mov edx, r8d
mov r8d, edi
jmp 0x140172f0c
mov r8d, r13d
mov ecx, r11d
call fcn.1401721b0
mov r12d, eax
movsxd rax, dword [rsp + 0x40]
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 + 0x60]
jle 0x140172f4a
mov eax, dword [rsp + 0xf8]
mov edi, r13d
mov ecx, dword [rsp + 0x30]
mov r8d, edi
mov edx, eax
call fcn.1401721b0
mov r8d, eax
jmp 0x140172f63
xor r8d, r8d
xor r12d, r12d
mov r13, qword [rsp + 0x80]
cmp rbp, r15
je 0x140172fd1
movsxd rdx, dword [rsp + 0x28]
mov ebx, dword [rsp + 0x40]
mov r9, qword [rsp + 0x88]
mov r10d, dword [rsp + 0x44]
mov esi, dword [rsp + 0x4c]
nop word [rax + rax]
mov eax, dword [r13 + rbp*8]
mov rcx, rbp
add eax, r12d
add eax, r10d
mov dword [r13 + rbp*8], eax
lea eax, [r8 + rbx]
add dword [r13 + rbp*8 + 4], eax
inc rbp
cmp rcx, rdx
cmovge r14d, esi
cmovge rbp, r9
inc r14d
cmp rbp, r15
jne 0x140172f90
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x58]
jmp 0x140172fd1
mov r14d, r12d
mov r8d, dword [rsp + 0x48]
mov rdi, rbx
mov qword [rsp + 0x20], rbx
mov ebx, dword [rsp + 0x68]
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 + 0x4c]
mov edx, dword [rsp + 0x20]
inc r12d
mov r9d, dword [rsp + 0x50]
inc r15
cmp ebx, ecx
cmovge r15, qword [rsp + 0x88]
cmp r12d, r14d
jne 0x140172d00
mov rbp, qword [rsp + 0xe0]
xor ebx, ebx
mov r10d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x90]
inc r10d
movsx eax, word [rbp]
add rdx, 2
mov dword [rsp + 0x54], r10d
mov qword [rsp + 0x90], rdx
cmp r10d, eax
jl 0x140172c90
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