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

Disassembly:
push rsi
push r12
push r15
sub rsp, 0x2b0
mov rax, qword [0x140396c80]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rax, qword [rcx]
mov r12, rcx
mov qword [rsp + 0xa0], rcx
mov r15, rdx
mov ecx, dword [rcx + 0x38]
mov qword [rsp + 0x88], rdx
movsxd r8, dword [rax + 0xc]
lea rax, [0x1402a4110]
lea rsi, [rax + r8*8]
mov eax, 0x24924925
mul ecx
lea r8, [rsp + 0xd4]
mov qword [rsp + 0x48], rsi
sub ecx, edx
shr ecx, 1
add ecx, edx
mov edx, 4
shr ecx, 3
mov dword [rsp + 0xd0], ecx
mov rcx, qword [r15 + 0x98]
call fcn.1400c79d0
mov ecx, dword [rsi]
mov rdx, rax
mov qword [rsp + 0x40], rax
cmp ecx, 0xc20
je 0x1400d0301
mov qword [rsp + 0x2e0], rbx
lea r8, [0x1402a34f0]
mov qword [rsp + 0x2a8], rbp
mov qword [rsp + 0x2a0], rdi
mov qword [rsp + 0x298], r13
mov qword [rsp + 0x290], r14
nop dword [rax]
nop dword [rax + rax]
xor r13d, r13d
movsxd rcx, ecx
add rcx, r8
mov dword [rsp + 0x78], r13d
xor r14d, r14d
xor ebx, ebx
xor edi, edi
mov dword [rsp + 0x74], r14d
movzx eax, byte [rcx]
test al, al
je 0x1400d02c1
nop word [rax + rax]
xor bpl, bpl
mov byte [rsp + 0x20], bpl
cmp al, 0x20
jne 0x1400cf908
nop dword [rax]
inc rcx
cmp byte [rcx], 0x20
je 0x1400cf900
mov r8, rdx
lea r9, [rsp + 0x70]
mov rdx, r12
call fcn.1400d14c0
mov edx, dword [rsp + 0x70]
mov rcx, rax
mov qword [rsp + 0xd8], rax
test edx, edx
je 0x1400d00fe
test byte [rsi + 4], 1
mov eax, 0x7fffffff
mov r12d, 0x80000000
mov dword [rsp + 0x2c], 0
cmove r12d, eax
test edx, edx
je 0x1400d00a9
mov ecx, dword [rsp + 0x2c]
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x38], r12d
mov edx, dword [rax]
xor r14b, r14b
mov byte [rsp + 0x21], r14b
test edx, edx
je 0x1400d0087
mov r8d, 1
mov rcx, r15
call fcn.1400c19c0
mov rcx, qword [r15 + 0x78]
movups xmm0, xmmword [rcx + 0x98]
movups xmm1, xmmword [rcx + 0xa8]
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0xb8], xmm1
test eax, eax
jne 0x1400d007e
mov rax, qword [rsp + 0xa8]
shr rax, 0x10
cmp ax, 2
jle 0x1400d007e
movsx r15, word [rsp + 0xa8]
xor ecx, ecx
xor r13d, r13d
mov dword [rsp + 0x34], ecx
xor esi, esi
xor ebp, ebp
lea r10d, [rcx - 1]
test r15, r15
jle 0x1400d0016
mov r12, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xb0]
movsx r9d, word [r12 + rbp*2]
mov r11d, r10d
cmp r9d, esi
jle 0x1400cfa85
mov rdx, qword [rsp + 0x48]
mov r8d, esi
movsxd rax, esi
shl rax, 3
test byte [rdx + 4], 3
lea rdx, [r14 + 4]
jne 0x1400cfa4b
add rdx, rax
test r10d, r10d
js 0x1400cfa33
mov eax, dword [rdx]
cmp eax, ecx
jl 0x1400cfa33
cmp ebx, eax
jg 0x1400cfa3d
mov ebx, eax
jmp 0x1400cfa3d
mov ecx, dword [rdx]
mov r10d, r8d
cmp edi, ecx
cmovge edi, ecx
inc r8d
add rdx, 8
cmp r8d, r9d
jle 0x1400cfa20
jmp 0x1400cfa79
add rdx, rax
nop
test r10d, r10d
js 0x1400cfa63
mov eax, dword [rdx]
cmp eax, ecx
jg 0x1400cfa63
cmp edi, eax
jl 0x1400cfa6d
mov edi, eax
jmp 0x1400cfa6d
mov ecx, dword [rdx]
mov r10d, r8d
cmp ebx, ecx
cmovle ebx, ecx
inc r8d
add rdx, 8
cmp r8d, r9d
jle 0x1400cfa50
cmp r10d, r11d
je 0x1400cfa85
mov dword [rsp + 0x34], esi
mov r13d, r9d
inc rbp
lea esi, [r9 + 1]
cmp rbp, r15
jl 0x1400cf9f3
movzx r14d, byte [rsp + 0x21]
mov dword [rsp + 0x3c], r13d
test r10d, r10d
js 0x1400d0011
mov rax, qword [rsp + 0xb0]
mov r12d, 0xffffffff
mov r8, qword [rsp + 0xb0]
mov r9d, r10d
movsxd r14, r10d
mov r15d, r10d
mov qword [rsp + 0x90], r14
mov rsi, r14
mov dword [rsp + 0x6c], edi
mov rdi, qword [rsp + 0xb8]
mov ebp, dword [rax + r14*8]
mov rax, qword [rsp + 0xb8]
mov dword [rsp + 0x24], r10d
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x60], r10d
movzx eax, byte [rax + r14]
and al, 3
cmp al, 1
movsxd rax, r13d
mov qword [rsp + 0x80], rax
mov r14, rax
cmove r12d, r10d
mov r13d, r12d
nop word [rax + rax]
dec rsi
mov eax, r9d
cmp r9d, dword [rsp + 0x34]
mov r11d, ecx
cmovle rsi, r14
dec r9d
cmp eax, dword [rsp + 0x34]
cmovle r9d, dword [rsp + 0x3c]
mov edx, dword [r8 + rsi*8 + 4]
sub r11d, edx
sub edx, ecx
cmovns r11d, edx
cmp r11d, 5
jle 0x1400cfb78
mov eax, dword [r8 + rsi*8]
mov edx, ebp
sub edx, eax
mov r8d, eax
sub r8d, ebp
lea eax, [r11 + r11*4]
cmovns edx, r8d
shl eax, 2
cmp edx, eax
jle 0x1400cfb94
mov r8, qword [rsp + 0xb0]
movzx eax, byte [rsi + rdi]
mov r10d, r9d
and al, 3
cmp al, 1
jne 0x1400cfb8f
test r13d, r13d
mov r12d, r9d
cmovs r13d, r9d
cmp r9d, r15d
jne 0x1400cfb20
movsxd rdx, dword [rsp + 0x34]
mov esi, r15d
mov rax, qword [rsp + 0x90]
mov r14, rdx
mov edi, dword [rsp + 0x6c]
mov rbx, qword [rsp + 0xb8]
mov dword [rsp + 0x30], r10d
mov r10, qword [rsp + 0x80]
mov qword [rsp + 0x98], rdx
nop dword [rax + rax]
mov r8, qword [rsp + 0xb0]
lea r11, [rax + 1]
cmp rax, r10
mov r9d, ecx
cmovge r11, r14
inc esi
cmp rax, r10
cmovge esi, edx
mov edx, dword [r8 + r11*8 + 4]
sub r9d, edx
sub edx, ecx
cmovns r9d, edx
cmp r9d, 5
jle 0x1400cfc1f
mov eax, dword [r8 + r11*8]
mov edx, ebp
sub edx, eax
mov r8d, eax
sub r8d, ebp
lea eax, [r9 + r9*4]
cmovns edx, r8d
shl eax, 2
cmp edx, eax
jle 0x1400cfc49
movzx eax, byte [r11 + rbx]
mov r8d, esi
and al, 3
mov dword [rsp + 0x24], esi
cmp al, 1
jne 0x1400cfc3b
test r12d, r12d
mov r13d, esi
cmovs r12d, esi
mov edx, dword [rsp + 0x34]
mov rax, r11
cmp esi, r15d
jne 0x1400cfbd0
jmp 0x1400cfc4e
mov r8d, dword [rsp + 0x24]
mov ebx, dword [rsp + 0x68]
movsxd r10, dword [rsp + 0x30]
mov r14, qword [rsp + 0x90]
mov r11d, dword [rsp + 0x24]
mov dword [rsp + 0x54], esi
mov rsi, qword [rsp + 0x48]
movzx r9d, word [rsi + 4]
mov word [rsp + 0x28], r9w
test r9b, 0x10
je 0x1400cff8d
mov rax, qword [rsp + 0xa0]
mov r9, qword [rsp + 0xb0]
movsxd rsi, r8d
mov edx, dword [rax + 0x38]
mov eax, 0x51eb851f
mov dword [rsp + 0x50], edx
mov r8d, dword [r9 + rsi*8]
mov r9d, dword [r9 + r10*8]
mul edx
mov eax, r8d
sub eax, r9d
shr edx, 3
sub r9d, r8d
mov dword [rsp + 0x90], edx
test eax, eax
cmovns r9d, eax
cmp r9d, edx
jge 0x1400cff82
mov eax, dword [rsp + 0x3c]
mov edx, r11d
sub eax, dword [rsp + 0x34]
sub edx, r10d
add edx, 2
cmp edx, eax
jg 0x1400cff82
shr dword [rsp + 0x50], 2
xor r9d, r9d
mov r10, qword [rsp + 0x80]
xor eax, eax
mov rdi, qword [rsp + 0xb0]
mov edx, r15d
mov r15, qword [rsp + 0x98]
mov r11, r14
mov ebx, dword [rsp + 0x3c]
mov dword [rsp + 0x58], eax
nop word [rax + rax]
cmp r14, r15
lea rax, [r14 - 1]
cmovle rax, r10
dec edx
cmp r14, r15
cmovle edx, ebx
mov r8d, dword [rdi + rax*8]
cmp r8d, ebp
jne 0x1400cfd44
mov r14, rax
cmp rax, r11
jne 0x1400cfd20
mov ebx, dword [rsp + 0x68]
mov edi, dword [rsp + 0x6c]
mov r10d, dword [rsp + 0x30]
cmp edx, dword [rsp + 0x60]
je 0x1400d00d0
mov eax, dword [rsp + 0x24]
cmp r8d, ebp
mov dword [rsp + 0x30], eax
mov r11d, eax
setl byte [rsp + 0x21]
mov qword [rsp + 0x60], rsi
xor bpl, bpl
mov r8, rsi
nop dword [rax]
test bpl, bpl
jne 0x1400cfdb4
mov rax, qword [rsp + 0xb8]
mov r9d, 0xffffffff
mov dword [rsp + 0x30], r11d
mov r8, rsi
mov qword [rsp + 0x60], rsi
mov bpl, 1
movzx eax, byte [rsi + rax]
and al, 3
cmp al, 1
cmove r9d, r11d
mov dword [rsp + 0x58], r9d
cmp rsi, qword [rsp + 0x80]
lea r15, [rsi + 1]
mov edx, ecx
cmovge r15, qword [rsp + 0x98]
inc r11d
cmp rsi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0xb0]
cmovge r11d, dword [rsp + 0x34]
mov r14d, dword [rsi + r8*8 + 4]
mov eax, r14d
sub eax, ecx
sub edx, r14d
cmovns eax, edx
cmp eax, dword [rsp + 0x50]
jle 0x1400cfe02
xor bpl, bpl
jmp 0x1400cfe95
mov edx, dword [rsi + r15*8 + 4]
sub edx, r14d
sub r14d, dword [rsi + r15*8 + 4]
test edx, edx
cmovns r14d, edx
cmp r14d, 5
jle 0x1400cfe46
mov r8d, dword [rsi + r8*8]
lea eax, [r14 + r14*4]
mov edx, dword [rsi + r15*8]
sub edx, r8d
sub r8d, dword [rsi + r15*8]
test edx, edx
cmovns r8d, edx
shl eax, 2
cmp r8d, eax
mov r8, qword [rsp + 0x60]
jg 0x1400cfe46
xor bpl, bpl
jmp 0x1400cfe95
mov rax, qword [rsp + 0xb8]
movzx eax, byte [r15 + rax]
and al, 3
cmp al, 1
jne 0x1400cfe65
test r9d, r9d
mov dword [rsp + 0x58], r11d
cmovs r9d, r11d
mov edx, dword [rsi + r8*8]
mov esi, dword [rsi + r15*8]
mov r8d, esi
sub r8d, edx
cmp edx, esi
setl al
cmp al, byte [rsp + 0x21]
jne 0x1400cfe90
sub edx, esi
test r8d, r8d
cmovns edx, r8d
cmp edx, dword [rsp + 0x90]
jge 0x1400cfea6
mov r8, qword [rsp + 0x60]
cmp r11d, r10d
je 0x1400cff7d
mov rsi, r15
jmp 0x1400cfd80
movsxd rax, dword [rsp + 0x30]
mov r8, qword [rsp + 0xb0]
mov ecx, dword [r8 + rax*8 + 4]
lea rbp, [r8 + rax*8]
movsxd rax, dword [rsp + 0x54]
mov r13d, dword [rsp + 0x58]
lea r12, [r8 + rax*8]
nop word [rax + rax]
cmp r15, qword [rsp + 0x80]
lea rsi, [r15 + 1]
mov r15d, dword [rsp + 0x34]
lea r11d, [r11 + 1]
cmovge rsi, qword [rsp + 0x98]
cmovge r11d, r15d
mov edx, ecx
mov eax, dword [r8 + rsi*8 + 4]
sub edx, eax
mov r8d, eax
sub r8d, ecx
cmovns edx, r8d
cmp edx, 5
jle 0x1400cff2b
mov r8d, dword [rbp]
lea eax, [r14 + r14*4]
mov edx, dword [r12]
sub edx, r8d
sub r8d, dword [r12]
test edx, edx
cmovns r8d, edx
shl eax, 2
cmp r8d, eax
jle 0x1400cff5c
mov rax, qword [rsp + 0xb8]
movzx eax, byte [rsi + rax]
and al, 3
cmp al, 1
jne 0x1400cff44
test r9d, r9d
cmovs r9d, r11d
mov r13d, r11d
cmp r11d, r10d
je 0x1400cff73
mov r8, qword [rsp + 0xb0]
mov r15, rsi
jmp 0x1400cfed0
cmp r11d, r15d
jle 0x1400cff6e
mov r10d, dword [rsp + 0x30]
dec r11d
mov r12d, r9d
jmp 0x1400cff82
mov r11d, dword [rsp + 0x3c]
mov r10d, dword [rsp + 0x30]
mov r12d, r9d
jmp 0x1400cff82
mov r11d, dword [rsp + 0x24]
mov rsi, qword [rsp + 0x48]
movzx r9d, word [rsp + 0x28]
test r12d, r12d
js 0x1400cffcf
test r13d, r13d
js 0x1400cffcf
mov r8, qword [rsp + 0xb0]
movsxd rax, r13d
mov edx, dword [r8 + rax*8]
movsxd rax, r12d
mov r8d, dword [r8 + rax*8]
mov eax, edx
sub eax, r8d
sub r8d, edx
test eax, eax
cmovns r8d, eax
cmp r8d, dword [rsp + 0xd0]
jle 0x1400cffcf
mov r12d, dword [rsp + 0x38]
xor r14b, r14b
jmp 0x1400d001b
mov r8, qword [rsp + 0xb8]
movsxd rax, r10d
movzx edx, byte [rax + r8]
and dl, 3
cmp dl, 1
jne 0x1400d0001
movsxd rax, r11d
movzx edx, byte [rax + r8]
and dl, 3
cmp dl, 1
jne 0x1400d0001
mov r12d, dword [rsp + 0x38]
xor r14b, r14b
jmp 0x1400d001b
mov r14b, 1
test r9b, 4
jne 0x1400d006c
mov r12d, dword [rsp + 0x38]
jmp 0x1400d001b
mov r12d, dword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
test byte [rsi + 4], 1
je 0x1400d0044
movzx eax, byte [rsp + 0x20]
cmp ecx, r12d
movzx edx, r14b
cmovle edx, eax
cmovle ecx, r12d
movzx ebp, dl
mov byte [rsp + 0x20], dl
mov r12d, ecx
mov dword [rsp + 0x38], ecx
jmp 0x1400d0076
mov r15, qword [rsp + 0x88]
mov rax, qword [rsp + 0x40]
cmp ecx, r12d
jge 0x1400d00dc
mov r12d, ecx
mov dword [rsp + 0x38], ecx
movzx ebp, r14b
mov byte [rsp + 0x20], r14b
jmp 0x1400d0083
mov r12d, dword [rsp + 0x38]
movzx ebp, byte [rsp + 0x20]
mov r15, qword [rsp + 0x88]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x2c]
inc ecx
mov dword [rsp + 0x2c], ecx
cmp ecx, dword [rsp + 0x70]
jb 0x1400cf960
mov rcx, qword [rsp + 0xd8]
mov r14d, dword [rsp + 0x74]
mov r13d, dword [rsp + 0x78]
lea eax, [r12 + 0x7fffffff]
cmp eax, 0xfffffffd
ja 0x1400d00f6
test bpl, bpl
je 0x1400d00e3
mov eax, r14d
inc r14d
mov dword [rsp + 0x74], r14d
mov dword [rsp + rax*4 + 0xe0], r12d
jmp 0x1400d00f6
mov r12d, dword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
jmp 0x1400d0071
movzx ebp, byte [rsp + 0x20]
jmp 0x1400d0083
mov eax, r13d
inc r13d
mov dword [rsp + 0x78], r13d
mov dword [rsp + rax*4 + 0x1b0], r12d
mov r12, qword [rsp + 0xa0]
movzx eax, byte [rcx]
mov rdx, qword [rsp + 0x40]
test al, al
jne 0x1400cf8f0
test r13d, r13d
jne 0x1400d011c
test r14d, r14d
je 0x1400d02ba
mov r10d, 1
cmp r14d, r10d
jbe 0x1400d016d
mov edx, r10d
test r10d, r10d
je 0x1400d0165
mov eax, r10d
lea rcx, [rsp + 0xe0]
lea rcx, [rcx + rax*4]
nop
mov r8d, dword [rcx]
dec edx
mov r9d, dword [rsp + rdx*4 + 0xe0]
cmp r8d, r9d
jge 0x1400d0165
mov dword [rcx], r9d
sub rcx, 4
mov dword [rsp + rdx*4 + 0xe0], r8d
test edx, edx
jne 0x1400d0140
inc r10d
cmp r10d, r14d
jb 0x1400d0127
mov r10d, 1
cmp r13d, r10d
jbe 0x1400d01bd
mov edx, r10d
test r10d, r10d
je 0x1400d01b5
mov eax, r10d
lea rcx, [rsp + 0x1b0]
lea rcx, [rcx + rax*4]
nop
mov r8d, dword [rcx]
dec edx
mov r9d, dword [rsp + rdx*4 + 0x1b0]
cmp r8d, r9d
jge 0x1400d01b5
mov dword [rcx], r9d
sub rcx, 4
mov dword [rsp + rdx*4 + 0x1b0], r8d
test edx, edx
jne 0x1400d0190
inc r10d
cmp r10d, r13d
jb 0x1400d0178
mov ecx, dword [r12 + 0x1614]
lea r8, [rcx*8 + 0x586]
add r8, rcx
lea eax, [rcx + 1]
mov dword [r12 + 0x1614], eax
lea r8, [r12 + r8*4]
test r13d, r13d
jne 0x1400d01fa
mov eax, r14d
shr rax, 1
mov edx, dword [rsp + rax*4 + 0xe0]
mov dword [r8 + 0xc], edx
mov dword [r8], edx
jmp 0x1400d022c
mov eax, r13d
shr rax, 1
mov edx, dword [rsp + rax*4 + 0x1b0]
test r14d, r14d
jne 0x1400d0215
mov dword [r8 + 0xc], edx
mov dword [r8], edx
jmp 0x1400d022c
mov dword [r8], edx
mov eax, r14d
shr rax, 1
mov eax, dword [rsp + rax*4 + 0xe0]
mov dword [r8 + 0xc], eax
mov edx, dword [r8]
mov r9d, dword [r8 + 0xc]
cmp r9d, edx
je 0x1400d025d
xor ecx, ecx
mov eax, 0
cmp r9d, edx
setg cl
test byte [rsi + 4], 3
setne al
cmp ecx, eax
je 0x1400d025d
lea eax, [rdx + r9]
cdq
sub eax, edx
sar eax, 1
mov dword [r8 + 0xc], eax
mov dword [r8], eax
mov dword [r8 + 0x18], ebx
xor eax, eax
mov dword [r8 + 0x1c], edi
mov dword [r8 + 0x20], 0
movzx ecx, word [rsi + 4]
test cl, 1
je 0x1400d0289
mov dword [r8 + 0x20], 2
mov eax, 2
movzx ecx, word [rsi + 4]
test cl, 2
je 0x1400d0299
or eax, 4
mov dword [r8 + 0x20], eax
movzx ecx, word [rsi + 4]
test cl, 4
je 0x1400d02a9
or eax, 8
mov dword [r8 + 0x20], eax
movzx ecx, word [rsi + 4]
test cl, 8
je 0x1400d02b5
or eax, 0x10
mov dword [r8 + 0x20], eax
mov rdx, qword [rsp + 0x40]
lea r8, [0x1402a34f0]
mov ecx, dword [rsi + 8]
add rsi, 8
mov qword [rsp + 0x48], rsi
cmp ecx, 0xc20
jne 0x1400cf8c0
mov r14, qword [rsp + 0x290]
mov r13, qword [rsp + 0x298]
mov rdi, qword [rsp + 0x2a0]
mov rbp, qword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x2e0]
mov rcx, qword [r15 + 0x98]
call fcn.1400c7a60
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400be7c0
add rsp, 0x2b0
pop r15
pop r12
pop rsi
ret