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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x120
mov r10, qword [rcx + 0x20]
mov qword [rcx + 0x28], rdx
mov qword [rcx + 0x30], r8
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
mov eax, dword [r8 + 0x48]
mov rsi, rcx
movsxd rbx, r9d
mov dword [r10], eax
mov r10, qword [rcx + 0x20]
mov eax, dword [r8 + 0x4c]
mov ecx, 0x358
mov rdi, r8
mov r15, rdx
mov dword [r10 + 4], eax
call sub.msvcrt.dll_malloc
mov rcx, qword [rsi + 0x20]
imul r14, rbx, 0x15e8
mov qword [rcx + 8], rax
add r14, qword [rdi + 0x80]
mov rcx, qword [rsi + 0x20]
mov rbp, qword [rcx + 8]
mov r8d, dword [r15]
mov eax, ebx
cdq
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xc0], rbp
idiv dword [rdi + 0x48]
mov r9d, eax
mov ecx, edx
imul ecx, dword [rdi + 0x38]
add ecx, dword [rdi + 0x30]
cmp ecx, r8d
cmovg r8d, ecx
mov dword [rbp], r8d
mov ecx, dword [r15 + 4]
mov eax, dword [rdi + 0x3c]
imul eax, r9d
add eax, dword [rdi + 0x34]
cmp eax, ecx
cmovg ecx, eax
lea eax, [rdx + 1]
mov dword [rbp + 4], ecx
mov ecx, dword [r15 + 8]
imul eax, dword [rdi + 0x38]
add eax, dword [rdi + 0x30]
cmp eax, ecx
cmovl ecx, eax
lea eax, [r9 + 1]
mov dword [rbp + 8], ecx
mov ecx, dword [r15 + 0xc]
imul eax, dword [rdi + 0x3c]
add eax, dword [rdi + 0x34]
cmp eax, ecx
cmovl ecx, eax
xor r9d, r9d
mov dword [rbp + 0xc], ecx
mov eax, dword [r15 + 0x10]
mov dword [rbp + 0x10], eax
mov r10d, dword [r14 + 0xc]
test r10d, r10d
jle 0x1400d6d9f
movss xmm6, dword [0x14012e5dc]
movss xmm8, dword [0x140156218]
movss xmm5, dword [0x140156220]
movaps xmmword [rsp + 0xe0], xmm9
lea r8, [r14 + 0x14]
xorps xmm4, xmm4
movss xmm9, dword [0x14015621c]
movss xmm7, dword [0x140134214]
nop dword [rax]
movss xmm3, dword [r8]
ucomiss xmm3, xmm4
jp 0x1400d6cd1
jne 0x1400d6cd1
movaps xmm2, xmm4
jmp 0x1400d6d2e
mov rdx, qword [r15 + 0x18]
mov ecx, dword [rbp + 8]
mov eax, dword [rbp + 0xc]
mulss xmm3, xmm6
sub ecx, dword [rbp]
sub eax, dword [rbp + 4]
movd xmm0, dword [rdx]
movd xmm1, dword [rdx + 4]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
mulss xmm3, xmm0
imul ecx, eax
imul ecx, dword [rdx + 0x18]
mulss xmm3, xmm1
imul ecx, dword [rbp + 0x10]
cmp byte [rdi + 0x10], 0
movd xmm2, ecx
cvtdq2ps xmm2, xmm2
divss xmm2, xmm3
je 0x1400d6d2e
imul eax, dword [rsi + 0xc], 0xe
sub eax, 0xe
cdq
idiv r10d
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm2, xmm0
ucomiss xmm2, xmm4
movss dword [r8], xmm2
jp 0x1400d6d3a
je 0x1400d6d82
test r9d, r9d
je 0x1400d6d61
movss xmm1, dword [r8 - 4]
movaps xmm0, xmm1
addss xmm0, xmm8
comiss xmm0, xmm2
jbe 0x1400d6d69
movaps xmm2, xmm1
addss xmm2, xmm9
movss dword [r8], xmm2
jmp 0x1400d6d69
comiss xmm5, xmm2
jbe 0x1400d6d69
movaps xmm2, xmm5
movss dword [r8], xmm2
mov eax, dword [r14 + 0xc]
dec eax
cmp r9d, eax
jne 0x1400d6d82
subss xmm2, xmm7
movss dword [r8], xmm2
mov r10d, dword [r14 + 0xc]
inc r9d
add r8, 4
cmp r9d, r10d
jl 0x1400d6cc0
movaps xmm9, xmmword [rsp + 0xe0]
movsxd rax, dword [r15 + 0x10]
lea rcx, [rax + rax*2]
shl rcx, 4
call sub.msvcrt.dll_malloc
xor r12d, r12d
mov qword [rbp + 0x18], rax
mov dword [rsp + 0x3c], r12d
cmp dword [rbp + 0x10], r12d
jle 0x1400d75d9
movsd xmm6, qword [0x14012e338]
movsd xmm7, qword [0x140156210]
movsd xmm8, qword [0x14012da78]
xor ebx, ebx
xor edi, edi
xor ecx, ecx
mov qword [rsp + 0x178], r13
lea r13d, [r12 + 1]
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0xa8], rdi
nop word [rax + rax]
mov rax, qword [r15 + 0x18]
mov r14, qword [r14 + 0x15e0]
mov rsi, qword [rbp + 0x18]
add r14, rcx
mov ecx, dword [rbx + rax]
mov eax, dword [rbp]
dec eax
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xc8], rsi
add eax, ecx
cdq
idiv ecx
mov dword [rdi + rsi], eax
mov rcx, qword [r15 + 0x18]
mov r11d, eax
mov eax, dword [rbp + 4]
dec eax
add eax, dword [rbx + rcx + 4]
cdq
idiv dword [rbx + rcx + 4]
mov dword [rdi + rsi + 4], eax
mov rcx, qword [r15 + 0x18]
mov r10d, eax
mov eax, dword [rbp + 8]
dec eax
add eax, dword [rbx + rcx]
cdq
idiv dword [rbx + rcx]
mov r9d, eax
mov dword [rdi + rsi + 8], eax
mov rcx, qword [r15 + 0x18]
mov eax, dword [rbp + 0xc]
sub r9d, r11d
dec eax
add eax, dword [rbx + rcx + 4]
cdq
idiv dword [rbx + rcx + 4]
mov edx, 0x10
mov dword [rdi + rsi + 0xc], eax
sub eax, r10d
imul eax, r9d
movsxd rcx, eax
shl rcx, 2
call sub.msvcrt.dll__aligned_malloc
mov qword [rdi + rsi + 0x20], rax
movsxd rbx, dword [r14 + 4]
mov dword [rdi + rsi + 0x10], ebx
imul rcx, rbx, 0x98
call sub.msvcrt.dll_malloc
xor r10d, r10d
mov qword [rdi + rsi + 0x18], rax
mov dword [rsp + 0x160], r10d
test ebx, ebx
jle 0x1400d7586
lea rbx, [r14 + 0x3b0]
xor r15d, r15d
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0x90], r15
nop word [rax + rax]
mov ebp, dword [rdi + rsi + 0x10]
mov r12, qword [rdi + rsi + 0x18]
mov r8d, r13d
sub ebp, r10d
mov r9d, 3
mov qword [rsp + 0xb0], r12
dec ebp
mov ecx, ebp
mov dword [rsp + 0x5c], ebp
shl r8d, cl
lea edx, [r8 - 1]
add edx, dword [rdi + rsi]
sar edx, cl
mov dword [r15 + r12], edx
mov edx, dword [rdi + rsi + 4]
dec edx
add edx, r8d
sar edx, cl
mov dword [r15 + r12 + 4], edx
lea edx, [r8 - 1]
add edx, dword [rdi + rsi + 8]
sar edx, cl
mov dword [r15 + r12 + 8], edx
mov edx, dword [rdi + rsi + 0xc]
dec edx
add edx, r8d
sar edx, cl
test r10d, r10d
cmove r9d, r13d
mov dword [r15 + r12 + 0xc], edx
mov dword [r15 + r12 + 0x18], r9d
test byte [r14], 1
je 0x1400d6f81
mov r11d, dword [rbx - 0x84]
mov ebx, dword [rbx]
jmp 0x1400d6f8a
mov r11d, 0xf
mov ebx, r11d
mov r13d, dword [r15 + r12]
mov eax, dword [r15 + r12 + 4]
mov r8d, dword [r15 + r12 + 8]
mov ecx, r11d
mov edx, 1
mov dword [rsp + 0x20], ebx
sar r13d, cl
mov dword [rsp + 0x170], r11d
shl r13d, cl
mov ecx, ebx
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, ebx
mov dword [r15 + r12 + 0x10], r8d
mov r8d, dword [r15 + r12 + 0xc]
shl edx, cl
dec r8d
add r8d, edx
sar r8d, cl
shl r8d, cl
sub r8d, eax
sar r8d, cl
mov dword [r15 + r12 + 0x14], r8d
test r10d, r10d
je 0x1400d702a
inc r13d
sar r13d, 1
inc eax
sar eax, 1
dec r11d
dec ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x170], r11d
cmp dword [r14 + 8], r11d
mov ecx, r11d
cmovl ecx, dword [r14 + 8]
cmp dword [r14 + 0xc], ebx
mov dword [rsp + 0x2c], ecx
mov ecx, ebx
cmovl ecx, dword [r14 + 0xc]
xor ebx, ebx
mov dword [rsp + 0x28], ecx
mov eax, ebx
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x70], rbx
test r9d, r9d
jle 0x1400d752c
mov edx, 1
lea r13, [r12 + 0x24]
mov ecx, ebp
mov r8d, edx
rol r8d, cl
add r13, r15
mov qword [rsp + 0x88], r13
mov dword [rsp + 0x64], r8d
jmp 0x1400d7088
mov edx, 1
test r10d, r10d
jne 0x1400d7098
mov r11d, ebx
mov dword [r13 + 0xc], ebx
mov ecx, ebx
jmp 0x1400d70b1
lea r11d, [rax + 1]
mov dword [r13 + 0xc], r11d
lea eax, [r11 - 1]
test eax, 0xfffffffd
je 0x1400d70af
mov ecx, ebx
jmp 0x1400d70b1
mov ecx, edx
mov edx, dword [rdi + rsi]
lea eax, [r11 - 2]
cmp eax, 1
setbe bl
test r11d, r11d
jne 0x1400d70f8
dec edx
mov ecx, ebp
add edx, r8d
sar edx, cl
mov dword [r13 - 4], edx
mov edx, dword [rdi + rsi + 4]
dec edx
add edx, r8d
sar edx, cl
mov dword [r13], edx
lea edx, [r8 - 1]
add edx, dword [rdi + rsi + 8]
sar edx, cl
mov dword [r13 + 4], edx
mov edx, dword [rdi + rsi + 0xc]
dec edx
add edx, r8d
jmp 0x1400d7154
mov r9d, r8d
mov r10d, r8d
imul r8d, ebx
rol r10d, 1
imul r9d, ecx
lea ecx, [rbp + 1]
sub edx, r9d
dec edx
add edx, r10d
sar edx, cl
mov dword [r13 - 4], edx
mov edx, dword [rdi + rsi + 4]
sub edx, r8d
dec edx
add edx, r10d
sar edx, cl
mov dword [r13], edx
mov eax, dword [rdi + rsi + 8]
lea edx, [r10 - 1]
sub r10d, r8d
sub eax, r9d
add edx, eax
dec r10d
sar edx, cl
mov dword [r13 + 4], edx
mov edx, dword [rdi + rsi + 0xc]
add edx, r10d
mov r10d, dword [rsp + 0x160]
sar edx, cl
mov dword [r13 + 8], edx
test r10d, r10d
jne 0x1400d7163
xor ebx, ebx
jmp 0x1400d716d
mov rbx, qword [rsp + 0x48]
add rbx, qword [rsp + 0x70]
cmp dword [r14 + 0x14], 0
mov ecx, r11d
jne 0x1400d717e
call fcn.1400dbfe0
jmp 0x1400d7183
call fcn.1400dbfc0
mov rcx, qword [rsp + 0x50]
mov edx, eax
mov rax, qword [rsp + 0x168]
movaps xmm0, xmm6
mov rax, qword [rax + 0x18]
mov ecx, dword [rcx + rax + 0x18]
sub ecx, dword [r14 + rbx*8 + 0x1c]
add ecx, edx
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
call sub.msvcrt.dll_pow
movd xmm1, dword [r14 + rbx*8 + 0x20]
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm7
addsd xmm1, xmm8
mulsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [r13 + 0x20], xmm0
mov eax, dword [r14 + rbx*8 + 0x1c]
mov ecx, dword [r14 + 0x324]
dec eax
add ecx, eax
mov dword [r13 + 0x1c], ecx
mov eax, dword [r15 + r12 + 0x14]
imul eax, dword [r15 + r12 + 0x10]
lea eax, [rax + rax*2]
movsxd rcx, eax
lea rcx, [rcx + rcx*2]
shl rcx, 4
call sub.msvcrt.dll_malloc
xor ebx, ebx
mov qword [r13 + 0x14], rax
mov eax, dword [r15 + r12 + 0x14]
mov edx, ebx
imul eax, dword [r15 + r12 + 0x10]
lea eax, [rax + rax*2]
test eax, eax
jle 0x1400d724b
mov ecx, ebx
mov rax, qword [r13 + 0x14]
inc edx
lea rcx, [rcx + 0x30]
mov qword [rax + rcx - 8], rbx
mov rax, qword [r13 + 0x14]
mov qword [rax + rcx - 0x10], rbx
mov eax, dword [r15 + r12 + 0x14]
imul eax, dword [r15 + r12 + 0x10]
lea eax, [rax + rax*2]
cmp edx, eax
jl 0x1400d7221
mov eax, dword [r15 + r12 + 0x14]
mov r8d, ebx
mov dword [rsp + 0x38], ebx
imul eax, dword [r15 + r12 + 0x10]
test eax, eax
jle 0x1400d74f9
mov ecx, dword [rsp + 0x170]
mov r14d, dword [rsp + 0x2c]
mov edx, 1
mov r9d, edx
mov r10d, edx
mov eax, edx
rol r9d, cl
mov ecx, dword [rsp + 0x20]
mov dword [rsp + 0x60], r9d
rol r10d, cl
mov ecx, r14d
mov dword [rsp + 0x78], r10d
rol eax, cl
mov ecx, dword [rsp + 0x28]
lea r11d, [rax - 1]
rol edx, cl
mov dword [rsp + 0x80], eax
lea ebx, [rdx - 1]
mov dword [rsp + 0x7c], edx
mov dword [rsp + 0x68], r11d
mov dword [rsp + 0x40], ebx
xor esi, esi
nop word [rax + rax]
mov rbp, qword [r13 + 0x14]
mov ecx, r9d
mov eax, r8d
cdq
idiv dword [r15 + r12 + 0x10]
imul ecx, edx
mov edx, r10d
imul edx, eax
add ecx, dword [rsp + 0x30]
add edx, dword [rsp + 0x24]
lea eax, [r9 + rcx]
mov r9d, dword [r13 - 4]
cmp ecx, r9d
lea r8d, [r10 + rdx]
cmovg r9d, ecx
mov ecx, r14d
mov dword [rsi + rbp], r9d
mov r10d, dword [r13]
cmp edx, r10d
cmovg r10d, edx
mov dword [rsi + rbp + 4], r10d
mov edx, dword [r13 + 4]
cmp eax, edx
cmovl edx, eax
mov dword [rsi + rbp + 8], edx
mov eax, dword [r13 + 8]
cmp r8d, eax
lea edi, [rdx + r11]
mov edx, 0x40
cmovl eax, r8d
mov r8d, dword [rsp + 0x28]
sar r9d, cl
shl r9d, cl
add ebx, eax
mov ecx, r8d
sar r10d, cl
mov dword [rsi + rbp + 0xc], eax
mov dword [rsp + 0x58], r9d
shl r10d, cl
mov ecx, r14d
sar edi, cl
mov dword [rsp + 0x84], r10d
shl edi, cl
sub edi, r9d
sar edi, cl
mov ecx, r8d
sar ebx, cl
mov dword [rsi + rbp + 0x10], edi
shl ebx, cl
sub ebx, r10d
sar ebx, cl
mov eax, ebx
mov dword [rsi + rbp + 0x14], ebx
imul eax, edi
movsxd rcx, eax
call sub.msvcrt.dll_calloc
mov edx, ebx
mov ecx, edi
mov qword [rsi + rbp + 0x18], rax
call fcn.1400e1aa0
mov edx, dword [rsi + rbp + 0x14]
mov ecx, dword [rsi + rbp + 0x10]
mov qword [rsi + rbp + 0x20], rax
call fcn.1400e1aa0
xor r14d, r14d
mov qword [rsi + rbp + 0x28], rax
mov eax, dword [rsi + rbp + 0x14]
imul eax, dword [rsi + rbp + 0x10]
test eax, eax
jle 0x1400d749e
mov r12d, dword [rsp + 0x80]
mov r15d, dword [rsp + 0x7c]
mov r13d, dword [rsp + 0x58]
xor edi, edi
nop dword [rax]
mov rbx, qword [rsi + rbp + 0x18]
mov eax, r14d
mov ecx, r12d
cdq
idiv dword [rsi + rbp + 0x10]
imul ecx, edx
mov edx, r15d
imul edx, eax
mov eax, dword [rsi + rbp]
add ecx, r13d
add edx, dword [rsp + 0x84]
cmp ecx, eax
lea r8d, [r12 + rcx]
cmovg eax, ecx
lea r9d, [r15 + rdx]
mov ecx, 0x2002
mov dword [rdi + rbx + 0x18], eax
mov eax, dword [rsi + rbp + 4]
cmp edx, eax
cmovg eax, edx
mov edx, 1
mov dword [rdi + rbx + 0x1c], eax
mov eax, dword [rsi + rbp + 8]
cmp r8d, eax
cmovl eax, r8d
mov dword [rdi + rbx + 0x20], eax
mov eax, dword [rsi + rbp + 0xc]
cmp r9d, eax
cmovl eax, r9d
mov dword [rdi + rbx + 0x24], eax
call sub.msvcrt.dll_calloc
mov edx, 0x18
add rax, 2
lea ecx, [rdx + 0x4c]
mov qword [rdi + rbx], rax
call sub.msvcrt.dll_calloc
mov edx, 0x18
lea ecx, [rdx + 0x4c]
mov qword [rdi + rbx + 8], rax
call sub.msvcrt.dll_calloc
inc r14d
lea rdi, [rdi + 0x40]
mov qword [rdi + rbx - 0x30], rax
mov eax, dword [rsi + rbp + 0x14]
imul eax, dword [rsi + rbp + 0x10]
cmp r14d, eax
jl 0x1400d73d0
mov r15, qword [rsp + 0x90]
mov r12, qword [rsp + 0xb0]
mov r13, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x38]
mov eax, dword [r15 + r12 + 0x14]
mov r9d, dword [rsp + 0x60]
imul eax, dword [r15 + r12 + 0x10]
mov r10d, dword [rsp + 0x78]
mov r11d, dword [rsp + 0x68]
mov ebx, dword [rsp + 0x40]
mov r14d, dword [rsp + 0x2c]
inc r8d
add rsi, 0x30
mov dword [rsp + 0x38], r8d
cmp r8d, eax
jl 0x1400d72c0
mov rdi, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xc8]
mov ebp, dword [rsp + 0x5c]
mov r14, qword [rsp + 0xb8]
xor ebx, ebx
mov eax, dword [rsp + 0x34]
inc qword [rsp + 0x70]
mov r8d, dword [rsp + 0x64]
mov r10d, dword [rsp + 0x160]
inc eax
add r13, 0x28
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x88], r13
cmp eax, dword [r15 + r12 + 0x18]
jl 0x1400d7083
mov rbx, qword [rsp + 0xa0]
add qword [rsp + 0x48], 3
inc r10d
add r15, 0x98
add rbx, 4
mov dword [rsp + 0x160], r10d
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0x90], r15
mov r13d, 1
cmp r10d, dword [rdi + rsi + 0x10]
jl 0x1400d6f00
mov r15, qword [rsp + 0x168]
mov rbp, qword [rsp + 0xc0]
mov r12d, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0xd0]
inc r12d
add rcx, 0x434
add rbx, 0x38
add rdi, 0x30
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x3c], r12d
mov qword [rsp + 0xa8], rdi
cmp r12d, dword [rbp + 0x10]
jl 0x1400d6e10
mov r13, qword [rsp + 0x178]
lea r11, [rsp + 0x120]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret