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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x148
mov eax, dword [0x10068040]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
mov esi, dword [0x100de918]
push edi
mov edi, edx
mov dword [esp + 0x1c], esi
mov edx, ecx
mov dword [esp + 0x28], edi
mov eax, dword [esi + 0x1a20]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x10], ecx
mov byte [eax + 0x78], 1
mov eax, dword [esi + 0x1a20]
mov dword [esp + 0x24], eax
cmp byte [eax + 0x7b], 0
je 0x100302d9
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.1004db16
mov esp, ebp
pop ebp
ret
movss xmm1, dword [esi + 0x1548]
xorps xmm0, xmm0
addss xmm1, xmm1
addss xmm1, dword [esi + 0x1938]
movss dword [esp + 0x4c], xmm1
test cl, 0x10
je 0x10030300
xorps xmm3, xmm3
jmp 0x1003030b
movaps xmm3, xmm1
addss xmm3, dword [esi + 0x155c]
movss xmm2, dword [eax + 0x168]
comiss xmm0, xmm2
movss xmm5, dword [0x10063c04]
jbe 0x1003038f
movss xmm4, dword [eax + 0xc8]
movss xmm1, dword [eax + 0x21c]
mov esi, dword [eax + 0x1c4]
subss xmm4, dword [eax + 0xc]
subss xmm1, dword [eax + 0xc]
test esi, esi
je 0x1003037c
mov edx, dword [esi + 0xc]
movss xmm1, dword [esi + 0x18]
subss xmm1, dword [esi + 0x14]
lea eax, [edx + 1]
test eax, eax
cmovns edx, eax
mov eax, dword [esi + 0x34]
lea ecx, [edx*8]
sub ecx, edx
mov edx, dword [esp + 0x2c]
mulss xmm1, dword [eax + ecx*4]
mov eax, dword [esp + 0x24]
addss xmm1, dword [esi + 0x14]
subss xmm1, dword [eax + 0x3c]
mov esi, dword [esp + 0x1c]
subss xmm1, xmm4
addss xmm1, xmm2
movaps xmm2, xmm5
maxss xmm2, xmm1
cvttss2si eax, xmm2
movd xmm0, eax
mov eax, edx
mov dword [esp + 0x48], eax
cvtdq2ps xmm0, xmm0
subss xmm0, xmm3
movss dword [esp + 0x14], xmm0
cmp edx, 0xffffffff
jae 0x100303c9
nop
mov cl, byte [eax]
test cl, cl
je 0x100303c9
inc eax
cmp cl, 0x23
jne 0x100303c0
cmp byte [eax], cl
je 0x100303c9
mov dword [esp + 0x48], eax
cmp eax, 0xffffffff
jb 0x100303b0
call fcn.10034200
mov ecx, dword [esp + 0x2c]
call fcn.10025b10
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x44], ecx
test cl, 0x20
je 0x100303f4
and ecx, 0xff9fffff
or ecx, 0x100008
mov dword [esp + 0x10], ecx
test cl, 8
jne 0x10030406
mov edx, ecx
mov ecx, edi
call fcn.1002fb80
mov ecx, dword [esp + 0x10]
test ecx, 0x700000
jne 0x1003041b
mov eax, dword [esi + 0x2c40]
and eax, 0x700000
or ecx, eax
test ecx, 0x1800000
jne 0x10030430
mov eax, dword [esi + 0x2c40]
and eax, 0x1800000
or ecx, eax
test ecx, 0x6000000
jne 0x10030445
mov eax, dword [esi + 0x2c40]
and eax, 0x6000000
or ecx, eax
mov eax, dword [esi + 0x2c40]
movss xmm2, dword [edi]
and eax, 0xf80fffff
movss xmm5, dword [edi + 4]
or ecx, eax
movss xmm1, dword [edi + 8]
mov edx, ecx
shr edx, 1
mov eax, ecx
shr eax, 0x13
not dl
and eax, 0xffffff01
mov dword [esp + 0x10], ecx
and edx, 0xffffff01
mov dword [esp + 0x50], eax
movzx eax, dl
add eax, 3
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], eax
movss dword [esp + 0xe8], xmm2
movss dword [esp + 0xec], xmm5
movss dword [esp + 0xf0], xmm1
test dl, dl
je 0x100304bb
movss xmm0, dword [edi + 0xc]
movss dword [esp + 0xf4], xmm0
jmp 0x100304c6
mov dword [esp + 0xf4], 0x3f800000
test ecx, 0x200000
je 0x10030566
comiss xmm1, xmm5
xorps xmm4, xmm4
movaps xmm3, xmm5
jbe 0x100304eb
movss xmm4, dword [0x10063d6c]
movaps xmm3, xmm1
movaps xmm1, xmm5
comiss xmm3, xmm2
movaps xmm5, xmm2
jbe 0x10030508
movss xmm0, dword [0x10063d58]
movaps xmm5, xmm3
subss xmm0, xmm4
movaps xmm3, xmm2
movaps xmm4, xmm0
movaps xmm0, xmm3
movss dword [esp + 0xf0], xmm5
minss xmm0, xmm1
movaps xmm2, xmm5
subss xmm3, xmm1
subss xmm2, xmm0
movaps xmm0, xmm2
mulss xmm0, dword [0x10063c88]
addss xmm0, dword [0x10063b7c]
divss xmm3, xmm0
movaps xmm0, xmm5
addss xmm0, dword [0x10063b7c]
addss xmm3, xmm4
divss xmm2, xmm0
andps xmm3, xmmword [0x10064630]
movss dword [esp + 0xe8], xmm3
movss dword [esp + 0xec], xmm2
movss xmm0, dword [esp + 0xe8]
xorps xmm5, xmm5
comiss xmm0, xmm5
movss xmm2, dword [0x10063d5c]
movss xmm1, dword [0x10063bd8]
jb 0x1003058c
movaps xmm4, xmm1
jmp 0x1003058f
movaps xmm4, xmm2
movss xmm0, dword [esp + 0xe8]
movss xmm3, dword [0x10063d00]
mulss xmm0, xmm3
addss xmm0, xmm4
cvttss2si esi, xmm0
movss xmm0, dword [esp + 0xec]
comiss xmm0, xmm5
mov dword [esp + 0xf8], esi
jb 0x100305c6
movaps xmm4, xmm1
jmp 0x100305c9
movaps xmm4, xmm2
movss xmm0, dword [esp + 0xec]
mulss xmm0, xmm3
addss xmm0, xmm4
cvttss2si edx, xmm0
movss xmm0, dword [esp + 0xf0]
comiss xmm0, xmm5
mov dword [esp + 0xfc], edx
jb 0x100305f8
movaps xmm4, xmm1
jmp 0x100305fb
movaps xmm4, xmm2
movss xmm0, dword [esp + 0xf0]
mulss xmm0, xmm3
addss xmm0, xmm4
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0xf4]
comiss xmm0, xmm5
mov dword [esp + 0x100], eax
jae 0x10030628
movaps xmm1, xmm2
movss xmm0, dword [esp + 0xf4]
mulss xmm0, xmm3
mov byte [esp + 0xf], 0
mov byte [esp + 0x1b], 0
addss xmm0, xmm1
cvttss2si edi, xmm0
mov dword [esp + 0x104], edi
test ecx, 0x300000
je 0x10030bf7
test cl, 0x20
jne 0x10030bf7
mov edx, dword [esp + 0x30]
test ecx, 0x1000000
movss xmm4, dword [esp + 0x14]
mov ecx, str.M:000
movaps xmm1, xmm4
mov esi, dword [0x100de918]
push ecx
lea eax, [edx - 1]
movd xmm2, eax
mov eax, dword [esp + 0x20]
cvtdq2ps xmm2, xmm2
mov edi, dword [esi + 0x1934]
push 0
movss xmm3, dword [eax + 0x155c]
movaps xmm0, xmm3
mulss xmm0, xmm2
subss xmm1, xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvttss2si eax, xmm1
movss xmm1, dword [0x10063c04]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
maxss xmm1, xmm0
addss xmm3, xmm1
movss dword [esp + 0x28], xmm1
movss xmm1, dword [0x10063c04]
mulss xmm3, xmm2
subss xmm4, xmm3
movss xmm3, dword [0x10063d48]
cvttss2si eax, xmm4
movd xmm0, eax
mov eax, str.M:0.000
cvtdq2ps xmm0, xmm0
cmove eax, ecx
push eax
push ecx
lea eax, [esp + 0x48]
mov dword [esp], 0xbf800000
push eax
maxss xmm1, xmm0
mov ecx, edi
movss xmm0, dword [esi + 0x1938]
movaps xmm2, xmm0
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x70], xmm1
call fcn.1004cc10
movss xmm0, dword [esp + 0x38]
xorps xmm2, xmm2
comiss xmm0, xmm2
jbe 0x1003074e
movss xmm1, dword [esp + 0x14]
divss xmm1, dword [edi]
subss xmm0, xmm1
addss xmm0, dword [0x10063c00]
mov dword [esp + 0x60], 0x10063928
mov dword [esp + 0x64], 0x1006392c
mov dword [esp + 0x68], 0x10063930
mov dword [esp + 0x6c], 0x10063934
cvttss2si eax, xmm0
mov dword [esp + 0xb8], 0x10063938
mov dword [esp + 0xbc], 0x10063938
mov dword [esp + 0xc0], 0x10063938
mov dword [esp + 0xc4], 0x10063938
mov dword [esp + 0xc8], str.R:_3d
mov dword [esp + 0xcc], str.G:_3d
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x20]
mov dword [esp + 0xd0], str.B:_3d
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov dword [esp + 0xd4], str.A:_3d
mov dword [esp + 0xd8], str.H:_3d
mov dword [esp + 0xdc], str.S:_3d
mov dword [esp + 0xe0], str.V:_3d
mov dword [esp + 0xe4], str.A:_3d
comiss xmm1, xmm0
mov dword [esp + 0x88], str._0.3f
mov dword [esp + 0x8c], str._0.3f
mov dword [esp + 0x90], str._0.3f
mov dword [esp + 0x94], str._0.3f
mov dword [esp + 0x98], str.R:_0.3f
mov dword [esp + 0x9c], str.G:_0.3f
mov dword [esp + 0xa0], str.B:_0.3f
mov dword [esp + 0xa4], str.A:_0.3f
mov dword [esp + 0xa8], str.H:_0.3f
mov dword [esp + 0xac], str.S:_0.3f
mov dword [esp + 0xb0], str.V:_0.3f
mov dword [esp + 0xb4], str.A:_0.3f
jb 0x100308a4
xor eax, eax
jmp 0x100308b4
mov eax, dword [esp + 0x10]
and eax, 0x200000
neg eax
sbb eax, eax
neg eax
inc eax
ucomiss xmm0, xmm2
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x1a20]
mov byte [eax + 0x78], 1
mov ecx, dword [esi + 0x1a20]
mov dword [esp + 0x20], ecx
lahf
test ah, 0x44
jp 0x100308dd
movss xmm0, dword [ecx + 0x228]
lea edi, [ecx + 0x17c]
movss dword [ecx + 0x168], xmm0
mov ecx, dword [edi + 4]
mov eax, dword [edi]
cmp eax, ecx
jne 0x10030921
lea esi, [eax + 1]
test ecx, ecx
je 0x10030906
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1003090b
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.10035490
mov esi, dword [0x100de918]
xorps xmm2, xmm2
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x168]
mov dword [ecx + edx*4], eax
inc dword [edi]
xor edi, edi
cmp dword [esp + 0x30], edi
jbe 0x10030b5b
mov eax, dword [esp + 0x10]
mov ecx, eax
mov edx, dword [esp + 0x14]
and ecx, 0x1000000
and eax, 8
mov dword [esp + 0x54], ecx
shl edx, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], edx
movss xmm3, dword [0x10063b94]
test edi, edi
je 0x100309d6
mov eax, dword [esp + 0x1c]
movss xmm1, dword [eax + 0x155c]
mov eax, dword [esi + 0x1a20]
mov byte [eax + 0x78], 1
mov ecx, dword [esi + 0x1a20]
cmp byte [ecx + 0x7b], 0
jne 0x100309d6
comiss xmm2, xmm1
jbe 0x1003099e
movss xmm1, dword [esi + 0x1554]
addss xmm1, dword [ecx + 0xd0]
movss xmm0, dword [ecx + 0xd4]
movss dword [ecx + 0xc8], xmm1
movss dword [ecx + 0xcc], xmm0
mov eax, dword [ecx + 0xf0]
mov dword [ecx + 0xe8], eax
mov eax, dword [ecx + 0xf4]
mov dword [ecx + 0xec], eax
lea eax, [edi + 1]
cmp eax, dword [esp + 0x30]
jne 0x10030a6f
movss xmm0, dword [esp + 0x5c]
mov eax, dword [esi + 0x1a20]
ucomiss xmm0, xmm2
mov byte [eax + 0x78], 1
mov ecx, dword [esi + 0x1a20]
mov dword [esp + 0x34], ecx
lahf
test ah, 0x44
jp 0x10030a0e
movss xmm0, dword [ecx + 0x228]
lea esi, [ecx + 0x17c]
movss dword [ecx + 0x168], xmm0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
cmp edx, ecx
jne 0x10030a57
inc edx
mov dword [esp + 0x20], edx
test ecx, ecx
je 0x10030a3d
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
add eax, ecx
jmp 0x10030a42
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.10035490
movss xmm3, dword [0x10063b94]
mov edx, dword [esi]
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 8]
mov eax, dword [eax + 0x168]
mov dword [ecx + edx*4], eax
inc dword [esi]
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x54], 0
je 0x10030adb
cmp byte [esp + 0x50], 0
je 0x10030a82
xorps xmm0, xmm0
jmp 0x10030a8a
movss xmm0, dword [0x10063c04]
push ecx
mov ecx, dword [esp + edi*4 + 0x64]
lea eax, [esp + 0x38]
mov dword [esp], 0x3f800000
push dword [esp + edx + 0x8c]
mov edx, 4
movss dword [esp + 0x3c], xmm0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push eax
lea eax, [esp + 0xf8]
lea eax, [eax + edi*4]
push eax
call fcn.10027020
add esp, 0x14
or al, byte [esp + 0xf]
mov byte [esp + 0x1b], al
mov byte [esp + 0xf], al
jmp 0x10030b2f
movss xmm3, dword [0x10063c04]
xor ecx, ecx
cmp byte [esp + 0x50], cl
mov eax, 0xff
push ecx
cmovne eax, ecx
mov dword [esp], 0x3f800000
push dword [esp + edx + 0xbc]
mov dword [esp + 0x3c], eax
xor edx, edx
lea eax, [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + edi*4 + 0x68]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x108]
lea eax, [eax + edi*4]
push eax
call fcn.10027020
add esp, 0x14
or byte [esp + 0xf], al
cmp dword [esp + 0x38], 0
jne 0x10030b3b
call fcn.1001d990
mov edx, dword [esp + 0x14]
inc edi
mov esi, dword [0x100de918]
add edx, 4
mov dword [esp + 0x14], edx
cmp edi, dword [esp + 0x30]
jge 0x10030b5b
xorps xmm2, xmm2
jmp 0x10030963
mov eax, dword [esi + 0x1a20]
mov byte [eax + 0x78], 1
mov ecx, dword [esi + 0x1a20]
mov edx, dword [ecx + 0x17c]
sub edx, 1
mov dword [ecx + 0x17c], edx
jne 0x10030b86
movss xmm0, dword [ecx + 0x228]
jmp 0x10030b92
mov eax, dword [ecx + 0x184]
movss xmm0, dword [eax + edx*4 - 4]
movss dword [ecx + 0x168], xmm0
mov eax, dword [esi + 0x1a20]
mov byte [eax + 0x78], 1
mov ecx, dword [esi + 0x1a20]
mov edx, dword [ecx + 0x17c]
sub edx, 1
mov dword [ecx + 0x17c], edx
jne 0x10030bd7
movss xmm0, dword [ecx + 0x228]
xorps xmm5, xmm5
movss dword [ecx + 0x168], xmm0
mov ecx, dword [esp + 0x10]
jmp 0x10030e7e
mov eax, dword [ecx + 0x184]
xorps xmm5, xmm5
movss xmm0, dword [eax + edx*4 - 4]
movss dword [ecx + 0x168], xmm0
mov ecx, dword [esp + 0x10]
jmp 0x10030e7e
test ecx, 0x400000
je 0x10030e78
test cl, 0x20
jne 0x10030e78
cmp byte [esp + 0x40], 0
mov ecx, 0xff
je 0x10030c6c
test edi, edi
jns 0x10030c20
xor edi, edi
jmp 0x10030c25
cmp edi, ecx
cmovg edi, ecx
test eax, eax
jns 0x10030c2d
xor eax, eax
jmp 0x10030c35
cmp eax, 0xff
cmovg eax, ecx
test edx, edx
jns 0x10030c3d
xor edx, edx
jmp 0x10030c42
cmp edx, ecx
cmovg edx, ecx
test esi, esi
jns 0x10030c4a
xor esi, esi
jmp 0x10030c4f
cmp esi, ecx
cmovg esi, ecx
push edi
push eax
push edx
push esi
push 0x100639b4
lea eax, [esp + 0x11c]
push 0x40
push eax
call fcn.100146d0
add esp, 0x1c
jmp 0x10030cb0
test eax, eax
jns 0x10030c74
xor eax, eax
jmp 0x10030c7c
cmp eax, 0xff
cmovg eax, ecx
test edx, edx
jns 0x10030c84
xor edx, edx
jmp 0x10030c89
cmp edx, ecx
cmovg edx, ecx
test esi, esi
jns 0x10030c91
xor esi, esi
jmp 0x10030c96
cmp esi, ecx
cmovg esi, ecx
push eax
push edx
push esi
push 0x100639c8
lea eax, [esp + 0x118]
push 0x40
push eax
call fcn.100146d0
add esp, 0x18
movss xmm4, dword [esp + 0x14]
ucomiss xmm4, dword [0x10063b68]
mov ecx, dword [0x100de918]
mov eax, dword [ecx + 0x1a20]
mov byte [eax + 0x78], 1
mov ecx, dword [ecx + 0x1a20]
lahf
mov dword [esp + 0x38], ecx
test ah, 0x44
jp 0x10030ce5
movss xmm4, dword [ecx + 0x228]
lea esi, [ecx + 0x17c]
movss dword [ecx + 0x168], xmm4
mov edi, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, edi
jne 0x10030d1e
inc ecx
test edi, edi
je 0x10030d0c
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x10030d11
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10035490
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x38]
push 0
push 0
push 6
mov eax, dword [eax + 0x168]
mov dword [ecx + edx*4], eax
lea eax, [esp + 0x60]
inc dword [esi]
lea edx, [esp + 0x114]
push eax
push 0x40
mov ecx, str.Text
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
call fcn.1002a350
add esp, 0x14
test al, al
je 0x10030e11
mov byte [esp + 0xf], 1
lea ecx, [esp + 0x108]
mov al, byte [ecx]
cmp al, 0x23
je 0x10030d85
cmp al, 0x20
je 0x10030d85
cmp al, 9
jne 0x10030d88
inc ecx
jmp 0x10030d77
cmp byte [esp + 0x40], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf8], 0
je 0x10030deb
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0x104]
push eax
push str._02X_02X_02X_02X
push ecx
call fcn.10012d60
add esp, 0x18
jmp 0x10030e11
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x100]
push eax
push str._02X_02X_02X
push ecx
call fcn.10012d60
add esp, 0x14
mov ecx, dword [esp + 0x10]
test cl, 8
jne 0x10030e23
call fcn.1001d990
mov ecx, dword [esp + 0x10]
mov esi, dword [0x100de918]
mov eax, dword [esi + 0x1a20]
mov byte [eax + 0x78], 1
mov edx, dword [esi + 0x1a20]
mov edi, dword [edx + 0x17c]
sub edi, 1
mov dword [edx + 0x17c], edi
jne 0x10030e5f
movss xmm0, dword [edx + 0x228]
xorps xmm5, xmm5
movss dword [edx + 0x168], xmm0
jmp 0x10030e7e
mov eax, dword [edx + 0x184]
xorps xmm5, xmm5
movss xmm0, dword [eax + edi*4 - 4]
movss dword [edx + 0x168], xmm0
jmp 0x10030e7e
mov esi, dword [0x100de918]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
test cl, 0x10
jne 0x1003119b
test cl, 0x20
jne 0x10030efb
mov eax, dword [esi + 0x1a20]
movss xmm1, dword [edi + 0x155c]
mov byte [eax + 0x78], 1
mov edx, dword [esi + 0x1a20]
cmp byte [edx + 0x7b], 0
jne 0x10030efb
comiss xmm5, xmm1
jbe 0x10030ec3
movss xmm1, dword [esi + 0x1554]
addss xmm1, dword [edx + 0xd0]
movss xmm0, dword [edx + 0xd4]
movss dword [edx + 0xc8], xmm1
movss dword [edx + 0xcc], xmm0
mov eax, dword [edx + 0xf0]
mov dword [edx + 0xe8], eax
mov eax, dword [edx + 0xf4]
mov dword [edx + 0xec], eax
cmp byte [esp + 0x40], 0
mov eax, dword [esp + 0x28]
je 0x10030f0d
movss xmm1, dword [eax + 0xc]
jmp 0x10030f15
movss xmm1, dword [0x10063c04]
movss xmm0, dword [eax]
lea edx, [esp + 0x70]
mov dword [esp + 0x3c], 0
push dword [esp + 0x3c]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [eax + 4]
mov dword [esp + 0x3c], 0
push dword [esp + 0x3c]
movss dword [esp + 0x7c], xmm0
movss xmm0, dword [eax + 8]
push ecx
mov ecx, str.ColorButton
movss dword [esp + 0x84], xmm0
movss dword [esp + 0x88], xmm1
call fcn.1002f510
add esp, 0xc
test al, al
mov eax, dword [esp + 0x10]
je 0x10031036
test al, 4
jne 0x10031036
movups xmm0, xmmword [esp + 0x70]
mov esi, dword [0x100de918]
xor edx, edx
movups xmmword [edi + 0x2c44], xmm0
mov eax, dword [esi + 0x1a20]
mov ecx, dword [eax + 0x1c8]
mov eax, dword [eax + 0x1d0]
push dword [eax + ecx*4 - 4]
mov ecx, 0x10063a14
call fcn.10014710
add esp, 4
cmp dword [esi + 0x1a3c], eax
jne 0x10030fc5
mov byte [esi + 0x1a48], 1
cmp dword [esi + 0x1a40], eax
jne 0x10030fd4
mov byte [esi + 0x1a4c], 1
mov ecx, eax
call fcn.1001d330
mov eax, dword [esp + 0x24]
movss xmm1, dword [eax + 0x10c]
movss xmm0, dword [eax + 0x118]
addss xmm0, dword [edi + 0x1558]
mov eax, dword [0x100de918]
subss xmm1, dword [0x10063c04]
movss dword [eax + 0x1ad0], xmm0
mov dword [eax + 0x1ad4], 0
movss dword [eax + 0x1acc], xmm1
mov dword [eax + 0x1ad8], 0
mov dword [eax + 0x1ab0], 1
mov eax, dword [esp + 0x10]
test al, 8
jne 0x1003103f
call fcn.1001d990
mov ecx, 0x10063a14
call fcn.1001d780
test al, al
je 0x1003118d
mov eax, dword [edi + 0x1a20]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
cmp ecx, eax
je 0x10031073
mov edx, eax
call fcn.10023cc0
call fcn.10033d80
movss xmm0, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
mulss xmm0, dword [0x10063c9c]
and eax, 0x7890002
mov ecx, dword [0x100de918]
or eax, 0x740080
mov dword [esp + 0x44], eax
ucomiss xmm0, dword [0x10063b68]
mov eax, dword [ecx + 0x1a20]
mov byte [eax + 0x78], 1
mov ecx, dword [ecx + 0x1a20]
mov dword [esp + 0x4c], ecx
lahf
test ah, 0x44
jp 0x100310c2
movss xmm0, dword [ecx + 0x228]
lea esi, [ecx + 0x17c]
movss dword [ecx + 0x168], xmm0
mov edi, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, edi
jne 0x100310fb
inc ecx
test edi, edi
je 0x100310e9
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x100310ee
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10035490
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x1c]
mov eax, dword [eax + 0x168]
mov dword [ecx + edx*4], eax
lea eax, [edi + 0x2c44]
mov edx, dword [esp + 0x28]
mov ecx, str.picker
inc dword [esi]
push eax
mov eax, dword [esp + 0x48]
push eax
call fcn.10031610
mov ecx, dword [0x100de918]
add esp, 8
or byte [esp + 0xf], al
mov eax, dword [ecx + 0x1a20]
mov byte [eax + 0x78], 1
mov ecx, dword [ecx + 0x1a20]
mov edx, dword [ecx + 0x17c]
sub edx, 1
mov dword [ecx + 0x17c], edx
jne 0x10031172
movss xmm0, dword [ecx + 0x228]
movss dword [ecx + 0x168], xmm0
call fcn.1001d8a0
jmp 0x10031191
mov eax, dword [ecx + 0x184]
movss xmm0, dword [eax + edx*4 - 4]
movss dword [ecx + 0x168], xmm0
call fcn.1001d8a0
jmp 0x10031191
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov esi, dword [0x100de918]
mov edx, dword [esp + 0x48]
cmp dword [esp + 0x2c], edx
je 0x1003121e
test cl, cl
js 0x1003121e
mov eax, dword [esi + 0x1a20]
movss xmm1, dword [edi + 0x155c]
mov byte [eax + 0x78], 1
mov edi, dword [esi + 0x1a20]
cmp byte [edi + 0x7b], 0
jne 0x1003120f
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x100311d7
movss xmm1, dword [esi + 0x1554]
addss xmm1, dword [edi + 0xd0]
movss xmm0, dword [edi + 0xd4]
movss dword [edi + 0xc8], xmm1
movss dword [edi + 0xcc], xmm0
mov eax, dword [edi + 0xf0]
mov dword [edi + 0xe8], eax
mov eax, dword [edi + 0xf4]
mov dword [edi + 0xec], eax
mov ecx, dword [esp + 0x2c]
call fcn.10023cc0
mov esi, dword [0x100de918]
cmp dword [esp + 0x14], 0
jne 0x100312d6
cmp byte [esp + 0x1b], 0
jne 0x1003124a
movups xmm0, xmmword [esp + 0xf8]
cvtdq2ps xmm0, xmm0
divps xmm0, xmmword [0x10064460]
movups xmmword [esp + 0xe8], xmm0
test dword [esp + 0x10], 0x200000
je 0x1003128d
movss xmm2, dword [esp + 0xf0]
lea eax, [esp + 0xf0]
movss xmm1, dword [esp + 0xec]
lea edx, [esp + 0xec]
movss xmm0, dword [esp + 0xe8]
lea ecx, [esp + 0xe8]
push eax
call fcn.10014e40
add esp, 4
cmp byte [esp + 0xf], 0
je 0x100312d6
cmp byte [esp + 0x40], 0
mov eax, dword [esp + 0x28]
movss xmm0, dword [esp + 0xe8]
movss dword [eax], xmm0
movss xmm0, dword [esp + 0xec]
movss dword [eax + 4], xmm0
movss xmm0, dword [esp + 0xf0]
movss dword [eax + 8], xmm0
je 0x100312d6
movss xmm0, dword [esp + 0xf4]
movss dword [eax + 0xc], xmm0
mov eax, dword [esi + 0x1a20]
dec dword [eax + 0x1c8]
call fcn.10034320
mov edi, dword [esp + 0x24]
test byte [edi + 0x108], 1
je 0x10031435
test dword [esp + 0x10], 0x200
jne 0x10031435
mov esi, dword [0x100de918]
cmp byte [esi + 0x1d00], 0
je 0x100313ee
mov ecx, dword [esi + 0x1a20]
mov edx, dword [ecx + 0x108]
test dl, 1
je 0x100313ee
mov edi, dword [esi + 0x1a24]
test edi, edi
je 0x100313ea
mov eax, dword [ecx + 0x328]
cmp eax, dword [edi + 0x328]
jne 0x100313ea
lea edi, [ecx + 0x11c]
test dl, 2
jne 0x1003135f
lea edi, [ecx + 0x10c]
mov eax, dword [ecx + 0x104]
test eax, eax
jne 0x1003136f
push edi
call fcn.10016070
cmp dword [esi + 0x1d14], eax
je 0x100313ea
movups xmm0, xmmword [edi]
mov ecx, str._COL3F
mov dword [esi + 0x1d54], eax
mov byte [esi + 0x1d01], 1
movups xmmword [esi + 0x1d44], xmm0
call fcn.10034d00
mov esi, dword [esp + 0x28]
test eax, eax
je 0x100313b5
mov eax, dword [eax]
mov byte [esp + 0xf], 1
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov ecx, str._COL4F
call fcn.10034d00
mov ecx, eax
test ecx, ecx
je 0x100313dd
mov eax, dword [esp + 0x30]
shl eax, 2
push eax
push dword [ecx]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + 0xf], 1
mov esi, dword [0x100de918]
mov byte [esi + 0x1d01], 0
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10031412
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 0x1a3c]
test ecx, ecx
je 0x10031412
cmp dword [edx + 0x1a5c], eax
jne 0x10031412
mov dword [edi + 0x104], ecx
mov al, byte [esp + 0xf]
test al, al
je 0x10031421
mov byte [esi + 0x1a4b], 1
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
call fcn.1004db16
mov esp, ebp
pop ebp
ret
mov esi, dword [0x100de918]
jmp 0x100313ee