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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x154]
mov ebx, dword [esi + 0x158]
movss xmm0, dword [eax + 0x254]
comiss xmm0, dword [esi + 0xc8]
jbe 0x100411ba
movss xmm0, dword [esi + 0xd0]
comiss xmm0, dword [eax + 0x24c]
jbe 0x100411ba
movss xmm0, dword [eax + 0x250]
comiss xmm0, dword [esi + 0xc4]
jbe 0x100411ba
movss xmm0, dword [esi + 0xcc]
comiss xmm0, dword [eax + 0x248]
jbe 0x100411ba
mov ebx, dword [ebx + 0x2a4]
mov ecx, dword [esi + 0x168]
push 0
push ebx
mov dword [ebp - 4], ebx
call fcn.10037950
movss xmm2, dword [esi + 0x114]
movss xmm0, dword [esi + 0x11c]
comiss xmm2, xmm0
movss xmm1, dword [esi + 0x118]
movss xmm3, dword [esi + 0x120]
movss dword [ebp - 0x38], xmm2
movss dword [ebp - 0x34], xmm1
movss dword [ebp - 0x30], xmm0
movss dword [ebp - 0x2c], xmm3
jb 0x10040cd0
movss dword [ebp - 0x30], xmm2
comiss xmm1, xmm3
jb 0x10040cda
movss dword [ebp - 0x2c], xmm1
mov edi, dword [ebx + 0x3c]
lea edx, [ebx + 0x3c]
mov ecx, dword [edx + 4]
cmp edi, ecx
jne 0x10040d0f
inc edi
test ecx, ecx
je 0x10040cfa
mov eax, ecx
cdq
sub eax, edx
lea edx, [ebx + 0x3c]
sar eax, 1
add eax, ecx
jmp 0x10040cff
mov eax, 8
cmp eax, edi
mov ecx, edx
cmovg edi, eax
push edi
call fcn.1002c170
lea edx, [ebx + 0x3c]
mov eax, dword [edx]
mov ecx, ebx
movups xmm0, xmmword [ebp - 0x38]
shl eax, 4
add eax, dword [edx + 8]
movups xmmword [eax], xmm0
inc dword [edx]
movups xmmword [ebx + 0x60], xmm0
call fcn.10034ce0
movsx eax, word [esi + 0x4c]
test eax, eax
jne 0x10040d3b
lea ecx, [esi + 0x174]
jmp 0x10040d4a
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x18c]
lea ecx, [ecx - 2]
lea ecx, [eax + ecx*8]
mov edx, dword [esi + 4]
movss xmm4, dword [0x100f8f34]
test edx, 0x100
je 0x10040d62
movaps xmm2, xmm4
jmp 0x10040d65
xorps xmm2, xmm2
movzx eax, word [esi + 0x1dc]
cmp ax, 1
jl 0x10040d7c
movss xmm1, dword [esi + 0xd8]
jmp 0x10040d84
movss xmm1, dword [esi + 0xe8]
cmp byte [esi + 0x1ee], 0
addss xmm1, dword [esi + 0xbc]
movss xmm0, dword [esi + 0xd8]
movss xmm5, dword [esi + 0xe0]
movaps xmm3, xmm0
movss dword [ebp - 0x18], xmm5
maxss xmm3, xmm1
addss xmm3, xmm2
movss dword [ebp - 0xc], xmm3
je 0x10040dda
cmp ax, 1
jge 0x10040dc8
movss xmm0, dword [esi + 0xe8]
addss xmm0, dword [ecx]
movaps xmm2, xmm5
minss xmm2, xmm0
movss dword [ebp - 0x10], xmm2
jmp 0x10040de2
movaps xmm2, xmm3
movss dword [ebp - 0x10], xmm3
test edx, 0x200
je 0x10040f96
xor edi, edi
cmp dword [esi + 0x40], edi
jle 0x10040f96
nop dword [eax]
mov eax, dword [esi + 0x28]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, edi
sar ecx, 5
test dword [eax + ecx*4], edx
je 0x10040f87
mov eax, dword [esi + 0x18]
movsx edx, word [eax + edi*2]
movsx eax, word [esi + 0x1c6]
imul ecx, edx, 0x70
mov dword [ebp - 8], edx
add ecx, dword [esi + 0x10]
cmp eax, edx
jne 0x10040e46
mov ax, word [esi + 0x4e]
cmp ax, word [esi + 0x4c]
jne 0x10040e46
mov bl, 1
jmp 0x10040e48
xor bl, bl
mov eax, dword [ecx]
movss xmm1, dword [ecx + 0xc]
and eax, 0x40000020
comiss xmm1, dword [esi + 0xfc]
mov edx, dword [ebp - 8]
movss dword [ebp - 0x14], xmm1
jbe 0x10040e6d
test bl, bl
je 0x10040f84
cmp word [ecx + 0x58], 0xffff
jne 0x10040e9c
test eax, eax
je 0x10040e9c
mov edx, dword [esi + 4]
mov eax, edx
and eax, 0xe000
cmp eax, 0x4000
jne 0x10040f84
test edx, 0x10000
jne 0x10040f84
mov edx, dword [ebp - 8]
movss xmm0, dword [ecx + 0x20]
comiss xmm0, xmm1
jae 0x10040f84
movsx eax, word [esi + 0x1c0]
cmp eax, edx
je 0x10040ed5
test bl, bl
jne 0x10040ed5
movsx eax, word [esi + 0x1e0]
lea edx, [edi + 1]
cmp eax, edx
je 0x10040ed5
test dword [esi + 4], 0x1800
je 0x10040ed5
movaps xmm7, xmm2
jmp 0x10040edb
movaps xmm7, xmm5
lea edx, [edi + 1]
comiss xmm7, xmm3
jbe 0x10040f84
movsx eax, word [esi + 0x1c6]
mov ebx, dword [ebp - 8]
cmp eax, ebx
jne 0x10040f59
mov ax, word [esi + 0x4e]
cmp ax, word [esi + 0x4c]
jne 0x10040f59
mov ecx, 1
add ecx, 0x1c
movaps xmm1, xmm4
call fcn.10009cd0
movss xmm1, dword [ebp - 0x14]
movss xmm3, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
push ecx
mov dword [esp], 0x3f800000
mov ecx, ebx
push eax
lea eax, [ebp - 0x20]
movss dword [ebp - 0x20], xmm1
push eax
lea eax, [ebp - 0x28]
movss dword [ebp - 0x1c], xmm7
push eax
movss dword [ebp - 0x28], xmm1
movss dword [ebp - 0x24], xmm3
call fcn.10036df0
movss xmm3, dword [ebp - 0xc]
movss xmm4, dword [0x100f8f34]
movss xmm5, dword [ebp - 0x18]
jmp 0x10040f87
movsx eax, word [esi + 0x1c0]
xor ecx, ecx
cmp eax, ebx
je 0x10040f01
movsx eax, word [esi + 0x1e0]
cmp eax, edx
je 0x10040f7f
test dword [esi + 4], 0x1800
jne 0x10040f7f
mov eax, dword [esi + 0x7c]
jmp 0x10040f16
mov eax, dword [esi + 0x78]
jmp 0x10040f16
mov ebx, dword [ebp - 4]
movss xmm2, dword [ebp - 0x10]
inc edi
cmp edi, dword [esi + 0x40]
jl 0x10040e00
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 0x500
je 0x10041122
mov edi, dword [esi + 0x78]
movups xmm0, xmmword [esi + 0xc4]
movups xmmword [ebp - 0x38], xmm0
cmp ecx, 0x500
jne 0x1004107f
movss xmm2, dword [ebp - 0x30]
movss xmm3, dword [ebp - 0x2c]
addss xmm2, xmm4
addss xmm3, xmm4
test edi, 0xff000000
je 0x10041122
test byte [ebx + 0x24], 1
lea eax, [ebp - 0x28]
movss xmm0, dword [ebp - 0x38]
mov ecx, ebx
push 0
push eax
lea eax, [ebp - 0x20]
push eax
je 0x1004101a
movss xmm1, dword [0x100f8ef0]
addss xmm0, xmm1
subss xmm2, xmm1
subss xmm3, xmm1
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [ebp - 0x34]
addss xmm0, xmm1
jmp 0x10041044
addss xmm0, dword [0x100f8ef0]
subss xmm2, dword [0x100f8eec]
subss xmm3, dword [0x100f8eec]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [ebp - 0x34]
addss xmm0, dword [0x100f8ef0]
movss dword [ebp - 0x24], xmm3
xorps xmm3, xmm3
movss dword [ebp - 0x28], xmm2
movss dword [ebp - 0x1c], xmm0
call fcn.10036960
push ecx
mov dword [esp], 0x3f800000
mov ecx, ebx
push 1
push edi
push dword [ebx + 0x54]
push dword [ebx + 0x5c]
call fcn.100350d0
mov dword [ebx + 0x54], 0
jmp 0x10041122
test eax, 0x400
je 0x100410c3
movss xmm0, dword [ebp - 0x38]
lea eax, [ebp - 0x28]
push ecx
mov dword [esp], 0x3f800000
mov ecx, ebx
push edi
push eax
movss dword [ebp - 0x28], xmm0
lea eax, [ebp - 0x38]
movss xmm0, dword [ebp - 0x2c]
push eax
movss dword [ebp - 0x24], xmm0
call fcn.10036df0
movss xmm0, dword [ebp - 0x30]
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x34]
jmp 0x10041105
test eax, 0x100
je 0x10041122
movss xmm0, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push ecx
mov dword [esp], 0x3f800000
mov ecx, ebx
push edi
push eax
movss dword [ebp - 0x28], xmm0
lea eax, [ebp - 0x38]
movss xmm0, dword [ebp - 0x34]
push eax
movss dword [ebp - 0x24], xmm0
call fcn.10036df0
movss xmm0, dword [ebp - 0x38]
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x2c]
push ecx
mov dword [esp], 0x3f800000
lea eax, [ebp - 0x30]
push edi
push eax
lea eax, [ebp - 0x28]
movss dword [ebp - 0x24], xmm0
push eax
mov ecx, ebx
call fcn.10036df0
test byte [esi + 4], 0x80
je 0x1004118e
movss xmm1, dword [esi + 0x54]
movss xmm0, dword [esi + 0xd0]
comiss xmm0, xmm1
jbe 0x1004118e
comiss xmm1, dword [esi + 0x108]
jb 0x1004118e
movss xmm0, dword [esi + 0x110]
comiss xmm0, xmm1
jbe 0x1004118e
movss xmm0, dword [esi + 0x84]
lea eax, [ebp - 0x28]
push ecx
mov dword [esp], 0x3f800000
mov ecx, ebx
push dword [esi + 0x7c]
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [esi + 0x80]
push eax
lea eax, [ebp - 0x20]
movss dword [ebp - 0x24], xmm1
push eax
movss dword [ebp - 0x20], xmm0
movss dword [ebp - 0x1c], xmm1
call fcn.10036df0
mov ecx, dword [ebx + 0x3c]
sub ecx, 1
mov dword [ebx + 0x3c], ecx
jne 0x100411a1
mov eax, dword [ebx + 0x2c]
add eax, 0x18
jmp 0x100411ac
mov eax, dword [ebx + 0x44]
shl ecx, 4
add eax, 0xfffffff0
add eax, ecx
movups xmm0, xmmword [eax]
mov ecx, ebx
movups xmmword [ebx + 0x60], xmm0
call fcn.10034ce0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret