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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
mov eax, dword [0x101903b8]
xor eax, esp
mov dword [esp + 0xb4], eax
push esi
mov esi, dword [0x10270558]
mov dword [esp + 0x14], ecx
mov ecx, esi
push edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x44], ecx
mov eax, dword [ecx + 0x3e58]
mov byte [eax + 0xac], 1
mov edi, dword [ecx + 0x3e58]
cmp byte [edi + 0xaf], 0
jne 0x100421f0
mov ecx, dword [edi + 0xe4]
xor edx, edx
mov eax, dword [edi + 0xec]
push dword [eax + ecx*4 - 4]
mov ecx, dword [esp + 0x1c]
call fcn.100065d0
mov ecx, dword [edi]
add esp, 4
mov dword [esp + 0x48], eax
cmp dword [ecx + 0x3e8c], eax
jne 0x10041ab6
push ecx
push dword [esp + 0x1c]
mov edx, 0xb
mov ecx, eax
call fcn.1001d4c0
mov esi, dword [0x10270558]
add esp, 8
mov ecx, dword [ebp + 0xc]
xorps xmm4, xmm4
movss xmm1, dword [esi + 0x37c0]
addss xmm1, xmm1
movss xmm3, dword [ecx + 4]
ucomiss xmm3, xmm4
addss xmm1, dword [esi + 0x3bc4]
movss dword [esp + 0x1c], xmm3
lahf
test ah, 0x44
jp 0x10041aed
movaps xmm3, xmm1
movss dword [esp + 0x1c], xmm1
movss xmm0, dword [ecx]
ucomiss xmm0, xmm4
movss dword [esp + 0x20], xmm0
lahf
test ah, 0x44
jp 0x10041b09
movaps xmm0, xmm1
movss dword [esp + 0x20], xmm1
comiss xmm3, xmm1
mov esi, dword [esp + 0x44]
movss xmm5, dword [edi + 0xf0]
movss xmm6, dword [edi + 0xf4]
movaps xmm2, xmm5
addss xmm2, xmm0
movss dword [esp + 0x30], xmm5
movaps xmm0, xmm6
movss dword [esp + 0x34], xmm6
addss xmm0, xmm3
movss dword [esp + 0x38], xmm2
movss dword [esp + 0x3c], xmm0
jb 0x10041b52
movss xmm1, dword [esi + 0x37c0]
jmp 0x10041b55
xorps xmm1, xmm1
subss xmm2, xmm5
subss xmm0, xmm6
lea ecx, [esp + 0x24]
movss dword [esp + 0x24], xmm2
movss dword [esp + 0x28], xmm0
call fcn.10015f10
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x30]
push 0
push 0
call fcn.100160c0
add esp, 8
test al, al
je 0x100421f0
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x13]
push 0
push eax
lea eax, [esp + 0x1a]
push eax
lea ecx, [esp + 0x3c]
call fcn.10033fb0
mov edx, dword [ebp + 8]
add esp, 0xc
mov byte [esp + 0x13], al
mov ecx, edx
mov eax, edx
and eax, 0xfff9ffff
and cl, 2
mov ecx, dword [esp + 0x50]
cmove eax, edx
mov dword [esp + 0x14], eax
movups xmm0, xmmword [ecx]
movups xmmword [esp + 0x60], xmm0
test eax, 0x10000000
je 0x10041c02
movss xmm2, dword [esp + 0x68]
lea eax, [esp + 0x68]
movss xmm1, dword [esp + 0x64]
lea edx, [esp + 0x64]
movss xmm0, dword [esp + 0x60]
lea ecx, [esp + 0x60]
push eax
call fcn.10006c50
mov eax, dword [esp + 0x18]
add esp, 4
movss xmm0, dword [esp + 0x60]
mov ecx, eax
movss dword [esp + 0x78], xmm0
and ecx, 0x400
movss xmm0, dword [esp + 0x64]
movss dword [esp + 0x7c], xmm0
movss xmm0, dword [esp + 0x68]
movss dword [esp + 0x80], xmm0
movss xmm0, dword [esp + 0x20]
minss xmm0, dword [esp + 0x1c]
movss xmm1, dword [esi + 0x37c4]
mov dword [esp + 0x84], 0x3f800000
mov dword [esp + 0x24], ecx
divss xmm0, dword [0x101879d0]
mulss xmm0, dword [0x1018787c]
minss xmm1, xmm0
movaps xmm0, xmmword [esp + 0x30]
movaps xmmword [esp + 0x90], xmm0
movss dword [esp + 0x20], xmm1
jne 0x10041c91
movaps xmm0, xmmword [esp + 0x30]
subps xmm0, xmmword [0x10187e50]
movaps xmmword [esp + 0x90], xmm0
movss xmm1, dword [0x10187b80]
lea ecx, [esp + 0x78]
test eax, 0x20000
lea eax, [esp + 0x60]
cmove eax, ecx
movups xmm2, xmmword [eax]
mov eax, dword [0x10270558]
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xff
mulss xmm0, dword [eax + 0x3780]
mulss xmm0, xmm1
cvttss2si eax, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm1
mov dword [esp + 0x1c], eax
cvttss2si edx, xmm0
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x55
shufps xmm2, xmm2, 0xaa
mulss xmm2, xmm1
movzx edx, dl
mulss xmm0, xmm1
mov dword [esp + 0x4c], edx
cvttss2si eax, xmm2
cvttss2si ecx, xmm0
movzx esi, al
mov dword [esp + 0x8c], esi
movzx eax, cl
mov ecx, dword [esp + 0x1c]
movzx ecx, cl
shl ecx, 8
or ecx, esi
mov dword [esp + 0x2c], eax
shl ecx, 8
or ecx, eax
mov al, byte [esp + 0x12]
shl ecx, 8
or ecx, edx
mov byte [esp + 0x12], al
mov dword [esp + 0x88], ecx
test al, al
je 0x10041d98
mov edx, dword [esp + 0x2c]
lea eax, [esi + 0x3c]
mov esi, 0xff
cmp eax, esi
cmova eax, esi
add edx, 0x3c
cmp edx, esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x4c]
cmova edx, esi
add eax, 0x3c
cmp eax, esi
movzx ecx, al
mov eax, dword [esp + 0x1c]
cmova ecx, esi
movzx esi, al
mov eax, dword [esp + 0x54]
shl esi, 8
movzx eax, al
or esi, eax
movzx eax, dl
shl esi, 8
mov edx, esi
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x8c]
or edx, eax
movzx eax, cl
mov ecx, dword [esp + 0x88]
shl edx, 8
or edx, eax
jmp 0x10041d9a
mov edx, ecx
movss xmm1, dword [0x101877fc]
movzx eax, dl
movd xmm0, eax
mov eax, edx
cvtdq2ps xmm0, xmm0
shr eax, 8
movzx eax, al
mulss xmm0, xmm1
movss dword [esp + 0xac], xmm0
movd xmm0, eax
mov eax, edx
cvtdq2ps xmm0, xmm0
shr eax, 0x10
movzx eax, al
shr edx, 0x18
cmp byte [esp + 0x12], 0
mulss xmm0, xmm1
movss dword [esp + 0xb0], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0xb4], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0xb8], xmm0
jne 0x10041e97
lea eax, [esi - 0x3c]
cmp eax, 0xff
jle 0x10041e24
mov eax, 0xff
jmp 0x10041e2b
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov edx, dword [esp + 0x2c]
add edx, 0xffffffc4
cmp edx, 0xff
jle 0x10041e41
mov edx, 0xff
jmp 0x10041e48
xor ecx, ecx
test edx, edx
cmovs edx, ecx
mov ecx, dword [esp + 0x4c]
add ecx, 0xffffffc4
cmp ecx, 0xff
jle 0x10041e5e
mov byte [esp + 0x2c], 0xff
jmp 0x10041e74
mov esi, dword [esp + 0x4c]
add esi, 0xffffffc4
movzx ecx, cl
mov esi, 0
cmovs ecx, esi
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x1c]
movzx ecx, cl
shl ecx, 8
movzx eax, al
or ecx, eax
movzx eax, dl
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x2c]
shl ecx, 8
movzx eax, al
or ecx, eax
movzx eax, cl
movd xmm0, eax
mov eax, ecx
cvtdq2ps xmm0, xmm0
shr eax, 8
movzx eax, al
mulss xmm0, xmm1
movss dword [esp + 0x78], xmm0
movd xmm0, eax
mov eax, ecx
cvtdq2ps xmm0, xmm0
shr eax, 0x10
movzx eax, al
shr ecx, 0x18
mulss xmm0, xmm1
movss dword [esp + 0x7c], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x80], xmm0
movd xmm0, ecx
lea ecx, [esp + 0x78]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x84], xmm0
call fcn.10006ba0
lea ecx, [esp + 0xac]
mov esi, eax
call fcn.10006ba0
mov ecx, dword [edi + 0x264]
push esi
push esi
push eax
push eax
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.10029180
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x30]
push 1
call fcn.100086f0
add esp, 4
cmp dword [esp + 0x24], 0
jne 0x10042079
mov eax, dword [esp + 0x44]
xorps xmm1, xmm1
movss xmm0, dword [eax + 0x37c8]
comiss xmm0, xmm1
jbe 0x10041f81
push dword [esp + 0x3c]
movss xmm0, dword [esp + 0x24]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.10008550
add esp, 0x10
jmp 0x10042079
movss xmm1, dword [0x101878cc]
mov ecx, 7
mov esi, dword [edi + 0x264]
call fcn.10007d60
mov edi, eax
test edi, 0xff000000
je 0x10042079
test byte [esi + 0x24], 1
lea eax, [esp + 0x24]
movss xmm3, dword [esp + 0x20]
mov ecx, esi
push 0
push eax
lea eax, [esp + 0x60]
push eax
je 0x10042005
movss xmm1, dword [0x1018787c]
movss xmm0, dword [esp + 0x44]
subss xmm0, xmm1
movss dword [esp + 0x30], xmm0
movss xmm0, dword [esp + 0x48]
subss xmm0, xmm1
movss dword [esp + 0x34], xmm0
movss xmm0, dword [esp + 0x3c]
addss xmm0, xmm1
movss dword [esp + 0x64], xmm0
movss xmm0, dword [esp + 0x40]
addss xmm0, xmm1
jmp 0x1004204f
movss xmm1, dword [esp + 0x44]
subss xmm1, dword [0x10187878]
movss xmm0, dword [esp + 0x3c]
addss xmm0, dword [0x1018787c]
movss dword [esp + 0x30], xmm1
movss xmm1, dword [esp + 0x48]
subss xmm1, dword [0x10187878]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [esp + 0x40]
addss xmm0, dword [0x1018787c]
movss dword [esp + 0x34], xmm1
movss dword [esp + 0x68], xmm0
call fcn.10028950
push ecx
mov dword [esp], 0x3f800000
mov ecx, esi
push 1
push edi
push dword [esi + 0x54]
push dword [esi + 0x5c]
call fcn.100270a0
mov dword [esi + 0x54], 0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
cmp dword [eax + 0x3ea4], ecx
mov eax, dword [esp + 0x14]
jne 0x100421a3
test eax, 0x200
jne 0x100421a3
call fcn.1001bca0
test al, al
je 0x1004219f
test byte [esp + 0x14], 2
lea edx, [esp + 0x60]
push ecx
je 0x100420be
push 0xc
mov ecx, str._COL3F
jmp 0x100420c5
push 0x10
mov ecx, str._COL4F
call fcn.1001be10
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x2c]
mov edx, dword [esp + 0x58]
add esp, 8
mov ecx, edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
push eax
push dword [esp + 0x18]
call fcn.10041a20
mov eax, dword [0x10270558]
add esp, 8
mov edx, dword [eax + 0x3e58]
cmp byte [edx + 0xaf], 0
jne 0x1004215f
movss xmm1, dword [eax + 0x37cc]
addss xmm1, dword [edx + 0xf8]
movss xmm0, dword [edx + 0xfc]
movss dword [edx + 0xf0], xmm1
movss dword [edx + 0xf4], xmm0
mov eax, dword [edx + 0x120]
mov ecx, dword [edx + 0x124]
mov dword [edx + 0x118], eax
mov eax, dword [edx + 0x12c]
mov dword [edx + 0x11c], ecx
mov dword [edx + 0x128], eax
mov byte [edx + 0x130], 1
push 0
xor edx, edx
mov ecx, str.Color
call fcn.100337a0
mov esi, dword [0x10270558]
add esp, 4
test byte [esi + 0x4978], 1
jne 0x10042184
call fcn.100130f0
cmp dword [esi + 0x4994], 0xffffffff
jne 0x10042192
call fcn.1001bbc0
mov eax, dword [esp + 0x14]
mov byte [esi + 0x4975], 0
jmp 0x100421a7
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
test al, 0x40
jne 0x100421d8
cmp byte [esp + 0x12], 0
je 0x100421d8
mov ecx, 0x1000
call fcn.10009c50
test al, al
je 0x100421d8
mov eax, dword [esp + 0x14]
mov ecx, edi
mov edx, dword [esp + 0x50]
and eax, 0x18060002
push eax
call fcn.10042210
add esp, 4
mov al, byte [esp + 0x13]
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.100c9808
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xbc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100c9808
mov esp, ebp
pop ebp
ret