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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rdi
push r13
push r14
sub rsp, 0x110
mov rcx, qword [rcx + 0x20]
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov r10, r8
mov rdi, rdx
mov r14, qword [rcx + 8]
movaps xmmword [rax - 0x58], xmm8
movsxd rax, r9d
mov qword [rsp + 0xb8], r14
imul r11, rax, 0x15e8
mov eax, r9d
add r11, qword [r8 + 0x80]
cdq
mov qword [rsp + 0xc8], r11
idiv dword [r8 + 0x48]
mov r8d, dword [rdi]
mov r9d, eax
mov ecx, edx
imul ecx, dword [r10 + 0x38]
add ecx, dword [r10 + 0x30]
cmp ecx, r8d
cmovg r8d, ecx
mov dword [r14], r8d
mov ecx, dword [rdi + 4]
mov eax, dword [r10 + 0x3c]
imul eax, r9d
add eax, dword [r10 + 0x34]
cmp eax, ecx
cmovg ecx, eax
lea eax, [rdx + 1]
mov dword [r14 + 4], ecx
mov ecx, dword [rdi + 8]
imul eax, dword [r10 + 0x38]
add eax, dword [r10 + 0x30]
cmp eax, ecx
cmovl ecx, eax
lea eax, [r9 + 1]
mov dword [r14 + 8], ecx
mov ecx, dword [rdi + 0xc]
imul eax, dword [r10 + 0x3c]
add eax, dword [r10 + 0x34]
cmp eax, ecx
cmovl ecx, eax
xor r9d, r9d
mov dword [r14 + 0xc], ecx
mov eax, dword [rdi + 0x10]
mov dword [r14 + 0x10], eax
cmp dword [r11 + 0xc], r9d
jle 0x1400d4e42
movss xmm8, dword [0x14012e5dc]
movss xmm7, dword [0x140156218]
movss xmm5, dword [0x14015621c]
lea r8, [r11 + 0x14]
xorps xmm4, xmm4
movss xmm6, dword [0x140156220]
nop word [rax + rax]
movss xmm2, dword [r8]
ucomiss xmm2, xmm4
jp 0x1400d4db1
jne 0x1400d4db1
movaps xmm3, xmm4
jmp 0x1400d4df7
mov rdx, qword [rdi + 0x18]
mov ecx, dword [r14 + 8]
mov eax, dword [r14 + 0xc]
mulss xmm2, xmm8
sub ecx, dword [r14]
sub eax, dword [r14 + 4]
movd xmm0, dword [rdx]
movd xmm1, dword [rdx + 4]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
mulss xmm2, xmm0
imul ecx, eax
imul ecx, dword [rdx + 0x18]
mulss xmm2, xmm1
imul ecx, dword [r14 + 0x10]
movd xmm3, ecx
cvtdq2ps xmm3, xmm3
divss xmm3, xmm2
ucomiss xmm3, xmm4
movss dword [r8], xmm3
jp 0x1400d4e03
je 0x1400d4e31
test r9d, r9d
je 0x1400d4e25
movss xmm1, dword [r8 - 4]
movaps xmm0, xmm1
addss xmm0, xmm7
comiss xmm0, xmm3
jbe 0x1400d4e31
addss xmm1, xmm5
movss dword [r8], xmm1
jmp 0x1400d4e31
comiss xmm6, xmm3
jbe 0x1400d4e31
mov dword [r8], 0x41f00000
inc r9d
add r8, 4
cmp r9d, dword [r11 + 0xc]
jl 0x1400d4da0
xor r13d, r13d
mov dword [rsp + 0x44], r13d
cmp dword [r14 + 0x10], r13d
jle 0x1400d5630
movsd xmm6, qword [0x14012e338]
movsd xmm7, qword [0x140156210]
movsd xmm8, qword [0x14012da78]
mov qword [rsp + 0x130], rbx
mov qword [rsp + 0x140], rbp
mov qword [rsp + 0x148], rsi
xor esi, esi
xor ebx, ebx
xor ecx, ecx
mov qword [rsp + 0x108], r12
mov qword [rsp + 0x100], r15
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x88], rsi
mov r15, qword [r11 + 0x15e0]
mov rax, qword [rdi + 0x18]
mov rbp, qword [r14 + 0x18]
add r15, rcx
mov ecx, dword [rbx + rax]
mov eax, dword [r14]
dec eax
mov qword [rsp + 0xc0], r15
mov qword [rsp + 0xb0], rbp
add eax, ecx
cdq
idiv ecx
mov dword [rsi + rbp], eax
mov rcx, qword [rdi + 0x18]
mov r11d, eax
mov eax, dword [r14 + 4]
dec eax
add eax, dword [rbx + rcx + 4]
cdq
idiv dword [rbx + rcx + 4]
mov dword [rsi + rbp + 4], eax
mov rcx, qword [rdi + 0x18]
mov r10d, eax
mov eax, dword [r14 + 8]
dec eax
add eax, dword [rbx + rcx]
cdq
idiv dword [rbx + rcx]
mov r9d, eax
mov dword [rsi + rbp + 8], eax
mov rcx, qword [rdi + 0x18]
mov eax, dword [r14 + 0xc]
sub r9d, r11d
dec eax
add eax, dword [rbx + rcx + 4]
cdq
idiv dword [rbx + rcx + 4]
mov edx, 0x10
mov dword [rsi + rbp + 0xc], eax
sub eax, r10d
imul eax, r9d
movsxd rcx, eax
shl rcx, 2
call sub.msvcrt.dll__aligned_malloc
xor r12d, r12d
mov qword [rsi + rbp + 0x20], rax
mov eax, dword [r15 + 4]
mov dword [rsp + 0x3c], r12d
mov dword [rsi + rbp + 0x10], eax
test eax, eax
jle 0x1400d55c2
lea rdi, [r15 + 0x3b0]
xor r14d, r14d
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xa0], r14
nop dword [rax]
mov r10d, dword [rsi + rbp + 0x10]
mov rbx, qword [rsi + rbp + 0x18]
mov r8d, 1
sub r10d, r12d
mov r9d, 3
mov qword [rsp + 0x80], rbx
dec r10d
mov ecx, r10d
mov dword [rsp + 0x48], r10d
shl r8d, cl
lea edx, [r8 - 1]
add edx, dword [rsi + rbp]
sar edx, cl
mov dword [r14 + rbx], edx
lea edx, [r8 - 1]
add edx, dword [rsi + rbp + 4]
sar edx, cl
mov dword [r14 + rbx + 4], edx
lea edx, [r8 - 1]
add edx, dword [rsi + rbp + 8]
sar edx, cl
mov dword [r14 + rbx + 8], edx
mov edx, dword [rsi + rbp + 0xc]
dec edx
add edx, r8d
sar edx, cl
test r12d, r12d
mov dword [r14 + rbx + 0xc], edx
mov edx, 1
cmove r9d, edx
mov dword [r14 + rbx + 0x18], r9d
test byte [r15], dl
je 0x1400d501b
mov r11d, dword [rdi - 0x84]
mov edi, dword [rdi]
jmp 0x1400d5024
mov r11d, 0xf
mov edi, r11d
mov r13d, dword [r14 + rbx]
mov eax, dword [r14 + rbx + 4]
mov r8d, dword [r14 + rbx + 8]
mov ecx, r11d
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x28], r11d
sar r13d, cl
shl r13d, cl
mov ecx, edi
sar eax, cl
mov dword [rsp + 0x30], r13d
shl eax, cl
mov ecx, r11d
shl edx, cl
mov dword [rsp + 0x24], eax
dec edx
add r8d, edx
mov edx, 1
sar r8d, cl
shl r8d, cl
sub r8d, r13d
sar r8d, cl
mov ecx, edi
mov dword [r14 + rbx + 0x10], r8d
mov r8d, dword [r14 + rbx + 0xc]
shl edx, cl
dec r8d
add r8d, edx
sar r8d, cl
shl r8d, cl
sub r8d, eax
sar r8d, cl
mov dword [r14 + rbx + 0x14], r8d
test r12d, r12d
je 0x1400d50b9
inc r13d
sar r13d, 1
inc eax
sar eax, 1
dec r11d
dec edi
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], r11d
cmp dword [r15 + 8], r11d
mov ecx, r11d
cmovl ecx, dword [r15 + 8]
cmp dword [r15 + 0xc], edi
mov dword [rsp + 0x38], ecx
mov ecx, edi
cmovl ecx, dword [r15 + 0xc]
xor eax, eax
xor r8d, r8d
mov dword [rsp + 0x2c], ecx
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x58], r8
test r9d, r9d
jle 0x1400d556c
mov edx, 1
lea r13, [rbx + 0x44]
mov ecx, r10d
mov r9d, edx
rol r9d, cl
add r13, r14
mov qword [rsp + 0x90], r13
mov dword [rsp + 0x50], r9d
jmp 0x1400d5118
mov edx, 1
test r12d, r12d
jne 0x1400d5127
xor ebx, ebx
xor ecx, ecx
mov dword [r13 - 0x14], ebx
jmp 0x1400d513e
lea ebx, [rax + 1]
mov dword [r13 - 0x14], ebx
lea eax, [rbx - 1]
test eax, 0xfffffffd
je 0x1400d513c
xor ecx, ecx
jmp 0x1400d513e
mov ecx, edx
mov edx, dword [rsi + rbp]
xor edi, edi
lea eax, [rbx - 2]
cmp eax, 1
setbe dil
test ebx, ebx
jne 0x1400d5188
dec edx
mov ecx, r10d
add edx, r9d
sar edx, cl
mov dword [r13 - 0x24], edx
mov edx, dword [rsi + rbp + 4]
dec edx
add edx, r9d
sar edx, cl
mov dword [r13 - 0x20], edx
mov edx, dword [rsi + rbp + 8]
dec edx
add edx, r9d
sar edx, cl
mov dword [r13 - 0x1c], edx
mov edx, dword [rsi + rbp + 0xc]
dec edx
add edx, r9d
jmp 0x1400d51ee
mov r8d, r9d
mov r11d, r9d
imul r9d, edi
imul r8d, ecx
rol r11d, 1
inc r10d
mov ecx, r11d
sub ecx, r8d
dec ecx
add edx, ecx
mov ecx, r10d
sar edx, cl
mov ecx, r11d
mov dword [r13 - 0x24], edx
mov edx, dword [rsi + rbp + 4]
sub ecx, r9d
dec ecx
add edx, ecx
mov ecx, r10d
sar edx, cl
mov dword [r13 - 0x20], edx
mov edx, r11d
sub r11d, r9d
sub edx, r8d
mov r8d, dword [rsi + rbp + 8]
dec edx
add r8d, edx
sar r8d, cl
mov dword [r13 - 0x1c], r8d
mov edx, dword [rsi + rbp + 0xc]
mov r8, qword [rsp + 0x58]
dec edx
add edx, r11d
sar edx, cl
mov dword [r13 - 0x18], edx
test r12d, r12d
jne 0x1400d51fd
xor edi, edi
jmp 0x1400d5205
mov rdi, qword [rsp + 0x68]
add rdi, r8
cmp dword [r15 + 0x14], 0
mov ecx, ebx
jne 0x1400d5215
call fcn.1400dbfe0
jmp 0x1400d521a
call fcn.1400dbfc0
mov rcx, qword [rsp + 0x78]
mov edx, eax
mov rax, qword [rsp + 0x138]
movaps xmm0, xmm6
mov rax, qword [rax + 0x18]
mov ecx, dword [rcx + rax + 0x18]
sub ecx, dword [r15 + rdi*8 + 0x1c]
add ecx, edx
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
call sub.msvcrt.dll_pow
movd xmm1, dword [r15 + rdi*8 + 0x20]
mov rbx, qword [rsp + 0x80]
xor edx, edx
mov dword [rsp + 0x40], edx
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm7
addsd xmm1, xmm8
mulsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [r13], xmm0
mov eax, dword [r15 + rdi*8 + 0x1c]
mov ecx, dword [r15 + 0x324]
dec eax
add ecx, eax
mov dword [r13 - 4], ecx
mov eax, dword [r14 + rbx + 0x10]
imul eax, dword [r14 + rbx + 0x14]
test eax, eax
jle 0x1400d5534
mov ecx, dword [rsp + 0x28]
mov eax, 1
mov r8d, eax
mov r9d, eax
mov r15d, eax
rol r8d, cl
mov ecx, dword [rsp + 0x20]
mov r12d, eax
rol r9d, cl
mov ecx, dword [rsp + 0x38]
mov dword [rsp + 0x54], r8d
rol r15d, cl
mov ecx, dword [rsp + 0x2c]
mov dword [rsp + 0x70], r9d
rol r12d, cl
xor edi, edi
lea ebp, [r15 - 1]
nop dword [rax]
mov r10d, dword [r13 - 0x24]
mov rsi, qword [r13 - 0xc]
mov eax, edx
cdq
mov ecx, r8d
idiv dword [r14 + rbx + 0x10]
imul ecx, edx
mov edx, r9d
imul edx, eax
add ecx, dword [rsp + 0x30]
add edx, dword [rsp + 0x24]
cmp ecx, r10d
cmovg r10d, ecx
lea eax, [r8 + rcx]
lea r8d, [r9 + rdx]
mov dword [rdi + rsi], r10d
mov r11d, dword [r13 - 0x20]
cmp edx, r11d
cmovg r11d, edx
mov dword [rdi + rsi + 4], r11d
mov edx, dword [r13 - 0x1c]
cmp eax, edx
cmovl edx, eax
mov dword [rdi + rsi + 8], edx
mov r9d, dword [r13 - 0x18]
cmp r8d, r9d
lea eax, [rdx + rbp]
cmovl r9d, r8d
mov r8d, dword [rsp + 0x38]
mov ecx, r8d
mov dword [rdi + rsi + 0xc], r9d
sar r10d, cl
shl r10d, cl
mov ecx, dword [rsp + 0x2c]
sar r11d, cl
mov dword [rsp + 0x4c], r10d
shl r11d, cl
mov ecx, r8d
sar eax, cl
mov dword [rsp + 0x60], r11d
shl eax, cl
sub eax, r10d
sar eax, cl
mov ecx, dword [rsp + 0x2c]
mov dword [rdi + rsi + 0x10], eax
lea eax, [r12 - 1]
add eax, r9d
sar eax, cl
shl eax, cl
sub eax, r11d
sar eax, cl
mov rcx, qword [rdi + rsi + 0x18]
mov dword [rdi + rsi + 0x14], eax
call sub.msvcrt.dll_free
mov eax, dword [rdi + rsi + 0x14]
imul eax, dword [rdi + rsi + 0x10]
mov edx, 0x40
movsxd rcx, eax
call sub.msvcrt.dll_calloc
mov rcx, qword [rdi + rsi + 0x20]
mov qword [rdi + rsi + 0x18], rax
test rcx, rcx
je 0x1400d53c6
call fcn.1400e1d60
mov rcx, qword [rdi + rsi + 0x28]
test rcx, rcx
je 0x1400d53d5
call fcn.1400e1d60
mov edx, dword [rdi + rsi + 0x14]
mov ecx, dword [rdi + rsi + 0x10]
call fcn.1400e1aa0
mov edx, dword [rdi + rsi + 0x14]
mov ecx, dword [rdi + rsi + 0x10]
mov qword [rdi + rsi + 0x20], rax
call fcn.1400e1aa0
xor ebp, ebp
mov qword [rdi + rsi + 0x28], rax
mov eax, dword [rdi + rsi + 0x14]
imul eax, dword [rdi + rsi + 0x10]
test eax, eax
jle 0x1400d54e8
mov r13d, dword [rsp + 0x4c]
xor r14d, r14d
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rdi + rsi + 0x18]
mov eax, ebp
mov ecx, r15d
cdq
idiv dword [rdi + rsi + 0x10]
imul ecx, edx
mov edx, r12d
imul edx, eax
mov eax, dword [rdi + rsi]
add ecx, r13d
add edx, dword [rsp + 0x60]
cmp ecx, eax
lea r8d, [r15 + rcx]
cmovg eax, ecx
lea r9d, [r12 + rdx]
mov ecx, 0x2000
mov dword [r14 + rbx + 0x18], eax
mov eax, dword [rdi + rsi + 4]
cmp edx, eax
cmovg eax, edx
mov edx, 1
mov dword [r14 + rbx + 0x1c], eax
mov eax, dword [rdi + rsi + 8]
cmp r8d, eax
cmovl eax, r8d
mov dword [r14 + rbx + 0x20], eax
mov eax, dword [rdi + rsi + 0xc]
cmp r9d, eax
cmovl eax, r9d
mov dword [r14 + rbx + 0x24], eax
call sub.msvcrt.dll_calloc
mov edx, 0x18
lea ecx, [rdx + 0x4c]
mov qword [r14 + rbx], rax
call sub.msvcrt.dll_calloc
mov edx, 0x18
lea ecx, [rdx + 0x4c]
mov qword [r14 + rbx + 8], rax
call sub.msvcrt.dll_calloc
inc ebp
lea r14, [r14 + 0x40]
mov qword [r14 + rbx - 0x30], rax
mov eax, dword [rdi + rsi + 0x14]
imul eax, dword [rdi + rsi + 0x10]
cmp ebp, eax
jl 0x1400d5420
mov r13, qword [rsp + 0x90]
mov r14, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x80]
mov edx, dword [rsp + 0x40]
mov eax, dword [r14 + rbx + 0x10]
mov r8d, dword [rsp + 0x54]
imul eax, dword [r14 + rbx + 0x14]
mov r9d, dword [rsp + 0x70]
inc edx
add rdi, 0x30
mov dword [rsp + 0x40], edx
lea ebp, [r15 - 1]
cmp edx, eax
jl 0x1400d52e0
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xb0]
mov r15, qword [rsp + 0xc0]
mov r12d, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x34]
mov r8, qword [rsp + 0x58]
mov r10d, dword [rsp + 0x48]
mov r9d, dword [rsp + 0x50]
inc eax
inc r8
add r13, 0x28
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x90], r13
cmp eax, dword [r14 + rbx + 0x18]
jl 0x1400d5113
mov rdi, qword [rsp + 0xa8]
add qword [rsp + 0x68], 3
inc r12d
add r14, 0x98
add rdi, 4
mov dword [rsp + 0x3c], r12d
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xa0], r14
cmp r12d, dword [rsi + rbp + 0x10]
jl 0x1400d4f90
mov rbx, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x138]
mov r14, qword [rsp + 0xb8]
mov r13d, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x98]
mov r11, qword [rsp + 0xc8]
inc r13d
add rsi, 0x30
add rbx, 0x38
add rcx, 0x434
mov qword [rsp + 0x98], rcx
mov dword [rsp + 0x44], r13d
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x78], rbx
cmp r13d, dword [r14 + 0x10]
jl 0x1400d4eb0
mov r15, qword [rsp + 0x100]
mov r12, qword [rsp + 0x108]
mov rsi, qword [rsp + 0x148]
mov rbp, qword [rsp + 0x140]
mov rbx, qword [rsp + 0x130]
lea r11, [rsp + 0x110]
movaps xmm6, xmmword [r11 - 0x20]
movaps xmm7, xmmword [r11 - 0x30]
movaps xmm8, xmmword [r11 - 0x40]
mov rsp, r11
pop r14
pop r13
pop rdi
ret