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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
mov rax, qword [0x140054010]
xor rax, rsp
mov qword [rbp - 0x41], rax
mov r13, qword [0x1400547b0]
xor r15d, r15d
xor eax, eax
mov byte [rcx + 0x6b], 0
xorps xmm0, xmm0
mov dword [rbp - 0x49], eax
mov eax, dword [rcx]
xor sil, sil
lea r14d, [r15 + 1]
mov rbx, rcx
mov edi, r15d
mov r11d, r15d
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x59], xmm0
test eax, eax
jle 0x140038d29
mov r8d, r15d
mov rdx, qword [rbx + 8]
mov eax, dword [rbx + 0x28]
cmp dword [r8 + rdx + 8], eax
jl 0x140038cf0
cmp byte [r8 + rdx + 0x28], r15b
jne 0x140038cf0
movsxd r9, edi
cmp edi, r11d
je 0x140038c76
movups xmm0, xmmword [r8 + rdx]
imul rcx, r9, 0x2c
movups xmmword [rcx + rdx], xmm0
movups xmm1, xmmword [r8 + rdx + 0x10]
movups xmmword [rcx + rdx + 0x10], xmm1
movsd xmm0, qword [r8 + rdx + 0x20]
movsd qword [rcx + rdx + 0x20], xmm0
mov eax, dword [r8 + rdx + 0x28]
mov dword [rcx + rdx + 0x28], eax
mov rax, qword [rbx + 8]
mov ecx, r15d
imul r10, r9, 0x2c
mov rdx, r15
mov r9d, dword [r10 + rax + 4]
mov word [r10 + rax + 0x26], di
test r9b, 0x40
jne 0x140038caa
bt r9d, 7
setb cl
inc ecx
bt r9d, 7
setb dl
inc rdx
test edi, edi
jle 0x140038ce4
mov rax, qword [rbx + 8]
mov r9d, dword [r10 + rax - 0x28]
mov eax, r15d
test r9b, 0x40
jne 0x140038cc9
test r9b, 0x80
setne al
inc eax
test ecx, ecx
jne 0x140038cd5
test eax, eax
je 0x140038ce4
movzx esi, r14b
cmp eax, 2
jne 0x140038ce4
cmp ecx, eax
movzx esi, sil
cmovne esi, r14d
lea rax, [rdx + rdx*2]
inc dword [rbp + rax*4 - 0x69]
inc edi
jmp 0x140038d17
mov eax, dword [r8 + rdx]
cmp dword [rbx + 0x20], eax
jne 0x140038cfd
mov dword [rbx + 0x20], r15d
mov eax, dword [r8 + rdx]
cmp dword [rbx + 0x18], eax
jne 0x140038d0a
mov dword [rbx + 0x18], r15d
mov eax, dword [r8 + rdx]
cmp dword [rbx + 0x1c], eax
jne 0x140038d17
mov dword [rbx + 0x1c], r15d
mov eax, dword [rbx]
inc r11d
add r8, 0x2c
cmp r11d, eax
jl 0x140038c23
mov r14d, 8
cmp eax, edi
je 0x140038d5f
mov ecx, dword [rbx + 4]
cmp edi, ecx
jle 0x140038d5b
test ecx, ecx
je 0x140038d49
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140038d4c
mov eax, r14d
cmp eax, edi
mov edx, edi
mov rcx, rbx
cmovg edx, eax
call fcn.14003b910
mov dword [rbx], edi
mov eax, edi
test sil, sil
je 0x140038d84
movsxd rdx, eax
cmp rdx, 1
jbe 0x140038d84
mov rcx, qword [rbx + 8]
lea r9, [0x140038540]
mov r8d, 0x2c
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov edi, dword [rbp - 0x69]
xorps xmm9, xmm9
mov r12d, dword [rbp - 0x5d]
mov ecx, dword [rbp - 0x51]
test edi, edi
jle 0x140038da9
lea eax, [r12 + rcx]
test eax, eax
jle 0x140038da9
movss xmm0, dword [r13 + 0x384c]
jmp 0x140038dac
xorps xmm0, xmm0
movss dword [rbp - 0x61], xmm0
test r12d, r12d
jle 0x140038dc5
test ecx, ecx
jle 0x140038dc5
movss xmm12, dword [r13 + 0x384c]
jmp 0x140038dc9
xorps xmm12, xmm12
mov eax, dword [rbx + 0x1c]
movss dword [rbp - 0x55], xmm12
mov dword [rsp + 0x20], r15d
test eax, eax
je 0x140038de6
mov dword [rsp + 0x20], eax
mov dword [rbx + 0x18], eax
mov dword [rbx + 0x1c], r15d
mov edx, dword [rbx + 0x64]
test edx, edx
je 0x140038f21
mov r8d, dword [rbx]
mov eax, r15d
test r8d, r8d
jle 0x140038f1d
mov r10, qword [rbx + 8]
mov rcx, r10
cmp dword [rcx], edx
je 0x140038e1b
inc eax
add rcx, 0x2c
cmp eax, r8d
jl 0x140038e07
jmp 0x140038f1d
cdqe
imul r9, rax, 0x2c
add r9, r10
je 0x140038f1d
mov r11d, dword [r9 + 4]
test r11b, 0x20
jne 0x140038f1d
movsx esi, word [rbx + 0x68]
mov rcx, r9
mov rdi, qword [rbx + 8]
movabs rax, 0x2e8ba2e8ba2e8ba3
sub rcx, rdi
mov r10d, esi
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
add edx, esi
js 0x140038f1a
cmp edx, r8d
jge 0x140038f1a
movsxd rax, edx
imul rcx, rax, 0x2c
add rdi, rcx
mov eax, dword [rdi + 4]
test al, 0x20
jne 0x140038f1a
xor eax, r11d
test al, 0xc0
jne 0x140038f1a
movups xmm6, xmmword [r9]
mov r15d, dword [r9 + 0x28]
test si, si
movups xmm7, xmmword [r9 + 0x10]
lea rdx, [r9 + 0x2c]
movsd xmm8, qword [r9 + 0x20]
lea rax, [rdi + 0x2c]
cmovle rdx, rdi
cmovle r9, rax
jg 0x140038ec0
neg r10d
movsxd rax, r10d
mov rcx, r9
imul r8, rax, 0x2c
call sub.VCRUNTIME140.dll_memmove
movups xmmword [rdi], xmm6
movups xmmword [rdi + 0x10], xmm7
movsd qword [rdi + 0x20], xmm8
mov dword [rdi + 0x28], r15d
test dword [rbx + 0x10], 0x400000
je 0x140038f03
mov rcx, qword [0x1400547b0]
comiss xmm9, dword [rcx + 0x537c]
jb 0x140038f03
mov eax, dword [rcx + 0x1c]
mov dword [rcx + 0x537c], eax
mov r15d, dword [rsp + 0x20]
mov eax, dword [rbx + 0x64]
cmp eax, dword [rbx + 0x18]
cmove r15d, eax
mov dword [rsp + 0x20], r15d
xor r15d, r15d
mov edi, dword [rbp - 0x69]
mov dword [rbx + 0x64], r15d
mov eax, dword [rbx + 0x10]
shr eax, 2
test al, 1
je 0x140038f41
mov rcx, rbx
call fcn.140039fb0
test rax, rax
je 0x140038f41
mov ecx, dword [rax]
mov dword [rsp + 0x20], ecx
mov dword [rbx + 0x18], ecx
mov eax, dword [rbp - 0x51]
mov esi, dword [rbx]
add eax, edi
mov ecx, dword [r13 + 0x43b4]
mov dword [rsp + 0x38], r15d
mov dword [rbp - 0x7d], eax
mov dword [rbp - 0x79], edi
cmp esi, ecx
jle 0x140038ffa
test ecx, ecx
je 0x140038f71
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea r14d, [rcx + rax]
cmp r14d, esi
mov edi, esi
cmovg edi, r14d
cmp edi, ecx
jle 0x140038ffa
mov rax, qword [0x1400547b0]
test rax, rax
je 0x140038f94
inc dword [rax + 0xec]
movsxd rax, edi
lea rcx, [rax + rax*2]
shl rcx, 2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, qword [r13 + 0x43b8]
mov r15, rax
test r14, r14
je 0x140038fe9
movsxd rcx, dword [r13 + 0x43b0]
mov rdx, r14
lea r8, [rcx + rcx*2]
mov rcx, rax
shl r8, 2
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [0x1400547b0]
test rax, rax
je 0x140038fe0
dec dword [rax + 0xec]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [r13 + 0x43b8], r15
xor r15d, r15d
mov dword [r13 + 0x43b4], edi
xor dl, dl
mov dword [r13 + 0x43b0], esi
mov eax, dword [rbx]
mov rcx, r15
mov qword [rsp + 0x30], rcx
mov r14d, 0xffffffff
mov dword [rsp + 0x28], edx
test eax, eax
jle 0x14003914c
xor esi, esi
lea r12d, [r14 + 2]
nop word [rax + rax]
mov rdi, qword [rbx + 8]
add rdi, rsi
test rcx, rcx
je 0x140039044
mov eax, dword [rdi + 0xc]
cmp dword [rcx + 0xc], eax
jge 0x140039054
test dword [rdi + 4], 0x200000
cmove rcx, rdi
mov qword [rsp + 0x30], rcx
mov eax, dword [rdi]
cmp eax, dword [rbx + 0x18]
mov ecx, dword [rsp + 0x20]
movzx edx, dl
cmove edx, r12d
mov dword [rsp + 0x28], edx
test ecx, ecx
jne 0x14003907a
cmp dword [r13 + 0x40dc], eax
cmove ecx, eax
mov dword [rsp + 0x20], ecx
mov eax, dword [rdi + 4]
movss xmm0, dword [rdi + 0x1c]
shr eax, 0x14
not al
and al, r12b
comiss xmm0, xmm9
ja 0x1400390ac
movsxd rdx, dword [rdi + 0x20]
lea rcx, [rbp - 0x71]
add rdx, qword [rbx + 0x90]
movzx r8d, al
call fcn.14003ad50
movss xmm0, dword [rax]
mov eax, dword [rdi + 4]
movss dword [rdi + 0x18], xmm0
test al, 0x40
je 0x1400390bc
xor eax, eax
jmp 0x1400390c8
test al, 0x80
mov eax, 0
setne al
inc eax
mov edx, eax
lea rcx, [rax + rax*2]
cmp eax, r14d
jne 0x1400390de
movss xmm1, dword [r13 + 0x384c]
jmp 0x1400390e2
movaps xmm1, xmm9
mov r14d, eax
addss xmm0, xmm1
add rsi, 0x2c
addss xmm0, dword [rbp + rcx*4 - 0x65]
movss dword [rbp + rcx*4 - 0x65], xmm0
movsxd rcx, dword [rsp + rax*4 + 0x38]
lea eax, [rcx + 1]
mov dword [rsp + rdx*4 + 0x38], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r13 + 0x43b8]
mov edx, dword [rsp + 0x28]
mov dword [rax + rcx*4], r15d
inc r15d
movss xmm0, dword [rdi + 0x18]
movss dword [rax + rcx*4 + 8], xmm0
movss dword [rax + rcx*4 + 4], xmm0
mov eax, dword [rdi + 0x18]
mov rcx, qword [rsp + 0x30]
mov dword [rdi + 0x14], eax
mov eax, dword [rbx]
cmp r15d, eax
jl 0x140039030
movss xmm12, dword [rbp - 0x55]
mov r12d, dword [rbp - 0x5d]
movss xmm10, dword [rbp - 0x65]
movss xmm6, dword [rbp - 0x59]
movaps xmm7, xmm10
addss xmm7, dword [rbp - 0x61]
movss xmm11, dword [rbp - 0x4d]
addss xmm6, xmm12
movaps xmm8, xmm11
addss xmm8, dword [rbp - 0x49]
movaps xmm1, xmm7
addss xmm1, xmm9
addss xmm1, xmm6
addss xmm1, xmm8
movss dword [rbx + 0x48], xmm1
movss xmm0, dword [rbx + 0x34]
subss xmm0, dword [rbx + 0x2c]
comiss xmm1, xmm0
jbe 0x1400391c9
cmp eax, 1
jle 0x1400391c9
mov eax, dword [rbx + 0x10]
test al, 0x10
jne 0x1400391c9
test al, al
jns 0x1400391c9
mov rcx, rbx
call fcn.140039c50
test rax, rax
je 0x1400391c9
test dword [rax + 4], 0x200000
mov ecx, dword [rax]
mov dword [rsp + 0x20], ecx
jne 0x1400391c9
mov dword [rbx + 0x18], ecx
movss xmm0, dword [rbx + 0x34]
movaps xmm1, xmm8
subss xmm0, dword [rbx + 0x2c]
addss xmm1, xmm7
comiss xmm0, xmm1
seta al
test al, al
je 0x1400391f9
subss xmm0, xmm7
subss xmm0, xmm8
subss xmm6, xmm0
maxss xmm6, xmm9
jmp 0x140039200
movaps xmm6, xmm1
subss xmm6, xmm0
comiss xmm6, xmm9
jbe 0x1400394be
test byte [rbx + 0x10], 0x40
jne 0x14003922d
test al, al
jne 0x1400394be
mov r12d, dword [rbp - 0x51]
mov edx, dword [rbp - 0x69]
add r12d, edx
test al, al
je 0x14003923b
mov esi, dword [rbp - 0x51]
add esi, edx
jmp 0x14003923d
test al, al
je 0x140039218
mov esi, dword [rbp - 0x51]
mov edx, dword [rbp - 0x69]
add esi, edx
jmp 0x14003923d
xor esi, esi
mov rcx, qword [r13 + 0x43b8]
movaps xmm2, xmm6
movsxd r14, esi
mov edx, r12d
lea rax, [r14 + r14*2]
lea rdi, [rax*4]
add rcx, rdi
call fcn.14002fee0
lea eax, [rsi + r12]
movsxd r9, eax
cmp r14, r9
jge 0x1400394be
mov rax, r9
sub rax, r14
cmp rax, 4
jl 0x140039436
mov r8, r9
sub r8, r14
sub r8, 4
shr r8, 2
inc r8
lea r14, [r14 + r8*4]
nop word [rax + rax]
mov rcx, qword [r13 + 0x43b8]
movsxd rax, dword [rdi + rcx]
imul rdx, rax, 0x2c
cvttss2si eax, dword [rdi + rcx + 4]
add rdx, qword [rbx + 8]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm9, xmm2
ja 0x140039300
mov eax, dword [rdx + 4]
test al, 0x40
je 0x1400392d1
xor eax, eax
jmp 0x1400392de
test al, 0x80
mov eax, 0
setne al
inc rax
movss xmm1, dword [rdx + 0x14]
lea rax, [rax + rax*2]
movss xmm0, dword [rbp + rax*4 - 0x65]
subss xmm1, xmm2
movss dword [rdx + 0x14], xmm2
subss xmm0, xmm1
movss dword [rbp + rax*4 - 0x65], xmm0
mov rcx, qword [r13 + 0x43b8]
movsxd rax, dword [rdi + rcx + 0xc]
imul rdx, rax, 0x2c
cvttss2si eax, dword [rdi + rcx + 0x10]
add rdx, qword [rbx + 8]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm9, xmm2
ja 0x140039361
mov eax, dword [rdx + 4]
test al, 0x40
je 0x140039332
xor eax, eax
jmp 0x14003933f
test al, 0x80
mov eax, 0
setne al
inc rax
movss xmm1, dword [rdx + 0x14]
lea rax, [rax + rax*2]
movss xmm0, dword [rbp + rax*4 - 0x65]
subss xmm1, xmm2
movss dword [rdx + 0x14], xmm2
subss xmm0, xmm1
movss dword [rbp + rax*4 - 0x65], xmm0
mov rcx, qword [r13 + 0x43b8]
movsxd rax, dword [rdi + rcx + 0x18]
imul rdx, rax, 0x2c
cvttss2si eax, dword [rcx + rdi + 0x1c]
add rdx, qword [rbx + 8]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm9, xmm2
ja 0x1400393c2
mov eax, dword [rdx + 4]
test al, 0x40
je 0x140039393
xor eax, eax
jmp 0x1400393a0
test al, 0x80
mov eax, 0
setne al
inc rax
movss xmm1, dword [rdx + 0x14]
lea rax, [rax + rax*2]
movss xmm0, dword [rbp + rax*4 - 0x65]
subss xmm1, xmm2
movss dword [rdx + 0x14], xmm2
subss xmm0, xmm1
movss dword [rbp + rax*4 - 0x65], xmm0
mov rcx, qword [r13 + 0x43b8]
movsxd rax, dword [rdi + rcx + 0x24]
imul rdx, rax, 0x2c
cvttss2si eax, dword [rcx + rdi + 0x28]
add rdx, qword [rbx + 8]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm9, xmm2
ja 0x140039423
mov eax, dword [rdx + 4]
test al, 0x40
je 0x1400393f4
xor eax, eax
jmp 0x140039401
test al, 0x80
mov eax, 0
setne al
inc rax
movss xmm1, dword [rdx + 0x14]
lea rax, [rax + rax*2]
movss xmm0, dword [rbp + rax*4 - 0x65]
subss xmm1, xmm2
movss dword [rdx + 0x14], xmm2
subss xmm0, xmm1
movss dword [rbp + rax*4 - 0x65], xmm0
add rdi, 0x30
sub r8, 1
jne 0x1400392a0
cmp r14, r9
jge 0x1400394ac
lea r8, [r14 + r14*2]
shl r8, 2
sub r9, r14
mov rcx, qword [r13 + 0x43b8]
movsxd rax, dword [r8 + rcx]
imul rdx, rax, 0x2c
cvttss2si eax, dword [r8 + rcx + 4]
add rdx, qword [rbx + 8]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm9, xmm2
ja 0x1400394a2
mov eax, dword [rdx + 4]
test al, 0x40
je 0x140039473
xor eax, eax
jmp 0x140039480
test al, 0x80
mov eax, 0
setne al
inc rax
movss xmm1, dword [rdx + 0x14]
lea rax, [rax + rax*2]
movss xmm0, dword [rbp + rax*4 - 0x65]
subss xmm1, xmm2
movss dword [rdx + 0x14], xmm2
subss xmm0, xmm1
movss dword [rbp + rax*4 - 0x65], xmm0
add r8, 0xc
sub r9, 1
jne 0x140039441
movss xmm10, dword [rbp - 0x65]
movss xmm12, dword [rbp - 0x55]
movss xmm11, dword [rbp - 0x4d]
xor r11d, r11d
movaps xmm2, xmm9
mov dword [rsp + 0x24], r11d
xor r12d, r12d
mov dword [rbx + 0x44], r11d
nop dword [rax]
nop word [rax + rax]
lea rdx, [r12 + r12*2]
lea rsi, [rbp - 0x65]
lea rsi, [rsi + rdx*4]
cmp r12, 2
jne 0x14003950f
movss xmm1, dword [rbx + 0x34]
movaps xmm0, xmm9
subss xmm1, dword [rbx + 0x2c]
subss xmm1, dword [rsi]
maxss xmm0, xmm1
minss xmm0, xmm2
movaps xmm2, xmm0
movsxd r9, dword [rbp + rdx*4 - 0x69]
xor r8d, r8d
xor r14d, r14d
movsxd r15, r11d
mov rdi, r9
cmp r9, 4
jl 0x140039627
lea r11, [rdi - 4]
shr r11, 2
lea r10d, [r9 - 1]
imul rcx, r15, 0x2c
inc r11
lea r9d, [r8 + 2]
lea r14, [r11*4]
nop dword [rax]
mov rax, qword [rbx + 8]
movss dword [rcx + rax + 0x10], xmm2
cmp r8d, r10d
jge 0x14003956a
movss xmm0, dword [r13 + 0x384c]
jmp 0x14003956e
movaps xmm0, xmm9
addss xmm0, dword [rcx + rax + 0x14]
mov rdx, qword [rbx + 8]
lea eax, [r9 - 1]
addss xmm2, xmm0
movss dword [rcx + rdx + 0x3c], xmm2
cmp eax, r10d
jge 0x140039596
movss xmm0, dword [r13 + 0x384c]
jmp 0x14003959a
movaps xmm0, xmm9
mov rax, qword [rbx + 8]
addss xmm0, dword [rcx + rdx + 0x40]
addss xmm2, xmm0
movss dword [rcx + rax + 0x68], xmm2
cmp r9d, r10d
jge 0x1400395be
movss xmm0, dword [r13 + 0x384c]
jmp 0x1400395c2
movaps xmm0, xmm9
addss xmm0, dword [rcx + rax + 0x6c]
mov rdx, qword [rbx + 8]
lea eax, [r9 + 1]
addss xmm2, xmm0
movss dword [rcx + rdx + 0x94], xmm2
cmp eax, r10d
jge 0x1400395ed
movss xmm0, dword [r13 + 0x384c]
jmp 0x1400395f1
movaps xmm0, xmm9
addss xmm0, dword [rcx + rdx + 0x98]
add r8d, 4
add r9d, 4
add rcx, 0xb0
addss xmm2, xmm0
sub r11, 1
jne 0x140039550
mov r11d, dword [rsp + 0x24]
lea rdx, [r12 + r12*2]
cmp r14, rdi
jl 0x140039630
jmp 0x140039678
test r9d, r9d
jle 0x140039678
lea r10d, [r9 - 1]
lea rax, [r14 + r15]
imul rcx, rax, 0x2c
sub rdi, r14
mov rax, qword [rbx + 8]
movss dword [rcx + rax + 0x10], xmm2
cmp r8d, r10d
jge 0x140039655
movss xmm0, dword [r13 + 0x384c]
jmp 0x140039659
movaps xmm0, xmm9
addss xmm0, dword [rcx + rax + 0x14]
inc r8d
add rcx, 0x2c
addss xmm2, xmm0
sub rdi, 1
jne 0x14003963b
lea rsi, [rbp - 0x65]
lea rsi, [rsi + rdx*4]
movss xmm1, dword [rbp + rdx*4 - 0x61]
inc r12
add r11d, dword [rbp + rdx*4 - 0x69]
addss xmm2, xmm1
mov dword [rsp + 0x24], r11d
movaps xmm0, xmm1
addss xmm0, dword [rsi]
maxss xmm0, xmm9
addss xmm0, dword [rbx + 0x44]
movss dword [rbx + 0x44], xmm0
cmp r12, 3
jl 0x1400394e0
cmp byte [rsp + 0x28], 0
jne 0x1400396bd
mov dword [rbx + 0x18], 0
mov ecx, dword [rbx + 0x18]
mov eax, ecx
test ecx, ecx
jne 0x1400396de
cmp dword [rbx + 0x1c], ecx
jne 0x1400396de
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400396de
mov edx, dword [rcx]
mov eax, edx
mov dword [rbx + 0x18], edx
jmp 0x1400396e2
mov edx, dword [rsp + 0x20]
mov dword [rbx + 0x20], eax
mov byte [rbx + 0x6c], 0
test edx, edx
je 0x140039816
mov r8d, dword [rbx]
xor eax, eax
test r8d, r8d
jle 0x140039816
mov r9, qword [rbx + 8]
mov rcx, r9
cmp dword [rcx], edx
je 0x14003971a
inc eax
add rcx, 0x2c
cmp eax, r8d
jl 0x140039706
jmp 0x140039816
movsxd rcx, eax
imul rdx, rcx, 0x2c
add r9, rdx
je 0x140039816
test byte [r9 + 4], 0xc0
jne 0x140039816
movss xmm3, dword [rbx + 0x34]
movabs rax, 0x2e8ba2e8ba2e8ba3
subss xmm3, dword [rbx + 0x2c]
mov rcx, qword [0x1400547b0]
imul rdx
movss xmm0, dword [rcx + 0x3c18]
subss xmm3, xmm10
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
subss xmm3, xmm11
add rdx, rax
mov eax, dword [rbp - 0x69]
dec eax
subss xmm3, xmm12
cmp edx, eax
jle 0x14003978d
movaps xmm1, xmm0
xorps xmm1, xmmword [0x14004c4f0]
jmp 0x140039791
movaps xmm1, xmm9
movss xmm2, dword [r9 + 0x10]
lea eax, [rdx + 1]
sub r8d, dword [rbp - 0x51]
subss xmm2, xmm10
addss xmm1, xmm2
cmp eax, r8d
jl 0x1400397b4
movss xmm0, dword [0x14004bfc8]
addss xmm2, dword [r9 + 0x14]
movss xmm4, dword [rbx + 0x50]
comiss xmm4, xmm1
mov dword [rbx + 0x54], 0
addss xmm2, xmm0
ja 0x1400397fe
movaps xmm0, xmm2
subss xmm0, xmm1
comiss xmm0, xmm3
jae 0x1400397fe
subss xmm2, xmm3
comiss xmm2, xmm4
jbe 0x140039816
subss xmm1, xmm3
movss dword [rbx + 0x50], xmm2
subss xmm1, dword [rbx + 0x4c]
maxss xmm1, xmm9
movss dword [rbx + 0x54], xmm1
jmp 0x140039816
movss xmm0, dword [rbx + 0x4c]
subss xmm0, xmm2
movss dword [rbx + 0x50], xmm1
maxss xmm0, xmm9
movss dword [rbx + 0x54], xmm0
movss xmm6, dword [rbx + 0x2c]
movss xmm0, dword [rbx + 0x34]
movss xmm2, dword [rbx + 0x44]
subss xmm0, xmm6
movss xmm3, dword [rbx + 0x4c]
movaps xmm1, xmm2
movss xmm4, dword [rbx + 0x50]
subss xmm1, xmm0
minss xmm3, xmm1
maxss xmm3, xmm9
movss dword [rbx + 0x4c], xmm3
movss xmm5, dword [rbx + 0x34]
movaps xmm0, xmm5
subss xmm0, xmm6
subss xmm2, xmm0
minss xmm4, xmm2
maxss xmm4, xmm9
ucomiss xmm3, xmm4
movss dword [rbx + 0x50], xmm4
jp 0x140039879
jne 0x140039879
mov dword [rbx + 0x58], 0
jmp 0x140039907
movss xmm0, dword [r13 + 0x3c18]
movaps xmm1, xmm4
movss xmm2, dword [rbx + 0x58]
subss xmm1, xmm3
mulss xmm0, dword [0x14004c0b8]
mov eax, dword [rbx + 0x28]
inc eax
andps xmm1, xmmword [0x14004c4e0]
maxss xmm2, xmm0
divss xmm1, dword [0x14004bf80]
maxss xmm2, xmm1
movss dword [rbx + 0x58], xmm2
cmp eax, dword [r13 + 0x3e28]
jl 0x1400398ff
movss xmm1, dword [r13 + 0x3c18]
mulss xmm1, dword [0x14004c078]
movss xmm0, dword [rbx + 0x54]
comiss xmm0, xmm1
ja 0x1400398ff
comiss xmm4, xmm3
mulss xmm2, dword [r13 + 0x18]
jbe 0x1400398f0
addss xmm3, xmm2
minss xmm3, xmm4
jmp 0x140039902
comiss xmm3, xmm4
jbe 0x140039902
subss xmm3, xmm2
maxss xmm3, xmm4
jmp 0x140039902
movaps xmm3, xmm4
movss dword [rbx + 0x4c], xmm3
test dword [rbx + 0x10], 0x100000
addss xmm10, xmm6
subss xmm5, xmm11
addss xmm10, dword [rbp - 0x61]
subss xmm5, xmm12
movss dword [rbx + 0x5c], xmm10
movss dword [rbx + 0x60], xmm5
jne 0x140039960
mov ecx, dword [rbx + 0x8c]
test ecx, ecx
jns 0x140039956
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x88]
test eax, eax
cmovg edx, eax
call fcn.1400190d0
mov dword [rbx + 0x88], 0
movsd xmm0, qword [rbx + 0x2c]
lea rcx, [rsp + 0x30]
mov r9, qword [r13 + 0x3ea8]
movsd qword [r9 + 0xe0], xmm0
movss xmm1, dword [rbx + 0x44]
movss xmm0, dword [rbx + 0x38]
subss xmm0, dword [rbx + 0x30]
movss dword [rsp + 0x30], xmm1
movss xmm1, dword [rbx + 0x7c]
movss dword [rsp + 0x34], xmm0
call fcn.140010eb0
movss xmm1, dword [rbx + 0x48]
addss xmm1, dword [rbx + 0x2c]
movss xmm0, dword [r9 + 0x100]
maxss xmm0, xmm1
movss dword [r9 + 0x100], xmm0
mov rcx, qword [rbp - 0x41]
xor rcx, rsp
call fcn.140044150
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret