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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
mov eax, dword [0x10054040]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [0x10055178]
xorps xmm0, xmm0
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], eax
xor esi, esi
mov dword [esp + 0x5c], edi
mov byte [esp + 0x24], 0
movaps xmmword [esp + 0x80], xmm0
mov eax, dword [edi]
mov byte [edi + 0x67], 0
movaps xmmword [esp + 0x90], xmm0
mov dword [esp + 0xa0], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x3c], 1
test eax, eax
jle 0x10038440
mov dword [esp + 0x18], esi
xor edx, edx
nop dword [eax]
mov ecx, dword [edi + 8]
mov eax, dword [ecx + edx + 8]
cmp eax, dword [edi + 0x24]
jl 0x100383fd
cmp byte [ecx + edx + 0x28], 0
jne 0x100383fd
cmp esi, dword [esp + 0x14]
je 0x1003837f
mov edi, dword [esp + 0x18]
movups xmm0, xmmword [ecx + edx]
mov eax, dword [ecx + edx + 0x28]
movups xmm1, xmmword [ecx + edx + 0x10]
movq xmm2, qword [ecx + edx + 0x20]
movups xmmword [ecx + edi], xmm0
movups xmmword [ecx + edi + 0x10], xmm1
movq qword [ecx + edi + 0x20], xmm2
mov dword [ecx + edi + 0x28], eax
mov edi, dword [esp + 0x5c]
mov eax, dword [edi + 8]
add eax, dword [esp + 0x18]
mov word [eax + 0x26], si
mov eax, dword [eax + 4]
test al, 0x40
je 0x10038395
xor ecx, ecx
jmp 0x100383a0
test al, 0x80
mov ecx, 0
setne cl
inc ecx
test esi, esi
jle 0x100383eb
mov eax, dword [edi + 8]
mov edi, dword [esp + 0x18]
mov eax, dword [eax + edi - 0x28]
test al, 0x40
je 0x100383b7
xor eax, eax
jmp 0x100383c2
test al, 0x80
mov eax, 0
setne al
inc eax
mov edi, dword [esp + 0x5c]
test ecx, ecx
jne 0x100383d3
test eax, eax
je 0x100383eb
mov byte [esp + 0x24], 1
cmp eax, 2
jne 0x100383eb
mov eax, dword [esp + 0x24]
cmp ecx, 2
movzx eax, al
cmovne eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
lea eax, [ecx + ecx*2]
inc esi
inc dword [esp + eax*4 + 0x80]
add dword [esp + 0x18], 0x2c
jmp 0x1003842a
mov eax, dword [edi + 0x1c]
cmp eax, dword [ecx + edx]
jne 0x1003840c
mov dword [edi + 0x1c], 0
mov eax, dword [edi + 0x14]
cmp eax, dword [ecx + edx]
jne 0x1003841b
mov dword [edi + 0x14], 0
mov eax, dword [edi + 0x18]
cmp eax, dword [ecx + edx]
jne 0x1003842a
mov dword [edi + 0x18], 0
mov ecx, dword [esp + 0x14]
add edx, 0x2c
mov eax, dword [edi]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, eax
jl 0x10038330
cmp eax, esi
je 0x10038473
mov eax, dword [edi + 4]
cmp esi, eax
jle 0x1003846f
test eax, eax
je 0x1003845b
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [edi + 4]
jmp 0x10038460
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, edi
push eax
call fcn.1003ad30
mov dword [edi], esi
mov eax, esi
cmp byte [esp + 0x24], 0
je 0x10038493
cmp eax, 1
jbe 0x10038493
push 0x10037c50
push 0x2c
push eax
push dword [edi + 8]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
add esp, 0x10
cmp dword [esp + 0x80], 0
jle 0x100384bd
mov eax, dword [esp + 0x8c]
add eax, dword [esp + 0x98]
test eax, eax
jle 0x100384bd
mov eax, dword [esp + 0x1c]
movss xmm1, dword [eax + 0x37ec]
jmp 0x100384c4
mov eax, dword [esp + 0x1c]
xorps xmm1, xmm1
cmp dword [esp + 0x8c], 0
xorps xmm0, xmm0
movss dword [esp + 0x88], xmm1
jle 0x100384ec
cmp dword [esp + 0x98], 0
jle 0x100384ec
movss xmm0, dword [eax + 0x37ec]
xor eax, eax
movss dword [esp + 0x94], xmm0
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10038510
mov dword [esp + 0x18], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0
mov ecx, dword [edi + 0x60]
test ecx, ecx
je 0x1003865d
mov edx, dword [edi]
xor eax, eax
test edx, edx
jle 0x10038656
mov esi, dword [edi + 8]
nop word [eax + eax]
cmp dword [esi], ecx
je 0x10038541
inc eax
add esi, 0x2c
cmp eax, edx
jl 0x10038530
jmp 0x10038656
test esi, esi
je 0x10038656
test byte [esi + 4], 0x20
jne 0x10038656
movzx eax, word [edi + 0x64]
mov ecx, esi
sub ecx, dword [edi + 8]
mov dword [esp + 0x2c], eax
mov eax, 0x2e8ba2e9
imul ecx
movzx eax, word [edi + 0x64]
sar edx, 3
mov ecx, edx
cwde
shr ecx, 0x1f
add ecx, edx
add ecx, eax
js 0x10038656
cmp ecx, dword [edi]
jge 0x10038656
imul eax, ecx, 0x2c
add eax, dword [edi + 8]
mov dword [esp + 0x20], eax
mov edx, dword [eax + 4]
test dl, 0x20
jne 0x10038656
mov ecx, dword [esi + 4]
xor ecx, edx
test cl, 0xc0
jne 0x10038656
movups xmm0, xmmword [esi]
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x30], ecx
movzx ecx, word [edi + 0x64]
movaps xmmword [esp + 0x60], xmm0
movups xmm0, xmmword [esi + 0x10]
movaps xmmword [esp + 0x70], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [esp + 0x40], xmm0
test cx, cx
jle 0x100385e0
mov eax, dword [esp + 0x2c]
lea ecx, [esi + 0x2c]
cwde
jmp 0x100385ec
mov ecx, eax
lea esi, [eax + 0x2c]
mov eax, dword [esp + 0x2c]
cwde
neg eax
imul eax, eax, 0x2c
push eax
push ecx
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0x2c]
add esp, 0xc
movaps xmm0, xmmword [esp + 0x60]
mov ecx, dword [esp + 0x30]
movups xmmword [eax], xmm0
movaps xmm0, xmmword [esp + 0x70]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [esp + 0x40]
movq qword [eax + 0x20], xmm0
mov dword [eax + 0x28], ecx
test dword [edi + 0xc], 0x400000
je 0x10038645
mov ecx, dword [0x10055178]
xorps xmm0, xmm0
comiss xmm0, dword [ecx + 0x5208]
jb 0x10038645
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x5208], eax
mov eax, dword [edi + 0x60]
mov ecx, dword [esp + 0x18]
cmp eax, dword [edi + 0x14]
cmove ecx, eax
mov dword [esp + 0x18], ecx
mov dword [edi + 0x60], 0
mov eax, dword [edi + 0xc]
shr eax, 2
test al, 1
je 0x1003867b
mov ecx, edi
call fcn.10039360
test eax, eax
je 0x1003867b
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov dword [edi + 0x14], eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x98]
mov esi, dword [edi]
add eax, ecx
mov dword [esp + 0x68], ecx
mov ecx, dword [edx + 0x426c]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x14], esi
cmp esi, ecx
jle 0x10038765
test ecx, ecx
je 0x100386c6
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
add eax, ecx
jmp 0x100386cb
mov eax, 8
cmp eax, dword [esp + 0x14]
cmovg esi, eax
cmp esi, ecx
jle 0x10038761
mov eax, dword [0x10055178]
test eax, eax
je 0x100386e9
inc dword [eax + 0xb0]
lea eax, [esi + esi*2]
shl eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x20], eax
cmp dword [edx + 0x4270], 0
je 0x10038755
mov ecx, dword [edx + 0x4268]
lea ecx, [ecx + ecx*2]
shl ecx, 2
push ecx
push dword [edx + 0x4270]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [ecx + 0x4270]
test ecx, ecx
je 0x10038743
mov eax, dword [0x10055178]
test eax, eax
je 0x10038743
dec dword [eax + 0xb0]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, dword [esp + 0x20]
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [edx + 0x4270], eax
mov dword [edx + 0x426c], esi
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [edx + 0x4268], esi
mov eax, dword [edi]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], 0xffffffff
mov byte [esp + 0x30], cl
mov dword [esp + 0x14], ecx
test eax, eax
jle 0x100388b9
xor eax, eax
mov dword [esp + 0x24], eax
jmp 0x10038797
mov eax, dword [esp + 0x24]
mov esi, dword [edi + 8]
add esi, eax
test ecx, ecx
je 0x100387a8
mov eax, dword [ecx + 0xc]
cmp eax, dword [esi + 0xc]
jge 0x100387b6
test dword [esi + 4], 0x200000
cmove ecx, esi
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esi]
cmp ecx, dword [edi + 0x14]
movzx eax, al
cmove eax, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x100387e0
cmp dword [edx + 0x3fec], ecx
cmove eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
xorps xmm0, xmm0
movss xmm1, dword [esi + 0x1c]
shr eax, 0x14
not al
and al, 1
comiss xmm1, xmm0
mov byte [esp + 0x40], al
ja 0x1003881b
mov edx, dword [edi + 0x8c]
lea ecx, [esp + 0x70]
push dword [esp + 0x40]
add edx, dword [esi + 0x20]
call fcn.1003a1e0
add esp, 4
xorps xmm0, xmm0
movss xmm1, dword [eax]
mov eax, dword [esi + 4]
movss dword [esi + 0x18], xmm1
test al, 0x40
je 0x1003882b
xor edx, edx
jmp 0x10038836
test al, 0x80
mov edx, 0
setne dl
inc edx
lea eax, [edx + edx*2]
cmp edx, dword [esp + 0x20]
jne 0x1003884b
mov ecx, dword [esp + 0x1c]
movss xmm0, dword [ecx + 0x37ec]
mov ecx, dword [esp + edx*4 + 0x60]
addss xmm1, xmm0
mov edi, dword [esp + 0x14]
add dword [esp + 0x24], 0x2c
mov dword [esp + 0x20], edx
addss xmm1, dword [esp + eax*4 + 0x84]
movss dword [esp + eax*4 + 0x84], xmm1
lea eax, [ecx + 1]
mov dword [esp + edx*4 + 0x60], eax
lea ecx, [ecx + ecx*2]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x4270]
mov dword [eax + ecx*4], edi
movss xmm0, dword [esi + 0x18]
movss dword [eax + ecx*4 + 8], xmm0
movss dword [eax + ecx*4 + 4], xmm0
mov ecx, edi
mov edi, dword [esp + 0x5c]
inc ecx
mov eax, dword [esi + 0x18]
mov dword [esi + 0x14], eax
mov dword [esp + 0x14], ecx
mov eax, dword [edi]
cmp ecx, eax
mov ecx, dword [esp + 0x2c]
jl 0x10038793
movss xmm1, dword [esp + 0x84]
xorps xmm4, xmm4
addss xmm1, dword [esp + 0x88]
movss xmm0, dword [esp + 0x90]
addss xmm0, dword [esp + 0x94]
addss xmm1, xmm4
addss xmm1, xmm0
movss xmm0, dword [esp + 0x9c]
addss xmm0, dword [esp + 0xa0]
addss xmm1, xmm0
movss dword [edi + 0x44], xmm1
movss xmm0, dword [edi + 0x30]
subss xmm0, dword [edi + 0x28]
comiss xmm1, xmm0
jbe 0x10038944
cmp eax, 1
jle 0x10038944
mov eax, dword [edi + 0xc]
test al, 0x10
jne 0x10038944
test al, al
jns 0x10038944
mov ecx, edi
call fcn.100390d0
mov ecx, eax
xorps xmm4, xmm4
test ecx, ecx
je 0x10038944
test dword [ecx + 4], 0x200000
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
jne 0x10038944
mov dword [edi + 0x14], eax
movss xmm3, dword [esp + 0x9c]
movss xmm1, dword [esp + 0x84]
addss xmm3, dword [esp + 0xa0]
addss xmm1, dword [esp + 0x88]
movss xmm0, dword [edi + 0x30]
subss xmm0, dword [edi + 0x28]
movaps xmm2, xmm3
addss xmm2, xmm1
comiss xmm0, xmm2
seta al
mov byte [esp + 0x2b], al
test al, al
je 0x100389ab
movss xmm2, dword [esp + 0x90]
subss xmm0, xmm1
addss xmm2, dword [esp + 0x94]
subss xmm0, xmm3
subss xmm2, xmm0
maxss xmm2, xmm4
jmp 0x100389af
subss xmm2, xmm0
comiss xmm2, xmm4
jbe 0x10038aba
test byte [edi + 0xc], 0x40
jne 0x100389f3
test al, al
jne 0x10038aba
mov edx, dword [esp + 0x98]
add edx, dword [esp + 0x80]
cmp byte [esp + 0x2b], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], edx
je 0x10038a16
mov eax, dword [esp + 0x98]
add eax, dword [esp + 0x80]
jmp 0x10038a1c
test al, al
je 0x100389c6
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x98]
add eax, dword [esp + 0x80]
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], edx
jmp 0x10038a1c
xor eax, eax
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x1c]
lea esi, [eax + eax*2]
shl esi, 2
mov dword [esp + 0x20], eax
mov ecx, dword [ecx + 0x4270]
add ecx, esi
call fcn.1002ec50
mov eax, dword [esp + 0x14]
xorps xmm4, xmm4
add eax, dword [esp + 0x20]
cmp dword [esp + 0x20], eax
jge 0x10038aba
nop dword [eax + eax]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x4270]
imul ecx, dword [esi + eax], 0x2c
cvttss2si eax, dword [esi + eax + 4]
add ecx, dword [edi + 8]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm4, xmm2
ja 0x10038ab0
mov eax, dword [ecx + 4]
test al, 0x40
je 0x10038a7e
xor eax, eax
jmp 0x10038a89
test al, 0x80
mov eax, 0
setne al
inc eax
movss xmm1, dword [ecx + 0x14]
lea eax, [eax + eax*2]
movss xmm0, dword [esp + eax*4 + 0x84]
subss xmm1, xmm2
subss xmm0, xmm1
movss dword [esp + eax*4 + 0x84], xmm0
movss dword [ecx + 0x14], xmm2
add esi, 0xc
sub dword [esp + 0x24], 1
jne 0x10038a50
xor ecx, ecx
mov dword [esp + 0x14], 0
movaps xmm2, xmm4
mov dword [edi + 0x40], 0
mov dword [esp + 0x3c], ecx
lea eax, [ecx + ecx*2]
mov dword [esp + 0x20], eax
cmp ecx, 2
jne 0x10038aff
movss xmm1, dword [edi + 0x30]
movaps xmm0, xmm4
subss xmm1, dword [edi + 0x28]
subss xmm1, dword [esp + eax*4 + 0x84]
maxss xmm0, xmm1
minss xmm0, xmm2
movaps xmm2, xmm0
mov esi, dword [esp + eax*4 + 0x80]
xor edx, edx
test esi, esi
jle 0x10038b60
imul ecx, dword [esp + 0x14], 0x2c
add ecx, 0x14
add ecx, dword [edi + 8]
mov edi, dword [esp + 0x20]
nop dword [eax + eax]
movss dword [ecx - 4], xmm2
mov esi, dword [esp + edi*4 + 0x80]
lea eax, [esi - 1]
cmp edx, eax
jge 0x10038b41
mov eax, dword [esp + 0x1c]
movss xmm0, dword [eax + 0x37ec]
jmp 0x10038b44
movaps xmm0, xmm4
addss xmm0, dword [ecx]
inc edx
add ecx, 0x2c
addss xmm2, xmm0
cmp edx, esi
jl 0x10038b20
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
movss xmm0, dword [esp + eax*4 + 0x88]
inc ecx
add dword [esp + 0x14], esi
addss xmm2, xmm0
mov dword [esp + 0x3c], ecx
movaps xmm3, xmm0
addss xmm3, dword [esp + eax*4 + 0x84]
maxss xmm3, xmm4
addss xmm3, dword [edi + 0x40]
movss dword [edi + 0x40], xmm3
cmp ecx, 3
jl 0x10038ad2
cmp byte [esp + 0x30], 0
jne 0x10038ba7
mov dword [edi + 0x14], 0
mov eax, dword [edi + 0x14]
mov ecx, eax
test eax, eax
jne 0x10038bc6
cmp dword [edi + 0x18], eax
jne 0x10038bc6
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10038bc6
mov eax, dword [eax]
mov ecx, eax
mov dword [edi + 0x14], eax
jmp 0x10038bca
mov eax, dword [esp + 0x18]
movss xmm7, dword [esp + 0x84]
mov dword [edi + 0x1c], ecx
mov byte [edi + 0x68], 0
test eax, eax
je 0x10038cfd
mov edx, dword [edi]
xor ecx, ecx
test edx, edx
jle 0x10038cfd
mov esi, dword [edi + 8]
cmp dword [esi], eax
je 0x10038c02
inc ecx
add esi, 0x2c
cmp ecx, edx
jl 0x10038bf1
jmp 0x10038cfd
test esi, esi
je 0x10038cfd
test byte [esi + 4], 0xc0
jne 0x10038cfd
mov ecx, dword [0x10055178]
mov eax, 0x2e8ba2e9
movss xmm5, dword [edi + 0x30]
subss xmm5, dword [edi + 0x28]
movss xmm0, dword [ecx + 0x3bb4]
mov ecx, esi
sub ecx, dword [edi + 8]
imul ecx
subss xmm5, xmm7
mov eax, dword [esp + 0x80]
subss xmm5, dword [esp + 0x9c]
sar edx, 3
dec eax
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x40], ecx
subss xmm5, dword [esp + 0x94]
cmp ecx, eax
jle 0x10038c74
movaps xmm1, xmm0
xorps xmm1, xmmword [0x10051b10]
jmp 0x10038c77
movaps xmm1, xmm4
movss xmm2, dword [esi + 0x10]
mov ecx, dword [edi]
subss xmm2, xmm7
mov eax, dword [esp + 0x40]
sub ecx, dword [esp + 0x98]
inc eax
addss xmm1, xmm2
cmp eax, ecx
jl 0x10038c9e
movss xmm0, dword [0x10051658]
addss xmm2, dword [esi + 0x14]
movss xmm6, dword [edi + 0x4c]
comiss xmm6, xmm1
mov dword [edi + 0x50], 0
addss xmm2, xmm0
ja 0x10038ce6
movaps xmm0, xmm2
subss xmm0, xmm1
comiss xmm0, xmm5
jae 0x10038ce6
subss xmm2, xmm5
comiss xmm2, xmm6
jbe 0x10038cfd
subss xmm1, xmm5
movss dword [edi + 0x4c], xmm2
subss xmm1, dword [edi + 0x48]
maxss xmm1, xmm4
movss dword [edi + 0x50], xmm1
jmp 0x10038cfd
movss xmm0, dword [edi + 0x48]
subss xmm0, xmm2
movss dword [edi + 0x4c], xmm1
maxss xmm0, xmm4
movss dword [edi + 0x50], xmm0
movss xmm2, dword [edi + 0x28]
movaps xmm1, xmm3
movss xmm0, dword [edi + 0x30]
movss xmm5, dword [edi + 0x48]
subss xmm0, xmm2
movss xmm6, dword [edi + 0x4c]
mov esi, dword [esp + 0x1c]
movss dword [esp + 0x20], xmm2
subss xmm1, xmm0
minss xmm5, xmm1
maxss xmm5, xmm4
movss dword [edi + 0x48], xmm5
movss xmm1, dword [edi + 0x30]
movaps xmm0, xmm1
movss dword [esp + 0x40], xmm1
subss xmm0, xmm2
subss xmm3, xmm0
minss xmm6, xmm3
maxss xmm6, xmm4
ucomiss xmm5, xmm6
movss dword [edi + 0x4c], xmm6
lahf
test ah, 0x44
jnp 0x10038e1f
movss xmm0, dword [esi + 0x3bb4]
mulss xmm0, dword [0x100516cc]
mov eax, dword [edi + 0x24]
movss xmm2, dword [edi + 0x54]
inc eax
maxss xmm2, xmm0
movaps xmm0, xmm6
subss xmm0, xmm5
andps xmm0, xmmword [0x10051b00]
divss xmm0, dword [0x10051610]
maxss xmm2, xmm0
movss dword [edi + 0x54], xmm2
cmp eax, dword [esi + 0x3db8]
jl 0x10038e09
movss xmm1, dword [esi + 0x3bb4]
mulss xmm1, dword [0x100516a8]
movss xmm0, dword [edi + 0x50]
comiss xmm0, xmm1
ja 0x10038e09
comiss xmm6, xmm5
mulss xmm2, dword [esi + 0x18]
jbe 0x10038de6
movss xmm1, dword [esp + 0x40]
addss xmm2, xmm5
minss xmm2, xmm6
movss dword [edi + 0x48], xmm2
movss xmm2, dword [esp + 0x20]
jmp 0x10038e26
comiss xmm5, xmm6
jbe 0x10038df3
subss xmm5, xmm2
maxss xmm5, xmm6
movss xmm1, dword [esp + 0x40]
movaps xmm2, xmm5
movss dword [edi + 0x48], xmm2
movss xmm2, dword [esp + 0x20]
jmp 0x10038e26
movss xmm1, dword [esp + 0x40]
movaps xmm2, xmm6
movss dword [edi + 0x48], xmm2
movss xmm2, dword [esp + 0x20]
jmp 0x10038e26
mov dword [edi + 0x54], 0
test dword [edi + 0xc], 0x100000
addss xmm7, xmm2
subss xmm1, dword [esp + 0x9c]
addss xmm7, dword [esp + 0x88]
subss xmm1, dword [esp + 0x94]
movss dword [edi + 0x58], xmm7
movss dword [edi + 0x5c], xmm1
jne 0x10038e90
mov ecx, dword [edi + 0x88]
lea eax, [edi + 0x84]
test ecx, ecx
jns 0x10038e8a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x84]
call fcn.10018d70
lea eax, [edi + 0x84]
mov dword [eax], 0
mov esi, dword [esi + 0x3e18]
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
mov dword [esi + 0xd8], ecx
lea ecx, [esp + 0x40]
mov dword [esi + 0xd4], eax
movss xmm0, dword [edi + 0x40]
movss xmm1, dword [edi + 0x78]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [edi + 0x34]
subss xmm0, dword [edi + 0x2c]
movss dword [esp + 0x44], xmm0
call fcn.100119c0
movss xmm1, dword [edi + 0x44]
addss xmm1, dword [edi + 0x28]
movss xmm0, dword [esi + 0xf4]
mov ecx, dword [esp + 0xbc]
pop edi
maxss xmm0, xmm1
movss dword [esi + 0xf4], xmm0
pop esi
xor ecx, esp
call fcn.100462db
mov esp, ebp
pop ebp
ret