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

Disassembly:
mov r11, rsp
push rbx
push rdi
sub rsp, 0x158
mov ebx, dword [rcx + 0x54]
mov rdi, rcx
mov qword [r11 - 0x18], rbp
mov dword [rsp + 0x178], ebx
lea eax, [rbx - 1]
movsxd rcx, eax
mov qword [rsp + 0x40], rcx
mov rbp, rcx
mov qword [rsp + 0x20], rcx
test eax, eax
js 0x18013a1e3
mov qword [r11 - 0x20], rsi
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x30], r13
mov qword [r11 - 0x38], r14
mov qword [r11 - 0x40], r15
movaps xmmword [r11 - 0x58], xmm6
movaps xmmword [r11 - 0x68], xmm7
movaps xmmword [r11 - 0x78], xmm8
movaps xmmword [r11 - 0x88], xmm9
movaps xmmword [r11 - 0x98], xmm10
movaps xmmword [r11 - 0xa8], xmm11
movaps xmmword [r11 - 0xb8], xmm12
movss xmm12, dword [0x18016fe18]
movaps xmmword [r11 - 0xc8], xmm13
xorps xmm13, xmm13
movaps xmmword [r11 - 0xd8], xmm14
movss xmm14, dword [0x18016c750]
movaps xmmword [r11 - 0xe8], xmm15
movss xmm15, dword [0x18016fe6c]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 0x48]
mov r13, qword [rax + rbp*8]
mov qword [rsp + 0x70], r13
test r13, r13
je 0x18013a039
lea r12, [rdi + 0x148]
movaps xmm11, xmm13
mov dword [r12 + 0xc], ebx
cmp ebx, dword [r12 + 0x10]
jbe 0x180139917
mov edx, ebx
mov rcx, r12
call fcn.180150470
mov rcx, qword [r12]
test rcx, rcx
je 0x180139939
mov eax, dword [r12 + 0xc]
test eax, eax
je 0x180139939
imul eax, dword [r12 + 8]
xor edx, edx
mov r8d, eax
call sub.VCRUNTIME140.dll_memset
lea rsi, [rdi + 0x160]
mov dword [rsi + 0xc], ebx
cmp ebx, dword [rsi + 0x10]
jbe 0x180139952
mov edx, ebx
mov rcx, rsi
call fcn.180150470
mov rcx, qword [rsi]
test rcx, rcx
je 0x18013996f
mov eax, dword [rsi + 0xc]
test eax, eax
je 0x18013996f
imul eax, dword [rsi + 8]
xor edx, edx
mov r8d, eax
call sub.VCRUNTIME140.dll_memset
lea r14, [rdi + 0x178]
mov dword [r14 + 0xc], ebx
cmp ebx, dword [r14 + 0x10]
jbe 0x18013998a
mov edx, ebx
mov rcx, r14
call fcn.180150470
mov rcx, qword [r14]
test rcx, rcx
je 0x1801399a9
mov eax, dword [r14 + 0xc]
test eax, eax
je 0x1801399a9
imul eax, dword [r14 + 8]
xor edx, edx
mov r8d, eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [r13 + 0x54]
test eax, eax
je 0x180139d03
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov rax, qword [r13 + 0x48]
xor r11d, r11d
mov r8, qword [rdi]
mov dword [rsp + 0x170], r11d
mov ecx, dword [rcx + rax]
mov r14, qword [r8 + 0x30]
mov qword [rsp + 0x28], r14
lea ebp, [rcx + rcx*2]
mov rax, qword [r8 + 0x50]
mov r9, r8
movss xmm6, dword [rax + rbp*4]
mov rax, qword [r14 + 0x108]
mov ebx, dword [rax + rbp*4]
cmp ebx, 0xffffffff
jne 0x180139a07
addss xmm11, xmm6
jmp 0x180139cb6
mov eax, 0xaaaaaaab
mul ebx
mov rax, qword [rdi + 0x30]
shr edx, 1
mov ecx, edx
mov edx, dword [rax + rdx*4]
cmp edx, 0xffffffff
jne 0x180139a28
addss xmm11, xmm6
jmp 0x180139cb6
mov rax, qword [rdi + 0x48]
mov rsi, rdx
cmp qword [rax + rdx*8], r13
je 0x180139cb6
mov r15, qword [r14 + 0x40]
lea r8d, [rcx + rcx*2]
mov ecx, ebx
mov eax, 0xaaaaaaab
sub ecx, r8d
inc ecx
mul ecx
shr edx, 1
lea eax, [rdx + rdx*2]
sub ecx, eax
add ecx, r8d
mov eax, dword [r15 + rcx*4]
mov ecx, dword [r15 + rbp*4]
mov dword [rsp + 0x180], eax
mov dword [rsp + 0x188], ecx
cmp ecx, eax
jne 0x180139aa9
mov r8d, ebp
mov eax, 0xaaaaaaab
mul ebp
mov eax, 0xaaaaaaab
shr edx, 1
lea ecx, [rdx + rdx*2]
sub r8d, ecx
inc r8d
mul r8d
shr edx, 1
lea eax, [rdx + rdx*2]
sub r8d, eax
add r8d, ecx
mov ecx, dword [r15 + rbx*4]
cmp dword [r15 + r8*4], ecx
je 0x180139c67
mov r14, qword [r9 + 0x30]
mov rax, qword [r14 + 0x108]
mov r11d, dword [rax + rbp*4]
cmp r11d, 0xffffffff
je 0x180139be3
mov eax, 0xaaaaaaab
mul ebp
mov r8d, edx
shr r8d, 1
test byte [r14 + 4], 2
je 0x180139ba0
mov r9, qword [r14 + 0x40]
lea ecx, [r8 + r8*2]
mov r8d, ebp
mov eax, 0xaaaaaaab
sub r8d, ecx
inc r8d
mov r13d, dword [r9 + r11*4]
mov r10d, dword [r9 + rbp*4]
mul r8d
shr edx, 1
lea eax, [rdx + rdx*2]
sub r8d, eax
mov eax, 0xaaaaaaab
mul r11d
add r8d, ecx
mov eax, 0xaaaaaaab
shr edx, 1
mov r12d, dword [r9 + r8*4]
lea ecx, [rdx + rdx*2]
sub r11d, ecx
inc r11d
mul r11d
shr edx, 1
lea eax, [rdx + rdx*2]
sub r11d, eax
add r11d, ecx
mov ecx, dword [r9 + r11*4]
cmp r10d, ecx
jne 0x180139b4a
cmp r12d, r13d
jne 0x180139b4a
lea r12, [rdi + 0x148]
jmp 0x180139be3
mov r14, qword [r14 + 0x70]
lea rcx, [rcx + rcx*2]
movaps xmm2, xmm12
lea rdx, [r14 + rcx*4]
lea rcx, [r10 + r10*2]
lea rcx, [r14 + rcx*4]
call fcn.18011da00
test al, al
je 0x180139c7a
lea rcx, [r13*2]
movaps xmm2, xmm12
add rcx, r13
lea rdx, [r14 + rcx*4]
lea rcx, [r12 + r12*2]
lea rcx, [r14 + rcx*4]
call fcn.18011da00
test al, al
je 0x180139c7a
lea r12, [rdi + 0x148]
jmp 0x180139be3
mov rax, qword [rdi + 8]
mov rcx, qword [rax + 0x38]
mov eax, 0xaaaaaaab
mul r11d
shr edx, 1
mov eax, dword [rcx + rdx*4]
cmp dword [rcx + r8*4], eax
je 0x180139be3
mov rcx, qword [r9 + 0x98]
lea rax, [rdx + rdx*2]
movaps xmm2, xmm12
lea rdx, [rcx + rax*4]
lea rax, [r8 + r8*2]
lea rcx, [rcx + rax*4]
call fcn.18011da00
test al, al
je 0x180139c7a
mov r14, qword [rsp + 0x28]
mov eax, 0xaaaaaaab
mul ebp
mov eax, 0xaaaaaaab
mov r8d, ebp
shr edx, 1
lea ecx, [rdx + rdx*2]
sub r8d, ecx
inc r8d
mul r8d
shr edx, 1
lea eax, [rdx + rdx*2]
mov edx, dword [rsp + 0x188]
sub r8d, eax
mov eax, dword [rsp + 0x180]
add r8d, ecx
mov rcx, qword [r14 + 0x88]
movss xmm0, dword [rcx + rdx*8]
ucomiss xmm0, dword [rcx + rax*8]
jp 0x180139c7f
jne 0x180139c7f
movss xmm0, dword [rcx + rdx*8 + 4]
ucomiss xmm0, dword [rcx + rax*8 + 4]
jp 0x180139c7f
jne 0x180139c7f
mov r8d, dword [r15 + r8*4]
mov edx, dword [r15 + rbx*4]
movss xmm0, dword [rcx + r8*8]
ucomiss xmm0, dword [rcx + rdx*8]
jp 0x180139c7f
jne 0x180139c7f
movss xmm0, dword [rcx + r8*8 + 4]
ucomiss xmm0, dword [rcx + rdx*8 + 4]
jp 0x180139c7f
jne 0x180139c7f
mov rax, qword [r12]
movaps xmm0, xmm6
addss xmm0, dword [rax + rsi*4]
movss dword [rax + rsi*4], xmm0
jmp 0x180139c8b
mov r14, qword [rsp + 0x28]
addss xmm11, xmm6
lea r12, [rdi + 0x148]
mov rax, qword [rdi + 0x160]
mov r11d, dword [rsp + 0x170]
mov r13, qword [rsp + 0x70]
addss xmm6, dword [rax + rsi*4]
movss dword [rax + rsi*4], xmm6
mov rax, qword [rdi + 0x178]
inc dword [rax + rsi*4]
mov r8, qword [rdi]
cmp r11d, 3
jae 0x180139cd0
mov r8, qword [rdi]
inc r11d
inc ebp
mov dword [rsp + 0x170], r11d
cmp r11d, 3
jne 0x1801399e2
mov rcx, qword [rsp + 0x30]
add rcx, 4
sub qword [rsp + 0x38], 1
mov qword [rsp + 0x30], rcx
jne 0x1801399c1
mov rbp, qword [rsp + 0x20]
lea rsi, [rdi + 0x160]
lea r14, [rdi + 0x178]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
js 0x18013a039
mov r12, rcx
cmp r12, rbp
je 0x18013a021
mov rax, qword [rdi + 0x48]
mov rbx, qword [rax + r12*8]
test rbx, rbx
je 0x18013a021
mov rax, qword [rdi + 0x148]
movss xmm9, dword [rax + r12*4]
comiss xmm13, xmm9
jae 0x18013a021
movss xmm0, dword [r13 + 0x1c]
mulss xmm0, dword [rbx + 0x1c]
movss xmm2, dword [rbx + 0x20]
mulss xmm2, dword [r13 + 0x20]
movss xmm1, dword [rbx + 0x24]
mulss xmm1, dword [r13 + 0x24]
addss xmm2, xmm0
movss xmm0, dword [0x18016be04]
addss xmm2, xmm1
comiss xmm0, xmm2
ja 0x18013a021
mov rax, qword [rdi]
movss xmm1, dword [rax + 8]
comiss xmm1, xmm13
jbe 0x180139da1
movss xmm0, dword [rbx + 0x28]
addss xmm0, dword [r13 + 0x28]
comiss xmm0, xmm1
ja 0x18013a021
movss xmm1, dword [rax + 0xc]
comiss xmm1, xmm13
jbe 0x180139dc9
movss xmm0, dword [rbx + 0x2c]
addss xmm0, dword [r13 + 0x2c]
mov rax, qword [rsi]
subss xmm0, dword [rax + r12*4]
comiss xmm0, xmm1
ja 0x18013a021
mov rax, qword [rsi]
movss xmm10, dword [rax + r12*4]
comiss xmm10, xmm13
jbe 0x180139e02
cmp dword [r13 + 0x54], 1
jbe 0x180139e02
cmp dword [rbx + 0x54], 1
jne 0x180139e02
movss xmm0, dword [r13 + 0x28]
mov ebp, 1
mulss xmm0, dword [0x18016fe48]
comiss xmm0, dword [rbx + 0x28]
jae 0x180139ea0
mov esi, dword [rbx + 0x54]
cmp esi, 2
jne 0x180139e19
mov rax, qword [r14]
mov ebp, esi
cmp dword [rax + r12*4], esi
jae 0x180139ea0
comiss xmm10, xmm13
jbe 0x180139e69
movss xmm7, dword [rbx + 0x2c]
movaps xmm0, xmm10
subss xmm0, xmm7
mov ebp, esi
call fcn.18011ef10
movaps xmm8, xmm0
movaps xmm0, xmm10
call fcn.18015c350
movaps xmm6, xmm0
movaps xmm0, xmm7
call fcn.18015c350
movss xmm1, dword [0x18016be10]
maxss xmm6, xmm0
maxss xmm1, xmm6
mulss xmm1, dword [0x18016fe08]
comiss xmm1, xmm8
jae 0x180139ea0
movss xmm0, dword [r13 + 0x2c]
movaps xmm1, xmm13
subss xmm0, xmm11
mov ebp, esi
maxss xmm1, xmm0
mulss xmm1, dword [0x18016fe5c]
comiss xmm9, xmm1
ja 0x180139ea0
movss xmm0, dword [rbx + 0x2c]
mulss xmm0, xmm15
comiss xmm9, xmm0
jbe 0x18013a01c
mov r15d, dword [r13 + 0x54]
lea rdx, [rbx + 0x48]
lea rcx, [r13 + 0x48]
call fcn.180142470
test ebp, ebp
je 0x180139ede
xor r8d, r8d
mov r9d, ebp
nop dword [rax + rax]
mov rax, qword [rbx + 0x48]
lea r8, [r8 + 4]
mov rcx, qword [rdi + 0x30]
mov edx, dword [rax + r8 - 4]
mov eax, dword [r13]
mov dword [rcx + rdx*4], eax
sub r9, 1
jne 0x180139ec0
xorps xmm0, xmm0
mov dword [rsp + 0x68], 0
xorps xmm1, xmm1
lea r8, [rsp + 0x48]
mov rdx, r13
mov rcx, rdi
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm1
call fcn.1801133c0
test al, al
jne 0x180139f51
mov dword [r13 + 0x54], r15d
cmp r15d, dword [r13 + 0x58]
jbe 0x180139f20
mov edx, r15d
lea rcx, [r13 + 0x48]
call fcn.180150470
test ebp, ebp
je 0x18013a01c
xor r8d, r8d
mov r9d, ebp
nop
mov rax, qword [rbx + 0x48]
lea r8, [r8 + 4]
mov rcx, qword [rdi + 0x30]
mov edx, dword [rax + r8 - 4]
mov eax, dword [rbx]
mov dword [rcx + rdx*4], eax
sub r9, 1
jne 0x180139f30
jmp 0x18013a01c
mov rax, qword [r13 + 0x48]
movss xmm4, dword [rsp + 0x64]
movss xmm3, dword [rsp + 0x60]
movaps xmm2, xmm4
movss xmm5, dword [rsp + 0x68]
movaps xmm0, xmm3
mov ecx, dword [rax]
movaps xmm1, xmm5
mov rax, qword [rdi]
lea rdx, [rcx + rcx*2]
mov rcx, qword [rax + 0x98]
mulss xmm2, dword [rcx + rdx*4 + 4]
mulss xmm0, dword [rcx + rdx*4]
mulss xmm1, dword [rcx + rdx*4 + 8]
addss xmm2, xmm0
addss xmm2, xmm1
comiss xmm13, xmm2
jbe 0x180139fbd
xorps xmm3, xmm14
xorps xmm4, xmm14
xorps xmm5, xmm14
movss dword [rsp + 0x60], xmm3
movss dword [rsp + 0x64], xmm4
movss dword [rsp + 0x68], xmm5
mov rdx, r13
mov rcx, rdi
call fcn.180141670
mov rdx, r13
mov rcx, rdi
call fcn.180131430
test al, al
jne 0x18013a054
mov dword [r13 + 0x54], r15d
cmp r15d, dword [r13 + 0x58]
jbe 0x180139fed
mov edx, r15d
lea rcx, [r13 + 0x48]
call fcn.180150470
test ebp, ebp
je 0x18013a01c
xor r8d, r8d
mov r9d, ebp
nop word [rax + rax]
mov rax, qword [rbx + 0x48]
lea r8, [r8 + 4]
mov rcx, qword [rdi + 0x30]
mov edx, dword [rax + r8 - 4]
mov eax, dword [rbx]
mov dword [rcx + rdx*4], eax
sub r9, 1
jne 0x18013a000
mov rbp, qword [rsp + 0x20]
sub r12, 1
lea rsi, [rdi + 0x160]
lea r14, [rdi + 0x178]
jns 0x180139d14
sub rbp, 1
mov qword [rsp + 0x20], rbp
js 0x18013a163
mov ebx, dword [rsp + 0x178]
jmp 0x1801398e0
movups xmm0, xmmword [rsp + 0x48]
mov eax, dword [rsp + 0x68]
lea rcx, [r13 + 0x60]
movups xmm1, xmmword [rsp + 0x58]
lea rdx, [rbx + 0x60]
movups xmmword [r13 + 4], xmm0
movups xmmword [r13 + 0x14], xmm1
mov dword [r13 + 0x24], eax
call fcn.180142470
movss xmm0, dword [rbx + 0x28]
addss xmm0, dword [r13 + 0x28]
movss dword [r13 + 0x28], xmm0
movss xmm1, dword [rbx + 0x2c]
subss xmm1, xmm10
addss xmm1, dword [r13 + 0x2c]
movss dword [r13 + 0x2c], xmm1
mov ecx, dword [rbx]
mov rax, qword [rdi + 0x48]
mov qword [rax + rcx*8], 0
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x18013a0d6
mov rax, qword [0x180192138]
test rax, rax
je 0x18013a0ce
call rax
jmp 0x18013a0d6
xor edx, edx
call qword [0x180192130]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x18013a0f7
mov rax, qword [0x180192138]
test rax, rax
je 0x18013a0ef
call rax
jmp 0x18013a0f7
xor edx, edx
call qword [0x180192130]
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x18013a118
mov rax, qword [0x180192138]
test rax, rax
je 0x18013a110
call rax
jmp 0x18013a118
xor edx, edx
call qword [0x180192130]
mov rax, qword [0x180192138]
mov rcx, rbx
test rax, rax
je 0x18013a142
call rax
mov rcx, qword [rsp + 0x40]
mov ebx, dword [rsp + 0x178]
mov rbp, rcx
mov qword [rsp + 0x20], rcx
jmp 0x1801398e0
xor edx, edx
call qword [0x180192130]
mov rcx, qword [rsp + 0x40]
mov ebx, dword [rsp + 0x178]
mov rbp, rcx
mov qword [rsp + 0x20], rcx
jmp 0x1801398e0
movaps xmm14, xmmword [rsp + 0x90]
movaps xmm13, xmmword [rsp + 0xa0]
movaps xmm12, xmmword [rsp + 0xb0]
movaps xmm11, xmmword [rsp + 0xc0]
movaps xmm10, xmmword [rsp + 0xd0]
movaps xmm9, xmmword [rsp + 0xe0]
movaps xmm8, xmmword [rsp + 0xf0]
movaps xmm7, xmmword [rsp + 0x100]
movaps xmm6, xmmword [rsp + 0x110]
mov r15, qword [rsp + 0x128]
mov r14, qword [rsp + 0x130]
mov r13, qword [rsp + 0x138]
mov r12, qword [rsp + 0x140]
mov rsi, qword [rsp + 0x148]
movaps xmm15, xmmword [rsp + 0x80]
mov edx, dword [rdi + 0x54]
xor ebx, ebx
mov rbp, qword [rsp + 0x150]
test edx, edx
jle 0x18013a277
nop dword [rax + rax]
mov r9, qword [rdi + 0x48]
mov rcx, qword [r9 + rbx*8]
test rcx, rcx
jne 0x18013a26c
test r9, r9
je 0x18013a244
cmp edx, 1
jbe 0x18013a238
mov ecx, dword [rdi + 0x50]
sub edx, ebx
lea r8d, [rdx - 1]
imul r8d, ecx
lea edx, [rbx + 1]
imul edx, ecx
imul ecx, ebx
add rdx, r9
add rcx, r9
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [rdi + 0x54]
test eax, eax
je 0x18013a244
dec eax
mov dword [rdi + 0x54], eax
mov eax, dword [rdi + 0x3c]
test eax, eax
je 0x18013a270
xor ecx, ecx
mov r8d, eax
mov rdx, qword [rdi + 0x30]
mov eax, dword [rcx + rdx]
cmp eax, ebx
jle 0x18013a260
dec eax
mov dword [rcx + rdx], eax
add rcx, 4
sub r8, 1
jne 0x18013a250
jmp 0x18013a270
mov dword [rcx], ebx
inc ebx
mov edx, dword [rdi + 0x54]
cmp ebx, edx
jl 0x18013a200
add rsp, 0x158
pop rdi
pop rbx
ret