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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x10089040]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
mov esi, dword [0x10099d40]
xorps xmm0, xmm0
push edi
mov edi, ecx
mov dword [esp + 8], esi
xor ecx, ecx
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0x10], ecx
mov byte [esp + 0xc], cl
mov eax, dword [edi]
mov byte [edi + 0x67], 0
movaps xmmword [esp + 0x80], xmm0
mov dword [esp + 0x90], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 1
test eax, eax
jle 0x10046911
xor esi, esi
xor edx, edx
nop word [eax + eax]
mov ecx, dword [edi + 8]
mov eax, dword [edx + ecx + 8]
cmp eax, dword [edi + 0x24]
jl 0x100468c9
cmp byte [edx + ecx + 0x28], 0
jne 0x100468c9
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
je 0x1004684b
movups xmm0, xmmword [edx + ecx]
mov eax, dword [edx + ecx + 0x28]
movups xmm1, xmmword [edx + ecx + 0x10]
movq xmm2, qword [edx + ecx + 0x20]
movups xmmword [esi + ecx], xmm0
movups xmmword [esi + ecx + 0x10], xmm1
movq qword [esi + ecx + 0x20], xmm2
mov dword [esi + ecx + 0x28], eax
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x10]
mov word [eax + esi + 0x26], cx
mov eax, dword [eax + esi + 4]
test al, 0x40
je 0x10046863
xor ecx, ecx
jmp 0x1004686e
test al, 0x80
mov ecx, 0
setne cl
inc ecx
cmp dword [esp + 0x10], 0
jle 0x100468b4
mov eax, dword [edi + 8]
mov eax, dword [eax + esi - 0x28]
test al, 0x40
je 0x10046884
xor eax, eax
jmp 0x1004688f
test al, 0x80
mov eax, 0
setne al
inc eax
test ecx, ecx
jne 0x1004689c
test eax, eax
je 0x100468b4
mov byte [esp + 0xc], 1
cmp eax, 2
jne 0x100468b4
mov eax, dword [esp + 0xc]
cmp ecx, 2
movzx eax, al
cmovne eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x10]
inc dword [esp + eax*4 + 0x70]
inc ecx
mov dword [esp + 0x10], ecx
add esi, 0x2c
jmp 0x100468fa
mov eax, dword [edi + 0x1c]
cmp eax, dword [edx + ecx]
jne 0x100468d8
mov dword [edi + 0x1c], 0
mov eax, dword [edi + 0x14]
cmp eax, dword [edx + ecx]
jne 0x100468e7
mov dword [edi + 0x14], 0
mov eax, dword [edi + 0x18]
cmp eax, dword [edx + ecx]
mov ecx, dword [esp + 0x10]
jne 0x100468fa
mov dword [edi + 0x18], 0
inc dword [esp + 0x14]
add edx, 0x2c
mov eax, dword [edi]
cmp dword [esp + 0x14], eax
jl 0x10046800
mov esi, dword [esp + 8]
cmp eax, ecx
je 0x10046948
mov eax, dword [edi + 4]
cmp ecx, eax
jle 0x10046944
test eax, eax
je 0x1004692c
cdq
sub eax, edx
mov edx, eax
sar edx, 1
add edx, dword [edi + 4]
jmp 0x10046931
mov edx, 8
cmp edx, ecx
mov eax, ecx
mov ecx, edi
cmovg eax, edx
push eax
call fcn.10049280
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
mov eax, ecx
cmp byte [esp + 0xc], 0
je 0x10046968
cmp eax, 1
jbe 0x10046968
push 0x100461e0
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 + 0x70], 0
xorps xmm0, xmm0
jle 0x1004698b
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x88]
test eax, eax
jle 0x1004698b
movss xmm1, dword [esi + 0x37dc]
jmp 0x1004698e
xorps xmm1, xmm1
cmp dword [esp + 0x7c], 0
movss dword [esp + 0x78], xmm1
jle 0x100469ad
cmp dword [esp + 0x88], 0
jle 0x100469ad
movss xmm0, dword [esi + 0x37dc]
xor eax, eax
movss dword [esp + 0x84], xmm0
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x18]
test eax, eax
je 0x100469d1
mov dword [esp + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0
mov ecx, dword [edi + 0x60]
test ecx, ecx
je 0x10046b19
mov edx, dword [edi]
xor eax, eax
test edx, edx
jle 0x10046b12
mov esi, dword [edi + 8]
nop dword [eax + eax]
cmp dword [esi], ecx
je 0x10046a01
inc eax
add esi, 0x2c
cmp eax, edx
jl 0x100469f0
jmp 0x10046b12
test esi, esi
je 0x10046b12
test byte [esi + 4], 0x20
jne 0x10046b12
movzx eax, word [edi + 0x64]
mov ecx, esi
sub ecx, dword [edi + 8]
mov dword [esp + 0x28], eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
movzx edx, word [edi + 0x64]
movsx eax, dx
add ecx, eax
js 0x10046b12
cmp ecx, dword [edi]
jge 0x10046b12
imul eax, ecx, 0x2c
add eax, dword [edi + 8]
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 4]
test cl, 0x20
jne 0x10046b12
xor ecx, dword [esi + 4]
test cl, 0xc0
jne 0x10046b12
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x20], ecx
movups xmm0, xmmword [esi]
movaps xmmword [esp + 0x60], xmm0
movups xmm0, xmmword [esi + 0x10]
movaps xmmword [esp + 0x40], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [esp + 0x30], xmm0
test dx, dx
jle 0x10046a9c
mov eax, dword [esp + 0x28]
lea ecx, [esi + 0x2c]
cwde
jmp 0x10046aa8
mov ecx, eax
lea esi, [eax + 0x2c]
mov eax, dword [esp + 0x28]
cwde
neg eax
imul eax, eax, 0x2c
push eax
push ecx
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0x24]
add esp, 0xc
movaps xmm0, xmmword [esp + 0x60]
mov ecx, dword [esp + 0x20]
movups xmmword [eax], xmm0
movaps xmm0, xmmword [esp + 0x40]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [esp + 0x30]
movq qword [eax + 0x20], xmm0
mov dword [eax + 0x28], ecx
test dword [edi + 0xc], 0x400000
je 0x10046b01
mov ecx, dword [0x10099d40]
xorps xmm0, xmm0
comiss xmm0, dword [ecx + 0x5a44]
jb 0x10046b01
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x5a44], eax
mov eax, dword [edi + 0x60]
mov ecx, dword [esp + 0x10]
cmp eax, dword [edi + 0x14]
cmove ecx, eax
mov dword [esp + 0x10], ecx
mov dword [edi + 0x60], 0
mov eax, dword [edi + 0xc]
shr eax, 2
test al, 1
je 0x10046d0a
mov esi, dword [0x10099d40]
mov dword [esp + 0x40], 0
mov eax, dword [esi + 0x3e48]
lea ecx, [esi + 0x4758]
movss xmm0, dword [esi + 0x37c8]
movaps xmm2, xmm0
mov dword [esp + 0x20], eax
addss xmm2, dword [esi + 0x3bb8]
movss xmm1, dword [eax + 0xf0]
movss dword [esp + 0x18], xmm1
movss xmm1, dword [eax + 0xf4]
movss dword [esp + 0x14], xmm1
movss xmm1, dword [edi + 0x28]
subss xmm1, xmm0
movss xmm0, dword [edi + 0x2c]
movss dword [eax + 0xf4], xmm0
movss dword [eax + 0xf0], xmm1
lea eax, [esp + 0x40]
addss xmm2, dword [edi + 0x28]
push eax
movss dword [edi + 0x28], xmm2
movups xmm0, xmmword [esi + 0x3864]
movaps xmmword [esp + 0x64], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [0x100835a8]
movss dword [esp + 0x70], xmm0
movups xmm0, xmmword [esi + 0x3864]
movups xmmword [esp + 0x48], xmm0
call fcn.1001a390
movups xmm0, xmmword [esp + 0x60]
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0x15
push eax
movups xmmword [esi + 0x3864], xmm0
mov esi, dword [0x10099d40]
movups xmm0, xmmword [esi + 0x39b4]
lea ecx, [esi + 0x4758]
movups xmmword [esp + 0x48], xmm0
call fcn.1001a390
mov dword [esi + 0x39b4], 0
mov dword [esi + 0x39b8], 0
mov dword [esi + 0x39bc], 0
push ecx
mov dword [esi + 0x39c0], 0
call fcn.10038000
add esp, 4
mov byte [esp + 0x1f], al
mov ecx, 2
call fcn.100044c0
xor ecx, ecx
mov dword [esp + 0xc], ecx
cmp byte [esp + 0x1f], cl
je 0x10046cdd
xor eax, eax
mov dword [esp + 0x28], eax
cmp dword [edi], eax
jle 0x10046cd4
mov dword [esp + 0x2c], ecx
mov esi, dword [edi + 8]
add esi, ecx
test dword [esi + 4], 0x200000
jne 0x10046cc4
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
jne 0x10046c80
mov ecx, 0x10079be4
jmp 0x10046c88
mov ecx, dword [edi + 0x8c]
add ecx, eax
mov eax, dword [edi + 0x14]
cmp eax, dword [esi]
lea eax, [esp + 0x30]
push eax
sete dl
mov dword [esp + 0x34], 0
push 0
mov dword [esp + 0x3c], 0
call fcn.10044ce0
mov ecx, dword [esp + 0x14]
add esp, 8
test al, al
mov eax, dword [esp + 0x28]
cmovne ecx, esi
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x2c]
inc eax
add ecx, 0x2c
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
cmp eax, dword [edi]
jl 0x10046c63
call fcn.100138c0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
movss xmm0, dword [esp + 0x18]
movss dword [eax + 0xf0], xmm0
movss xmm0, dword [esp + 0x14]
movss dword [eax + 0xf4], xmm0
test ecx, ecx
je 0x10046d0a
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
mov dword [edi + 0x14], eax
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x88]
mov edx, dword [edi]
add eax, ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x4a84]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], edx
cmp edx, ecx
jle 0x10046de9
test ecx, ecx
je 0x10046d52
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
add eax, ecx
jmp 0x10046d57
mov eax, 8
cmp eax, edx
mov ecx, edx
cmovg ecx, eax
mov dword [esp + 0x20], ecx
cmp ecx, dword [esi + 0x4a84]
jle 0x10046de9
mov eax, dword [0x10099d40]
test eax, eax
je 0x10046d79
inc dword [eax + 0xb4]
lea eax, [ecx + ecx*2]
shl eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, dword [esi + 0x4a88]
add esp, 4
mov dword [esp + 0x18], eax
test edx, edx
je 0x10046dd5
mov ecx, dword [esi + 0x4a80]
lea ecx, [ecx + ecx*2]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 0x4a88]
add esp, 0xc
test ecx, ecx
je 0x10046dc7
mov eax, dword [0x10099d40]
test eax, eax
je 0x10046dc7
dec dword [eax + 0xb4]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
mov edx, dword [esp + 0x28]
mov dword [esi + 0x4a88], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x4a84], eax
movss xmm5, dword [0x100835fc]
xor ecx, ecx
mov dword [esi + 0x4a80], edx
mov eax, dword [edi]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], 0xffffffff
mov byte [esp + 0x2c], cl
mov dword [esp + 0xc], ecx
test eax, eax
jle 0x10046f66
xor edx, edx
mov dword [esp + 0x20], edx
nop dword [eax]
mov esi, dword [edi + 8]
add esi, edx
test ecx, ecx
je 0x10046e31
mov eax, dword [ecx + 0xc]
cmp eax, dword [esi + 0xc]
jge 0x10046e3f
test dword [esi + 4], 0x200000
cmove ecx, esi
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x2c]
mov ecx, 1
mov edx, dword [esi]
cmp edx, dword [edi + 0x14]
movzx eax, al
cmove eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
test ecx, ecx
jne 0x10046e70
mov eax, dword [esp + 8]
cmp dword [eax + 0x47e4], edx
cmove ecx, edx
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
jne 0x10046e7f
mov edx, 0x10079be4
jmp 0x10046e87
mov edx, dword [edi + 0x8c]
add edx, eax
mov eax, dword [esi + 4]
xorps xmm0, xmm0
movss xmm1, dword [esi + 0x1c]
and eax, 0x100001
cmp eax, 0x100000
setne al
comiss xmm1, xmm0
jae 0x10046ec0
push eax
lea ecx, [esp + 0x64]
call fcn.10048850
movss xmm5, dword [0x100835fc]
add esp, 4
xorps xmm0, xmm0
movss xmm1, dword [eax]
mov eax, dword [esi + 4]
movss dword [esi + 0x18], xmm1
test al, 0x40
je 0x10046ed0
xor edx, edx
jmp 0x10046edb
test al, 0x80
mov edx, 0
setne dl
inc edx
lea ecx, [edx + edx*2]
cmp edx, dword [esp + 0x14]
jne 0x10046ef0
mov eax, dword [esp + 8]
movss xmm0, dword [eax + 0x37dc]
addss xmm1, xmm0
mov dword [esp + 0x14], edx
addss xmm1, dword [esp + ecx*4 + 0x74]
movss dword [esp + ecx*4 + 0x74], xmm1
mov ecx, dword [esp + edx*4 + 0x30]
lea eax, [ecx + 1]
mov dword [esp + edx*4 + 0x30], eax
lea ecx, [ecx + ecx*2]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [eax + 0x4a88]
mov dword [eax + ecx*4], edx
movss xmm0, dword [esi + 0x18]
movss dword [eax + ecx*4 + 8], xmm0
movss dword [eax + ecx*4 + 4], xmm0
mov ecx, edx
movss xmm0, dword [esi + 0x18]
inc ecx
mov edx, dword [esp + 0x20]
maxss xmm0, xmm5
add edx, 0x2c
mov dword [esp + 0xc], ecx
mov dword [esp + 0x20], edx
movss dword [esi + 0x14], xmm0
mov eax, dword [edi]
cmp ecx, eax
mov ecx, dword [esp + 0x28]
jl 0x10046e20
mov esi, dword [esp + 8]
movss xmm1, dword [esp + 0x74]
xorps xmm2, xmm2
addss xmm1, dword [esp + 0x78]
movss xmm0, dword [esp + 0x80]
addss xmm0, dword [esp + 0x84]
addss xmm1, xmm2
addss xmm1, xmm0
movss xmm0, dword [esp + 0x8c]
addss xmm0, dword [esp + 0x90]
addss xmm1, xmm0
movss dword [edi + 0x44], xmm1
movss xmm0, dword [edi + 0x30]
subss xmm0, dword [edi + 0x28]
comiss xmm1, xmm0
jbe 0x10046ff3
cmp eax, 1
jle 0x10046ff3
mov eax, dword [edi + 0xc]
test al, 0x10
jne 0x10046ff3
test al, al
jns 0x10046ff3
mov ecx, edi
call fcn.100478f0
movss xmm5, dword [0x100835fc]
mov ecx, eax
xorps xmm2, xmm2
test ecx, ecx
je 0x10046ff3
test dword [ecx + 4], 0x200000
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
jne 0x10046ff3
mov dword [edi + 0x14], eax
movss xmm4, dword [esp + 0x8c]
movss xmm3, dword [esp + 0x74]
addss xmm4, dword [esp + 0x90]
addss xmm3, dword [esp + 0x78]
movss xmm1, dword [edi + 0x30]
subss xmm1, dword [edi + 0x28]
movaps xmm0, xmm4
addss xmm0, xmm3
comiss xmm1, xmm0
seta al
test al, al
je 0x10047050
movss xmm0, dword [esp + 0x80]
subss xmm1, xmm3
addss xmm0, dword [esp + 0x84]
subss xmm1, xmm4
subss xmm0, xmm1
maxss xmm0, xmm2
jmp 0x10047054
subss xmm0, xmm1
comiss xmm0, xmm5
jb 0x10047159
test byte [edi + 0xc], 0x40
jne 0x1004708f
test al, al
jne 0x10047159
mov edx, dword [esp + 0x88]
add edx, dword [esp + 0x70]
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], edx
test al, al
je 0x100470ac
mov eax, dword [esp + 0x88]
add eax, dword [esp + 0x70]
jmp 0x100470b2
test al, al
je 0x1004706b
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x88]
add eax, dword [esp + 0x70]
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], edx
jmp 0x100470b2
xor eax, eax
mov dword [esp + 0xc], edx
mov ecx, dword [esi + 0x4a88]
movaps xmm2, xmm0
mov dword [esp + 0x20], eax
lea eax, [eax + eax*2]
shl eax, 2
add ecx, eax
mov dword [esp + 0x18], eax
call fcn.10037e00
mov eax, dword [esp + 0xc]
xorps xmm4, xmm4
add eax, dword [esp + 0x20]
cmp dword [esp + 0x20], eax
jge 0x1004715c
movss xmm3, dword [0x100835fc]
mov edx, dword [esp + 0x18]
nop dword [eax]
mov eax, dword [esi + 0x4a88]
imul ecx, dword [edx + eax], 0x2c
cvttss2si eax, dword [edx + eax + 4]
add ecx, dword [edi + 8]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm4, xmm0
ja 0x1004714d
mov eax, dword [ecx + 4]
movaps xmm2, xmm3
maxss xmm2, xmm0
test al, 0x40
je 0x10047121
xor eax, eax
jmp 0x1004712c
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 + 0x74]
subss xmm1, xmm2
subss xmm0, xmm1
movss dword [esp + eax*4 + 0x74], xmm0
movss dword [ecx + 0x14], xmm2
add edx, 0xc
sub dword [esp + 0x14], 1
jne 0x100470f0
jmp 0x1004715c
xorps xmm4, xmm4
xor ecx, ecx
mov dword [esp + 0xc], 0
movaps xmm2, xmm4
mov dword [edi + 0x40], 0
mov dword [esp + 0x18], ecx
lea eax, [ecx + ecx*2]
mov dword [esp + 0x14], eax
cmp ecx, 2
jne 0x1004719e
movss xmm1, dword [edi + 0x30]
movaps xmm0, xmm4
subss xmm1, dword [edi + 0x28]
subss xmm1, dword [esp + eax*4 + 0x74]
maxss xmm0, xmm1
minss xmm0, xmm2
movaps xmm2, xmm0
mov esi, dword [esp + eax*4 + 0x70]
xor edx, edx
test esi, esi
jle 0x10047203
imul eax, dword [esp + 0xc], 0x2c
mov dword [esp + 0x20], eax
mov ecx, dword [edi + 8]
add ecx, eax
mov eax, dword [esp + 0x14]
movss dword [ecx + 0x10], xmm2
mov dword [ecx + 0x20], 0xffffffff
mov esi, dword [esp + eax*4 + 0x70]
lea eax, [esi - 1]
cmp edx, eax
jge 0x100471df
mov eax, dword [esp + 8]
movss xmm0, dword [eax + 0x37dc]
jmp 0x100471e2
movaps xmm0, xmm4
addss xmm0, dword [ecx + 0x14]
mov eax, dword [esp + 0x20]
inc edx
add eax, 0x2c
mov dword [esp + 0x20], eax
addss xmm2, xmm0
cmp edx, esi
jl 0x100471b1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movss xmm1, dword [esp + eax*4 + 0x78]
inc ecx
add dword [esp + 0xc], esi
addss xmm2, xmm1
mov dword [esp + 0x18], ecx
movaps xmm0, xmm1
addss xmm0, dword [esp + eax*4 + 0x74]
maxss xmm0, xmm4
addss xmm0, dword [edi + 0x40]
movss dword [edi + 0x40], xmm0
cmp ecx, 3
jl 0x10047174
mov ecx, dword [edi + 0x88]
test ecx, ecx
jns 0x1004725f
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.1001a7d0
xorps xmm4, xmm4
cmp byte [esp + 0x2c], 0
mov dword [edi + 0x84], 0
jne 0x10047277
mov dword [edi + 0x14], 0
mov eax, dword [edi + 0x14]
mov ecx, eax
test eax, eax
jne 0x10047296
cmp dword [edi + 0x18], eax
jne 0x10047296
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10047296
mov eax, dword [eax]
mov ecx, eax
mov dword [edi + 0x14], eax
jmp 0x1004729a
mov eax, dword [esp + 0x10]
mov dword [edi + 0x1c], ecx
mov byte [edi + 0x68], 0
test eax, eax
je 0x100473d5
mov edx, dword [edi]
xor ecx, ecx
test edx, edx
jle 0x10047590
mov esi, dword [edi + 8]
cmp dword [esi], eax
je 0x100472c9
inc ecx
add esi, 0x2c
cmp ecx, edx
jl 0x100472b8
jmp 0x10047590
test esi, esi
je 0x10047590
test byte [esi + 4], 0xc0
jne 0x10047590
mov ecx, dword [0x10099d40]
mov eax, 0x2e8ba2e9
movss xmm3, dword [edi + 0x30]
subss xmm3, dword [edi + 0x28]
movss xmm0, dword [ecx + 0x3bb8]
mov ecx, esi
sub ecx, dword [edi + 8]
imul ecx
subss xmm3, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
subss xmm3, dword [esp + 0x8c]
sar edx, 3
dec eax
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x18], ecx
subss xmm3, dword [esp + 0x84]
cmp ecx, eax
jle 0x1004733a
movaps xmm1, xmm0
xorps xmm1, xmmword [0x100839c0]
jmp 0x1004733d
movaps xmm1, xmm4
movss xmm2, dword [esi + 0x10]
subss xmm2, dword [esp + 0x74]
mov ecx, dword [edi]
mov eax, dword [esp + 0x18]
sub ecx, dword [esp + 0x88]
inc eax
addss xmm1, xmm2
cmp eax, ecx
jl 0x10047366
movss xmm0, dword [0x100835fc]
addss xmm2, dword [esi + 0x14]
movss xmm5, dword [edi + 0x4c]
comiss xmm5, xmm1
mov dword [edi + 0x50], 0
addss xmm2, xmm0
ja 0x100473b9
movaps xmm0, xmm2
subss xmm0, xmm1
comiss xmm0, xmm3
jae 0x100473b9
mov ecx, dword [esp + 8]
subss xmm2, xmm3
comiss xmm2, xmm5
jbe 0x10047594
subss xmm1, xmm3
movss dword [edi + 0x4c], xmm2
subss xmm1, dword [edi + 0x48]
maxss xmm1, xmm4
movss dword [edi + 0x50], xmm1
jmp 0x10047594
movss xmm0, dword [edi + 0x48]
subss xmm0, xmm2
movss dword [edi + 0x4c], xmm1
maxss xmm0, xmm4
movss dword [edi + 0x50], xmm0
jmp 0x10047590
test byte [edi + 0xc], 0x80
je 0x10047590
mov edx, dword [0x10099d40]
movss xmm3, dword [edi + 0x28]
movss xmm0, dword [edi + 0x30]
movss xmm5, dword [edi + 0x2c]
mov eax, dword [edx + 0x3e48]
movss xmm1, dword [edx + 0x37ec]
movss xmm2, dword [edi + 0x34]
movaps xmm7, xmm1
maxss xmm3, dword [eax + 0x210]
minss xmm0, dword [eax + 0x218]
maxss xmm5, dword [eax + 0x214]
minss xmm2, dword [eax + 0x21c]
subss xmm3, xmm1
movss xmm1, dword [edx + 0xdc0]
addss xmm7, xmm0
movss xmm0, dword [edx + 0x37f0]
movaps xmm6, xmm0
subss xmm5, xmm0
addss xmm6, xmm2
comiss xmm1, xmm3
jb 0x10047590
movss xmm0, dword [edx + 0xdc4]
comiss xmm0, xmm5
jb 0x10047590
comiss xmm7, xmm1
jbe 0x10047590
comiss xmm6, xmm0
jbe 0x10047590
mov edx, dword [edx + 0x47c8]
mov ecx, dword [esp + 8]
test edx, edx
je 0x100474d3
mov edx, dword [edx + 0x300]
test edx, edx
je 0x100474d3
cmp byte [edx + 0xab], 0
je 0x100474d3
mov eax, dword [ecx + 0x3e48]
mov eax, dword [eax + 0x300]
cmp edx, eax
je 0x100474d3
test dword [edx + 0xc], 0xc000000
je 0x100474d3
cmp dword [eax + 0x300], edx
je 0x100474d3
nop dword [eax + eax]
cmp eax, edx
je 0x100474d3
mov eax, dword [eax + 0x2fc]
test eax, eax
jne 0x100474c0
jmp 0x10047594
mov dl, byte [ecx + 0x372d]
test dl, dl
je 0x100474e7
movss xmm1, dword [ecx + 0xdd0]
jmp 0x100474ef
movss xmm1, dword [ecx + 0xdd4]
mov esi, dword [edi + 0x10]
xor eax, eax
test dl, dl
mov edx, esi
setne al
add eax, 0x286
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.10012060
test al, al
je 0x10047576
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jnp 0x10047576
movss xmm0, dword [edi + 0x30]
subss xmm0, dword [edi + 0x28]
movss xmm2, dword [edi + 0x4c]
mov dword [edi + 0x50], 0
subss xmm0, dword [esp + 0x74]
subss xmm0, dword [esp + 0x8c]
subss xmm0, dword [esp + 0x84]
mulss xmm0, xmm1
movss xmm1, dword [edi + 0x30]
subss xmm1, dword [edi + 0x28]
divss xmm0, dword [0x1008366c]
subss xmm2, xmm0
movss xmm0, dword [edi + 0x40]
subss xmm0, xmm1
minss xmm2, xmm0
maxss xmm2, xmm4
movss dword [edi + 0x4c], xmm2
mov edx, dword [esp + 0x18]
mov ecx, dword [0x10099d40]
call fcn.10002bc0
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
mov ecx, dword [esp + 8]
movss xmm7, dword [edi + 0x28]
movss xmm0, dword [edi + 0x30]
movss xmm2, dword [edi + 0x40]
subss xmm0, xmm7
movss xmm3, dword [edi + 0x48]
movaps xmm1, xmm2
movss xmm5, dword [edi + 0x4c]
subss xmm1, xmm0
minss xmm3, xmm1
maxss xmm3, xmm4
movss dword [edi + 0x48], xmm3
movss xmm6, dword [edi + 0x30]
movaps xmm0, xmm6
subss xmm0, xmm7
subss xmm2, xmm0
minss xmm5, xmm2
maxss xmm5, xmm4
ucomiss xmm3, xmm5
movss dword [edi + 0x4c], xmm5
lahf
test ah, 0x44
jnp 0x10047684
movss xmm0, dword [ecx + 0x3bb8]
mulss xmm0, dword [0x100836dc]
mov eax, dword [edi + 0x24]
movss xmm2, dword [edi + 0x54]
inc eax
maxss xmm2, xmm0
movaps xmm0, xmm5
subss xmm0, xmm3
andps xmm0, xmmword [0x100839a0]
divss xmm0, dword [0x10083594]
maxss xmm2, xmm0
movss dword [edi + 0x54], xmm2
cmp eax, dword [ecx + 0x3dc8]
jl 0x1004767a
movss xmm1, dword [ecx + 0x3bb8]
mulss xmm1, dword [0x100836b4]
movss xmm0, dword [edi + 0x50]
comiss xmm0, xmm1
ja 0x1004767a
comiss xmm5, xmm3
mulss xmm2, dword [ecx + 0x18]
jbe 0x10047666
addss xmm3, xmm2
minss xmm3, xmm5
movss dword [edi + 0x48], xmm3
jmp 0x1004768b
comiss xmm3, xmm5
jbe 0x1004767d
subss xmm3, xmm2
maxss xmm3, xmm5
movss dword [edi + 0x48], xmm3
jmp 0x1004768b
movaps xmm3, xmm5
movss dword [edi + 0x48], xmm3
jmp 0x1004768b
mov dword [edi + 0x54], 0
movss xmm0, dword [esp + 0x74]
subss xmm6, dword [esp + 0x8c]
mov eax, dword [edi + 0x28]
addss xmm0, xmm7
subss xmm6, dword [esp + 0x84]
addss xmm0, dword [esp + 0x78]
movss dword [edi + 0x5c], xmm6
movss dword [edi + 0x58], xmm0
mov esi, dword [ecx + 0x3e48]
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0xf4], ecx
lea ecx, [esp + 0x30]
mov dword [esi + 0xf0], eax
movss xmm0, dword [edi + 0x40]
movss xmm1, dword [edi + 0x78]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [edi + 0x34]
subss xmm0, dword [edi + 0x2c]
movss dword [esp + 0x34], xmm0
call fcn.10012210
movss xmm1, dword [edi + 0x44]
addss xmm1, dword [edi + 0x28]
movss xmm0, dword [esi + 0x110]
mov ecx, dword [esp + 0xac]
pop edi
maxss xmm0, xmm1
movss dword [esi + 0x110], xmm0
pop esi
xor ecx, esp
call fcn.10074ff7
mov esp, ebp
pop ebp
ret