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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [0x1008c00c]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [0x10090d48]
push esi
mov esi, ecx
push edi
mov edi, dword [eax + 0x3e28]
mov dword [esp + 0x18], esi
cmp dword [esi + 0x5c], 0xffffffff
mov dword [esp + 0x40], edi
je 0x10049597
call fcn.10049d19
mov eax, dword [0x10090d48]
cmp byte [eax + 0x5a50], 0
je 0x100495af
push 0
mov edx, 0x10087454
xor ecx, ecx
call fcn.1001548b
pop ecx
mov eax, dword [esi + 0x68]
mov dword [edi + 0xf0], eax
movsx eax, byte [esi + 0x1c6]
movss xmm6, dword [esi + 0x64]
movss xmm5, dword [esi + 0x68]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x58]
movss dword [esp + 0x30], xmm6
movss dword [esp + 0x38], xmm5
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
movsx ecx, byte [esi + 0x1c5]
mov dword [esp + 0x2c], ecx
test eax, eax
jne 0x10049609
movsx edx, word [esi + 0x60]
movaps xmm0, xmm5
mov ecx, esi
subss xmm0, xmm6
call fcn.10002364
movss dword [eax + 4], xmm0
comiss xmm5, dword [esi + 0x104]
jb 0x100499b6
movss xmm0, dword [esi + 0x10c]
comiss xmm0, xmm6
jb 0x100499b6
mov eax, dword [esi + 0x80]
xor edx, edx
mov dword [esp + 0x10], edx
cmp eax, 0x1000000
je 0x10049642
mov edx, eax
mov dword [esp + 0x10], edx
jmp 0x10049664
test byte [esi + 4], 0x40
je 0x10049664
mov ecx, dword [esi + 0x7c]
movss xmm1, dword [0x10088500]
and ecx, 1
add ecx, 0x2d
call fcn.10004763
mov edx, eax
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x84]
xor eax, eax
cmp ecx, 0x1000000
cmove ecx, eax
and dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
cmp dword [esi + 0x58], eax
jg 0x10049690
mov eax, dword [esi + 0x164]
cmp eax, dword [esi + 0x160]
jne 0x100496b1
test byte [esi + 4], 0x80
je 0x100496b1
test dword [esi + 0x78], 0x10000
je 0x100496a7
mov eax, dword [esi + 0x88]
jmp 0x100496ad
mov eax, dword [esi + 0x8c]
mov dword [esp + 0x20], eax
mov al, byte [esi + 0x1c9]
shr al, 7
mov byte [esp + 0xf], al
mov eax, ecx
or eax, dword [esp + 0x20]
or eax, edx
jne 0x100496d9
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x14], eax
je 0x100496d9
cmp byte [esp + 0xf], 0
jne 0x1004972e
test dword [esi + 4], 0x100000
jne 0x10049707
mov edi, dword [edi + 0x260]
movups xmm0, xmmword [esi + 0x120]
add edi, 0x60
lea esi, [esp + 0x44]
movups xmmword [esp + 0x44], xmm0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x40]
mov ecx, dword [esi + 0x174]
push 0
push dword [edi + 0x260]
call fcn.1003ca4e
movss xmm5, dword [esp + 0x38]
movss xmm6, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x1004973a
test ecx, ecx
je 0x100497f0
movss xmm0, dword [esi + 0xf0]
movaps xmm1, xmm6
movaps xmm2, xmm5
maxss xmm0, dword [esi + 0x110]
maxss xmm1, dword [esi + 0x114]
minss xmm2, dword [esi + 0x11c]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esi + 0xf8]
movss dword [esp + 0x18], xmm1
movss dword [esp + 0x48], xmm1
movss dword [esp + 0x10], xmm2
movss dword [esp + 0x50], xmm2
minss xmm0, dword [esi + 0x118]
movss dword [esp + 0x4c], xmm0
test edx, edx
je 0x100497c6
comiss xmm2, xmm1
jbe 0x100497c6
push 0
push ecx
and dword [esp], 0
lea eax, [esp + 0x54]
mov ecx, dword [edi + 0x260]
push edx
push eax
lea eax, [esp + 0x54]
push eax
call fcn.1003c1ae
movss xmm1, dword [esp + 0x18]
movss xmm2, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100497f0
comiss xmm2, xmm1
jbe 0x100497f0
push 0
push ecx
and dword [esp], 0
mov ecx, dword [edi + 0x260]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.1003c1ae
cmp byte [esp + 0xf], 0
jne 0x100498db
mov ecx, dword [esi + 0x20]
movsx eax, byte [esi + 0x1c9]
lea eax, [ecx + eax*8]
mov dword [esp + 0x24], eax
cmp ecx, eax
jmp 0x100498d1
movsx eax, byte [ecx + 4]
mov edx, esi
imul ecx, eax, 0x68
push eax
add ecx, dword [esi + 0x10]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x48]
call fcn.100492f3
movss xmm0, dword [esp + 0x4c]
add esp, 4
maxss xmm0, dword [esi + 0x114]
movss xmm1, dword [esp + 0x44]
movss xmm2, dword [esp + 0x4c]
maxss xmm1, dword [esi + 0x110]
mov eax, dword [esp + 0x18]
minss xmm2, dword [esi + 0x118]
movss dword [esp + 0x48], xmm0
movss xmm0, dword [esp + 0x50]
minss xmm0, dword [esi + 0x11c]
movss dword [esp + 0x44], xmm1
movss dword [esp + 0x4c], xmm2
movss dword [esp + 0x50], xmm0
movss xmm0, dword [eax + 0x20]
comiss xmm1, xmm0
jae 0x10049894
movss dword [esp + 0x44], xmm0
movss xmm0, dword [eax + 0xc]
comiss xmm0, xmm2
ja 0x100498a4
movss dword [esp + 0x4c], xmm0
mov eax, dword [esp + 0x10]
push 0
push ecx
and dword [esp], 0
push dword [eax]
mov ecx, dword [edi + 0x260]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.1003c1ae
mov ecx, dword [esp + 0x10]
add ecx, 8
cmp ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
jbe 0x10049813
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10049945
movss xmm1, dword [esp + 0x30]
comiss xmm1, dword [esi + 0x114]
jb 0x10049945
movss xmm0, dword [esi + 0x11c]
comiss xmm0, xmm1
jbe 0x10049945
movss xmm0, dword [esi + 0x94]
push ecx
mov ecx, dword [edi + 0x260]
mov dword [esp], 0x3f800000
push eax
lea eax, [esp + 0x20]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esi + 0x90]
push eax
lea eax, [esp + 0x3c]
movss dword [esp + 0x28], xmm1
push eax
movss dword [esp + 0x40], xmm0
movss dword [esp + 0x44], xmm1
call fcn.1003c046
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x28]
jne 0x100499ba
movss xmm1, dword [esp + 0x38]
comiss xmm1, dword [esi + 0x114]
jb 0x100499ba
movss xmm0, dword [esi + 0x11c]
comiss xmm0, xmm1
jbe 0x100499ba
movss xmm0, dword [esi + 0x94]
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [edi + 0x260]
mov dword [esp], 0x3f800000
push dword [esi + 0x88]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esi + 0x90]
push eax
lea eax, [esp + 0x44]
movss dword [esp + 0x28], xmm1
push eax
movss dword [esp + 0x48], xmm0
movss dword [esp + 0x4c], xmm1
call fcn.1003c046
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x2c]
jne 0x100499de
xor ecx, ecx
cmp dword [esi + 0x54], ecx
jle 0x100499de
xor edx, edx
mov eax, dword [esi + 0x10]
lea edx, [edx + 0x68]
inc ecx
mov byte [edx + eax - 6], 0
cmp ecx, dword [esi + 0x54]
jl 0x100499c9
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x28]
jne 0x10049ae9
movss xmm1, dword [esi + 0x68]
mov ecx, esi
addss xmm1, dword [0x10088500]
movsx edx, word [esi + 0x60]
maxss xmm1, dword [edi + 0x1e0]
mov byte [esi + 0x1d8], 1
movaps xmm0, xmm1
subss xmm0, dword [esi + 0xd4]
call fcn.10002364
and dword [esp + 0x2c], 0
movss dword [eax + 8], xmm0
minss xmm1, dword [edi + 0x1e8]
mov al, byte [esi + 0x1cc]
movss dword [esi + 0x134], xmm1
movss dword [esi + 0x114], xmm1
movss xmm0, dword [edi + 0x1e8]
movss xmm1, dword [esi + 0x68]
subss xmm1, dword [esi + 0x64]
movss dword [esi + 0x13c], xmm0
movss dword [esi + 0x11c], xmm0
movss xmm0, dword [esi + 0xf4]
addss xmm0, dword [esi + 0x68]
mov byte [esi + 0x1cb], al
subss xmm0, dword [esi + 0xd4]
movss dword [edi + 0xf0], xmm0
cmp dword [esi + 0x54], 0
movss dword [esi + 0x68], xmm0
subss xmm0, xmm1
movss dword [esi + 0x64], xmm0
jle 0x10049ac3
mov edi, dword [esp + 0x2c]
xor edx, edx
mov ecx, dword [esi + 0x10]
lea edx, [edx + 0x68]
inc edi
mov al, byte [ecx + edx - 0xf]
mov byte [ecx + edx - 0x11], al
mov eax, dword [esi + 0x134]
mov dword [ecx + edx - 0x44], eax
cmp edi, dword [esi + 0x54]
jl 0x10049aa1
mov edi, dword [esp + 0x40]
mov edx, dword [esi + 0x10]
mov ecx, edi
add edx, 0x20
call fcn.1004cd9c
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x174]
movzx eax, byte [eax + 0x57]
push eax
push dword [edi + 0x260]
call fcn.1003ca4e
test byte [esi + 0x78], 1
jne 0x10049af2
inc dword [esi + 0x7c]
mov ecx, dword [esp + 0x54]
pop edi
mov byte [esi + 0x1ce], 0
pop esi
xor ecx, esp
call fcn.1006dac1
mov esp, ebp
pop ebp
ret