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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
mov eax, dword [0x1020a0c0]
xor eax, esp
mov dword [esp + 0xf4], eax
mov dword [esp + 0x20], edx
mov edx, dword [0x104e2068]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edx
mov eax, dword [edx + 0x1bec]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x18], ecx
mov byte [eax + 0xa8], 1
mov eax, dword [edx + 0x1bec]
mov dword [esp + 0x4c], eax
cmp byte [eax + 0xab], 0
je 0x10179a1f
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.1019d163
mov esp, ebp
pop ebp
ret 4
test byte [edx + 0x1cd4], 1
movss xmm2, dword [edx + 0x159c]
addss xmm2, xmm2
addss xmm2, dword [edx + 0x1988]
movss dword [esp + 0x74], xmm2
je 0x10179a4c
movss xmm0, dword [edx + 0x1cd8]
jmp 0x10179a54
movss xmm0, dword [eax + 0x1f0]
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x10179a99
cmp dword [eax + 0x1d0], 0
movss xmm1, dword [eax + 0x288]
jne 0x10179a76
cmp dword [edx + 0x1f2c], 0
je 0x10179a7e
movss xmm1, dword [eax + 0x258]
subss xmm1, dword [eax + 0xec]
addss xmm1, xmm0
movss xmm0, dword [0x101ff140]
maxss xmm0, xmm1
xorps xmm1, xmm1
cvttss2si esi, xmm0
mov dword [esp + 0x20], esi
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test cl, 0x10
jne 0x10179ab8
movaps xmm1, xmm2
addss xmm1, dword [edx + 0x15b0]
movss dword [esp + 0x64], xmm1
subss xmm0, xmm1
mov dword [esp + 0x58], edi
movss dword [esp + 0x60], xmm0
cmp edi, 0xffffffff
jae 0x10179aed
mov esi, edi
mov cl, byte [esi]
test cl, cl
je 0x10179aed
cmp cl, 0x23
jne 0x10179ae3
cmp byte [esi + 1], cl
je 0x10179aed
inc esi
mov dword [esp + 0x58], esi
cmp esi, 0xffffffff
jb 0x10179ad3
mov dword [edx + 0x1cd4], 0
call fcn.1015f0f0
mov edi, dword [0x104e2068]
xor edx, edx
mov eax, dword [edi + 0x1bec]
add eax, 0xe0
mov dword [esp + 0x34], eax
mov ecx, dword [eax]
mov eax, dword [eax + 8]
push dword [eax + ecx*4 - 4]
mov ecx, dword [esp + 0x60]
call fcn.10152b90
mov edx, dword [esp + 0x34]
mov dword [esp + 0x50], eax
mov eax, dword [edx + 4]
mov ecx, dword [edx]
mov dword [esp + 0x40], eax
cmp ecx, eax
jne 0x10179b6a
inc ecx
test eax, eax
je 0x10179b4e
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar eax, 1
add eax, dword [esp + 0x40]
jmp 0x10179b53
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.100be400
mov edi, dword [0x104e2068]
mov edx, dword [esp + 0x34]
mov ecx, dword [edx]
mov eax, dword [edx + 8]
mov esi, dword [esp + 0x50]
mov dword [eax + ecx*4], esi
mov ecx, dword [esp + 0x18]
inc dword [edx]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x78], ecx
test ecx, 0x20
je 0x10179b9c
and ecx, 0xff9fffff
or ecx, 0x100008
mov dword [esp + 0x18], ecx
test cl, 8
jne 0x10179bb6
mov edx, ecx
mov ecx, dword [esp + 0x28]
call fcn.1017e6a0
mov edi, dword [0x104e2068]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 0x2e88]
test ecx, 0x700000
jne 0x10179bd1
mov eax, edx
and eax, 0x700000
or ecx, eax
test ecx, 0x1800000
jne 0x10179be2
mov eax, edx
and eax, 0x1800000
or ecx, eax
test ecx, 0x6000000
jne 0x10179bf3
mov eax, edx
and eax, 0x6000000
or ecx, eax
test ecx, 0x18000000
jne 0x10179c04
mov eax, edx
and eax, 0x18000000
or ecx, eax
and edx, 0xe00fffff
or ecx, edx
mov edx, ecx
mov dword [esp + 0x18], ecx
shr edx, 1
mov eax, ecx
shr eax, 0x13
not dl
and eax, 0xffffff01
and edx, 0xffffff01
mov dword [esp + 0x50], eax
movzx eax, dl
add eax, 3
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
movss xmm3, dword [eax]
movss xmm1, dword [eax + 4]
movss xmm2, dword [eax + 8]
movss dword [esp + 0x98], xmm3
movss dword [esp + 0x9c], xmm1
movss dword [esp + 0xa0], xmm2
test dl, dl
je 0x10179c70
movss xmm4, dword [eax + 0xc]
jmp 0x10179c78
movss xmm4, dword [0x101ff140]
mov eax, ecx
movss dword [esp + 0xa4], xmm4
and eax, 0x10100000
mov dword [esp + 0x7c], eax
cmp eax, 0x10100000
jne 0x10179d02
lea eax, [esp + 0xa0]
movaps xmm0, xmm3
push eax
lea edx, [esp + 0xa0]
lea ecx, [esp + 0x9c]
call fcn.10153240
movss xmm4, dword [esp + 0xa4]
movss xmm2, dword [esp + 0xa0]
movss xmm1, dword [esp + 0x9c]
movss xmm3, dword [esp + 0x98]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
comiss xmm3, dword [0x101fefe0]
movss xmm5, dword [0x101ff514]
movss xmm0, dword [0x101ff0d4]
jb 0x10179e39
movaps xmm7, xmm0
jmp 0x10179e3c
mov eax, ecx
and eax, 0x8200000
cmp eax, 0x8200000
jne 0x10179cd9
comiss xmm2, xmm1
xorps xmm6, xmm6
movaps xmm5, xmm1
movaps xmm7, xmm2
jbe 0x10179d2c
movss xmm6, dword [0x101ff52c]
movaps xmm5, xmm2
movaps xmm7, xmm1
comiss xmm5, xmm3
movaps xmm2, xmm3
jbe 0x10179d49
movss xmm0, dword [0x101ff510]
movaps xmm2, xmm5
subss xmm0, xmm6
movaps xmm5, xmm3
movaps xmm6, xmm0
movaps xmm0, xmm5
mov edx, dword [esp + 0x1c]
minss xmm0, xmm7
mov esi, dword [esp + 0x28]
movaps xmm1, xmm2
movss dword [esp + 0xa0], xmm2
movaps xmm3, xmm5
subss xmm3, xmm7
mov eax, dword [edx + 0x2e94]
cmp eax, dword [esi]
subss xmm1, xmm0
mov esi, dword [esp + 0x20]
movaps xmm0, xmm1
mulss xmm0, dword [0x101ff2c0]
addss xmm0, dword [0x101feff4]
divss xmm3, xmm0
movaps xmm0, xmm2
addss xmm0, dword [0x101feff4]
addss xmm3, xmm6
divss xmm1, xmm0
andps xmm3, xmmword [0x101ffbc0]
movss dword [esp + 0x98], xmm3
movss dword [esp + 0x9c], xmm1
jne 0x10179cdd
mov edi, dword [esp + 0x28]
mov eax, dword [edx + 0x2e98]
cmp eax, dword [edi + 4]
mov edi, dword [0x104e2068]
jne 0x10179cdd
mov esi, dword [esp + 0x28]
mov eax, dword [edx + 0x2e9c]
cmp eax, dword [esi + 8]
mov esi, dword [esp + 0x20]
jne 0x10179cdd
ucomiss xmm1, dword [0x101fefe0]
lahf
test ah, 0x44
jp 0x10179e12
movss xmm3, dword [edx + 0x2e8c]
movss dword [esp + 0x98], xmm3
ucomiss xmm2, dword [0x101fefe0]
lahf
test ah, 0x44
jp 0x10179cdd
movss xmm1, dword [edx + 0x2e90]
movss dword [esp + 0x9c], xmm1
jmp 0x10179cdd
movaps xmm7, xmm5
comiss xmm1, dword [0x101fefe0]
movss xmm6, dword [0x101ff458]
mulss xmm3, xmm6
addss xmm3, xmm7
cvttss2si eax, xmm3
mov dword [esp + 0xa8], eax
jb 0x10179e65
movaps xmm3, xmm0
jmp 0x10179e68
movaps xmm3, xmm5
comiss xmm2, dword [0x101fefe0]
mulss xmm1, xmm6
addss xmm1, xmm3
cvttss2si eax, xmm1
mov dword [esp + 0xac], eax
jb 0x10179e89
movaps xmm1, xmm0
jmp 0x10179e8c
movaps xmm1, xmm5
comiss xmm4, dword [0x101fefe0]
mulss xmm2, xmm6
addss xmm2, xmm1
cvttss2si eax, xmm2
mov dword [esp + 0xb0], eax
jae 0x10179eab
movaps xmm0, xmm5
cmp dword [edx + 0x15f0], 0
mulss xmm4, xmm6
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
addss xmm4, xmm0
cvttss2si eax, xmm4
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x4c]
movss xmm2, dword [eax + 0xec]
movss xmm3, dword [eax + 0xf0]
movss dword [esp + 0x44], xmm2
movss dword [esp + 0x48], xmm3
jne 0x10179ef9
movss xmm1, dword [esp + 0x64]
jmp 0x10179efc
xorps xmm1, xmm1
movaps xmm0, xmm2
addss xmm0, xmm1
movss dword [eax + 0xec], xmm0
mov eax, ecx
and eax, 0x20
test ecx, 0x300000
je 0x1017a315
test eax, eax
jne 0x1017a315
mov eax, dword [esp + 0x30]
movss xmm2, dword [edx + 0x15b0]
dec eax
movss xmm1, dword [esp + 0x60]
movaps xmm0, xmm2
push 0
push 0
movd xmm3, eax
cvtdq2ps xmm3, xmm3
mulss xmm0, xmm3
subss xmm1, xmm0
movd xmm0, dword [esp + 0x38]
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvttss2si eax, xmm1
movss xmm1, dword [0x101ff140]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
maxss xmm1, xmm0
movss xmm0, dword [esp + 0x68]
addss xmm2, xmm1
movss dword [esp + 0x5c], xmm1
movss xmm1, dword [0x101ff140]
mulss xmm2, xmm3
movss xmm3, dword [0x101ff4f4]
subss xmm0, xmm2
movss xmm2, dword [edi + 0x1988]
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, ecx
and eax, 0x1000000
mov ecx, str.M:000
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x2c], eax
mov eax, str.M:0.000
cmove eax, ecx
push eax
push ecx
mov ecx, dword [edi + 0x1984]
lea eax, [esp + 0x48]
maxss xmm1, xmm0
mov dword [esp], 0xbf800000
push eax
movss dword [esp + 0x54], xmm1
call fcn.1016aa90
movss xmm0, dword [esp + 0x38]
addss xmm0, dword [0x101ff138]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x54]
movd xmm1, eax
mov eax, dword [esp + 0x18]
cvtdq2ps xmm1, xmm1
comiss xmm1, xmm0
jb 0x1017a01f
xor edx, edx
jmp 0x1017a02e
mov edx, eax
and edx, 0x200000
neg edx
sbb edx, edx
neg edx
inc edx
xor ecx, ecx
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0x30], ecx
jbe 0x1017a2f6
shl edx, 4
cmp dword [esp + 0x24], ecx
je 0x1017a1a3
mov esi, dword [esp + 0x1c]
lea edx, [edx + 0x101fd710]
and eax, 8
mov dword [esp + 0x24], edx
mov dword [esp + 0x6c], eax
test ecx, ecx
je 0x1017a082
movss xmm1, dword [esi + 0x15b0]
xorps xmm0, xmm0
call fcn.1015ee50
movss xmm0, dword [esp + 0x54]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x30]
jl 0x1017a095
movss xmm0, dword [esp + 0x40]
or dword [edi + 0x1cd4], 1
cmp byte [esp + 0x50], 0
movss dword [edi + 0x1cd8], xmm0
je 0x1017a0b0
xorps xmm0, xmm0
jmp 0x1017a0b8
movss xmm0, dword [0x101ff140]
push 0
push dword [edx]
lea eax, [esp + 0x34]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [0x101ff01c]
mov edx, 8
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0
push eax
lea eax, [esp + 0xa8]
lea eax, [eax + ecx*4]
mov ecx, dword [ecx*4 + 0x101fd65c]
push eax
call fcn.10172a30
mov cl, byte [esp + 0x16]
mov edi, dword [0x104e2068]
or cl, al
or byte [esp + 0x17], cl
cmp dword [esp + 0x6c], 0
mov byte [esp + 0x16], cl
jne 0x1017a17b
cmp byte [edi + 0x42b], 0
je 0x1017a17b
mov ecx, 8
call fcn.10155740
test al, al
je 0x1017a17b
mov eax, dword [edi + 0x1bec]
xor edx, edx
mov ecx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe8]
push dword [eax + ecx*4 - 4]
mov ecx, str.context
call fcn.10152b90
cmp dword [edi + 0x1c24], eax
jne 0x1017a15a
mov dword [edi + 0x1c28], eax
cmp dword [edi + 0x1c5c], eax
jne 0x1017a169
mov byte [edi + 0x1c60], 1
mov edx, 1
mov ecx, eax
call fcn.1015fce0
mov edi, dword [0x104e2068]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
add edx, 4
movss xmm0, dword [esp + 0x54]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], edx
cmp ecx, dword [esp + 0x30]
jl 0x1017a060
jmp 0x1017a2f2
xor ecx, ecx
lea edx, [edx + 0x101fd62c]
cmp byte [esp + 0x50], cl
mov esi, 0xff
mov dword [esp + 0x2c], ecx
cmovne esi, ecx
mov dword [esp + 0x24], edx
and eax, 8
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
nop
test ecx, ecx
jle 0x1017a1f2
movss xmm1, dword [esi + 0x15b0]
xorps xmm0, xmm0
call fcn.1015ee50
movss xmm0, dword [esp + 0x54]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x30]
jl 0x1017a205
movss xmm0, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
or dword [edi + 0x1cd4], 1
push 0
push dword [edx]
mov dword [esp + 0x74], eax
mov edx, 4
lea eax, [esp + 0x74]
movss dword [edi + 0x1cd8], xmm0
movss xmm0, dword [0x101ff140]
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0
push eax
lea eax, [esp + 0xb8]
lea eax, [eax + ecx*4]
mov ecx, dword [ecx*4 + 0x101fd65c]
push eax
call fcn.10172a30
or byte [esp + 0x16], al
cmp dword [esp + 0x50], 0
mov edi, dword [0x104e2068]
jne 0x1017a2cf
cmp byte [edi + 0x42b], 0
je 0x1017a2cf
mov ecx, 8
call fcn.10155740
test al, al
je 0x1017a2cf
mov eax, dword [edi + 0x1bec]
xor edx, edx
mov ecx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe8]
push dword [eax + ecx*4 - 4]
mov ecx, str.context
call fcn.10152b90
cmp dword [edi + 0x1c24], eax
jne 0x1017a2ae
mov dword [edi + 0x1c28], eax
cmp dword [edi + 0x1c5c], eax
jne 0x1017a2bd
mov byte [edi + 0x1c60], 1
mov edx, 1
mov ecx, eax
call fcn.1015fce0
mov edi, dword [0x104e2068]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
add edx, 4
movss xmm0, dword [esp + 0x54]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], edx
cmp ecx, dword [esp + 0x30]
jl 0x1017a1d0
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x20], eax
movss xmm3, dword [esp + 0x48]
movss xmm2, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
jmp 0x1017a5b3
mov dword [esp + 0x20], eax
test ecx, 0x400000
je 0x1017a5af
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1017a5af
cmp byte [esp + 0x34], 0
mov eax, 0xff
je 0x1017a3b7
mov ecx, dword [esp + 0xb4]
test ecx, ecx
jns 0x1017a352
mov dword [esp + 0x40], 0
jmp 0x1017a35b
cmp ecx, eax
cmovg ecx, eax
mov dword [esp + 0x40], ecx
mov edi, dword [esp + 0xb0]
test edi, edi
jns 0x1017a36a
xor edi, edi
jmp 0x1017a36f
cmp edi, eax
cmovg edi, eax
mov edx, dword [esp + 0xac]
test edx, edx
jns 0x1017a37e
xor edx, edx
jmp 0x1017a383
cmp edx, eax
cmovg edx, eax
mov ecx, dword [esp + 0xa8]
test ecx, ecx
jns 0x1017a392
xor ecx, ecx
jmp 0x1017a397
cmp ecx, eax
cmovg ecx, eax
push dword [esp + 0x40]
lea eax, [esp + 0xbc]
push edi
push edx
push ecx
push 0x101fd3f8
push 0x40
push eax
call fcn.10152b40
add esp, 0x1c
jmp 0x1017a40d
mov edi, dword [esp + 0xb0]
test edi, edi
jns 0x1017a3c6
xor edi, edi
jmp 0x1017a3cb
cmp edi, eax
cmovg edi, eax
mov edx, dword [esp + 0xac]
test edx, edx
jns 0x1017a3da
xor edx, edx
jmp 0x1017a3df
cmp edx, eax
cmovg edx, eax
mov ecx, dword [esp + 0xa8]
test ecx, ecx
jns 0x1017a3ee
xor ecx, ecx
jmp 0x1017a3f3
cmp ecx, eax
cmovg ecx, eax
push edi
push edx
push ecx
push 0x101fd40c
lea eax, [esp + 0xc8]
push 0x40
push eax
call fcn.10152b40
add esp, 0x18
mov eax, dword [0x104e2068]
xor edx, edx
movss xmm5, dword [esp + 0x60]
mov ecx, str.Text
push 0
push 0
or dword [eax + 0x1cd4], 1
movss dword [eax + 0x1cd8], xmm5
lea eax, [esp + 0x74]
push 6
push eax
push 0x40
lea eax, [esp + 0xcc]
mov dword [esp + 0x80], 0
push eax
mov dword [esp + 0x88], 0
call fcn.101762b0
test al, al
je 0x1017a50c
mov byte [esp + 0x16], 1
lea ecx, [esp + 0xb8]
mov al, byte [ecx]
cmp al, 0x23
je 0x1017a480
cmp al, 0x20
je 0x1017a480
cmp al, 9
jne 0x1017a483
inc ecx
jmp 0x1017a472
cmp byte [esp + 0x34], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xb4], 0xff
je 0x1017a4e6
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0xb4]
push eax
push str._02X_02X_02X_02X
push ecx
call fcn.100c3ee0
add esp, 0x18
jmp 0x1017a50c
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0xb0]
push eax
push str._02X_02X_02X
push ecx
call fcn.100c3ee0
add esp, 0x14
mov ecx, dword [esp + 0x18]
xor eax, eax
mov edi, dword [0x104e2068]
mov dword [esp + 0x20], eax
test cl, 8
jne 0x1017a300
mov dword [esp + 0x20], eax
cmp byte [edi + 0x42b], al
je 0x1017a300
lea ecx, [eax + 8]
mov dword [esp + 0x20], eax
call fcn.10155740
test al, al
je 0x1017a59b
mov eax, dword [edi + 0x1bec]
xor edx, edx
mov ecx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe8]
push dword [eax + ecx*4 - 4]
mov ecx, str.context
call fcn.10152b90
cmp dword [edi + 0x1c24], eax
jne 0x1017a575
mov dword [edi + 0x1c28], eax
cmp dword [edi + 0x1c5c], eax
jne 0x1017a584
mov byte [edi + 0x1c60], 1
mov edx, 1
mov ecx, eax
call fcn.1015fce0
mov edi, dword [0x104e2068]
jmp 0x1017a2f6
movss xmm2, dword [esp + 0x44]
movss xmm3, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], 0
test cl, 0x10
jne 0x1017a936
test eax, eax
jne 0x1017a5e0
cmp dword [edx + 0x15f0], eax
je 0x1017a5e0
movss xmm1, dword [esp + 0x60]
addss xmm1, dword [edx + 0x15b0]
jmp 0x1017a5e3
xorps xmm1, xmm1
cmp byte [esp + 0x34], 0
movaps xmm0, xmm2
mov eax, dword [esp + 0x4c]
addss xmm0, xmm1
movss dword [eax + 0xf0], xmm3
movss dword [eax + 0xec], xmm0
mov eax, dword [esp + 0x28]
je 0x1017a610
movss xmm1, dword [eax + 0xc]
jmp 0x1017a618
movss xmm1, dword [0x101ff140]
movss xmm0, dword [eax]
lea edx, [esp + 0x80]
movss dword [esp + 0x80], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0x84], xmm0
movss xmm0, dword [eax + 8]
movss dword [esp + 0x88], xmm0
movss dword [esp + 0x8c], xmm1
push ecx
mov dword [esp + 0x3c], 0
mov ecx, str.ColorButton
movss xmm0, dword [esp + 0x3c]
mov dword [esp + 0x40], 0
movss xmm1, dword [esp + 0x40]
call fcn.1017d9c0
test al, al
je 0x1017a751
test byte [esp + 0x18], 4
jne 0x1017a751
mov edi, dword [esp + 0x1c]
xor edx, edx
movups xmm0, xmmword [esp + 0x80]
mov eax, dword [0x104e2068]
movups xmmword [edi + 0x2ea0], xmm0
mov eax, dword [eax + 0x1bec]
mov ecx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe8]
push dword [eax + ecx*4 - 4]
mov ecx, 0x101fd470
call fcn.10152b90
mov ecx, eax
mov eax, dword [0x104e2068]
cmp dword [eax + 0x1c24], ecx
jne 0x1017a6da
mov dword [eax + 0x1c28], ecx
cmp dword [eax + 0x1c5c], ecx
jne 0x1017a6e9
mov byte [eax + 0x1c60], 1
xor edx, edx
call fcn.1015fce0
movss xmm0, dword [edi + 0x15ac]
mov eax, dword [esp + 0x4c]
mov edi, dword [0x104e2068]
movss xmm1, dword [eax + 0x140]
addss xmm0, dword [eax + 0x14c]
subss xmm1, dword [0x101ff140]
or dword [edi + 0x1c74], 1
mov dword [edi + 0x1c8c], 0
mov dword [edi + 0x1c90], 0
movss dword [edi + 0x1c88], xmm0
movss dword [edi + 0x1c84], xmm1
mov dword [edi + 0x1c78], 1
jmp 0x1017a757
mov edi, dword [0x104e2068]
mov ecx, dword [esp + 0x18]
test cl, 8
jne 0x1017a7cc
cmp byte [edi + 0x42b], 0
je 0x1017a7cc
mov ecx, 8
call fcn.10155740
test al, al
je 0x1017a7c8
mov eax, dword [edi + 0x1bec]
xor edx, edx
mov ecx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe8]
push dword [eax + ecx*4 - 4]
mov ecx, str.context
call fcn.10152b90
cmp dword [edi + 0x1c24], eax
jne 0x1017a7a7
mov dword [edi + 0x1c28], eax
cmp dword [edi + 0x1c5c], eax
jne 0x1017a7b6
mov byte [edi + 0x1c60], 1
mov edx, 1
mov ecx, eax
call fcn.1015fce0
mov edi, dword [0x104e2068]
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x1d30]
cmp eax, dword [edi + 0x1d3c]
jg 0x1017a7e9
mov dword [edi + 0x1c74], 0
jmp 0x1017a936
mov eax, dword [edi + 0x1bec]
xor edx, edx
mov ecx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe8]
push dword [eax + ecx*4 - 4]
mov ecx, 0x101fd470
call fcn.10152b90
cmp dword [edi + 0x1c24], eax
jne 0x1017a819
mov dword [edi + 0x1c28], eax
cmp dword [edi + 0x1c5c], eax
jne 0x1017a828
mov byte [edi + 0x1c60], 1
mov edx, 0x141
mov ecx, eax
call fcn.10160020
test al, al
je 0x1017a92c
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
mov eax, dword [edi + 0x1bec]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x58]
cmp ecx, eax
je 0x1017a8a2
push 0
mov edx, eax
call fcn.1016d430
mov ecx, dword [0x104e2068]
mov eax, dword [ecx + 0x1bec]
mov byte [eax + 0xa8], 1
mov eax, dword [ecx + 0x1bec]
cmp byte [eax + 0xab], 0
jne 0x1017a8a2
movss xmm0, dword [0x101ff52c]
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call fcn.1015eb50
mov eax, dword [0x104e2068]
mov ecx, str.picker
movss xmm0, dword [esp + 0x74]
mulss xmm0, dword [0x101ff2ec]
mov edx, dword [esp + 0x28]
or dword [eax + 0x1cd4], 1
movss dword [eax + 0x1cd8], xmm0
lea eax, [edi + 0x2ea0]
push eax
mov eax, dword [esp + 0x7c]
and eax, 0x1f890002
or eax, 0x740080
push eax
call fcn.1017af50
mov edi, dword [0x104e2068]
or byte [esp + 0x16], al
mov eax, dword [edi + 0x1bec]
cmp dword [edi + 0x1d54], eax
jne 0x1017a910
mov dword [edi + 0x1e58], eax
mov dword [edi + 0x1e5c], 2
test dword [eax + 8], 0x1000000
je 0x1017a920
mov byte [edi + 0x1b9e], 1
call fcn.1015e0b0
mov byte [edi + 0x1b9e], 0
mov ecx, dword [esp + 0x18]
mov edi, dword [0x104e2068]
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x5c], eax
je 0x1017a9ab
test cl, cl
js 0x1017a9ab
cmp dword [esp + 0x20], 0
je 0x1017a957
movss xmm0, dword [esp + 0x64]
mov esi, dword [esp + 0x1c]
jmp 0x1017a96a
movd xmm0, esi
mov esi, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esi + 0x15b0]
movss xmm1, dword [esp + 0x44]
mov edx, eax
mov ecx, dword [esp + 0x4c]
addss xmm1, xmm0
movss xmm0, dword [esp + 0x48]
addss xmm0, dword [esi + 0x159c]
push 0
movss dword [ecx + 0xec], xmm1
movss dword [ecx + 0xf0], xmm0
mov ecx, dword [esp + 0x60]
call fcn.1016d430
mov edi, dword [0x104e2068]
jmp 0x1017a9af
mov esi, dword [esp + 0x1c]
cmp byte [esp + 0x16], 0
je 0x1017ab5b
cmp dword [esp + 0x24], 0
jne 0x1017ab5b
cmp byte [esp + 0x17], 0
jne 0x1017a9e6
movups xmm0, xmmword [esp + 0xa8]
cvtdq2ps xmm0, xmm0
divps xmm0, xmmword [0x101ffb80]
movups xmmword [esp + 0x98], xmm0
mov eax, dword [esp + 0x18]
and eax, 0x8200000
cmp eax, 0x8200000
jne 0x1017aa5a
movss xmm0, dword [esp + 0x98]
lea eax, [esp + 0xa0]
movss xmm1, dword [esp + 0x9c]
lea edx, [esp + 0x9c]
movss xmm2, dword [esp + 0xa0]
lea ecx, [esp + 0x98]
push eax
movss dword [esi + 0x2e8c], xmm0
movss dword [esi + 0x2e90], xmm1
call fcn.10153240
movq xmm0, qword [esp + 0x98]
mov eax, dword [esp + 0xa0]
movq qword [esi + 0x2e94], xmm0
mov dword [esi + 0x2e9c], eax
cmp dword [esp + 0x7c], 0x10100000
jne 0x1017ab19
movss xmm1, dword [esp + 0x9c]
xorps xmm5, xmm5
movss xmm4, dword [esp + 0xa0]
movaps xmm0, xmm1
comiss xmm4, xmm0
movss xmm3, dword [esp + 0x98]
movaps xmm2, xmm3
jbe 0x1017aa9f
movss xmm5, dword [0x101ff52c]
movaps xmm1, xmm4
movaps xmm4, xmm0
comiss xmm1, xmm2
jbe 0x1017aab9
movss xmm0, dword [0x101ff510]
movaps xmm3, xmm1
subss xmm0, xmm5
movaps xmm1, xmm2
movaps xmm5, xmm0
movaps xmm0, xmm1
movss dword [esp + 0xa0], xmm3
minss xmm0, xmm4
movaps xmm2, xmm3
subss xmm1, xmm4
subss xmm2, xmm0
movaps xmm0, xmm2
mulss xmm0, dword [0x101ff2c0]
addss xmm0, dword [0x101feff4]
divss xmm1, xmm0
movaps xmm0, xmm3
addss xmm0, dword [0x101feff4]
addss xmm1, xmm5
divss xmm2, xmm0
andps xmm1, xmmword [0x101ffbc0]
movss dword [esp + 0x98], xmm1
movss dword [esp + 0x9c], xmm2
jmp 0x1017ab34
movss xmm3, dword [esp + 0xa0]
movss xmm2, dword [esp + 0x9c]
movss xmm1, dword [esp + 0x98]
cmp byte [esp + 0x34], 0
mov eax, dword [esp + 0x28]
movss dword [eax], xmm1
movss dword [eax + 4], xmm2
movss dword [eax + 8], xmm3
je 0x1017ab5b
movss xmm0, dword [esp + 0xa4]
movss dword [eax + 0xc], xmm0
mov eax, dword [edi + 0x1bec]
dec dword [eax + 0xe0]
call fcn.1015f220
mov edi, dword [esp + 0x4c]
test byte [edi + 0x13c], 1
je 0x1017acb8
test dword [esp + 0x18], 0x200
jne 0x1017acb8
call fcn.10163900
test al, al
je 0x1017acb8
xor edx, edx
mov byte [esp + 0x17], 0
mov ecx, str._COL3F
call fcn.10163980
mov edi, dword [esp + 0x28]
test eax, eax
je 0x1017abcb
mov eax, dword [eax]
mov byte [esp + 0x17], 1
mov byte [esp + 0x16], 1
movq xmm0, qword [eax]
movq qword [edi], xmm0
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
xor edx, edx
mov ecx, str._COL4F
call fcn.10163980
test eax, eax
je 0x1017abf5
mov ecx, dword [esp + 0x30]
shl ecx, 2
push ecx
push dword [eax]
push edi
call fcn.1019ead0
add esp, 0xc
mov byte [esp + 0x16], 1
jmp 0x1017ac00
cmp byte [esp + 0x17], 0
je 0x1017aca5
test dword [esp + 0x18], 0x10000000
je 0x1017aca5
movss xmm2, dword [edi + 4]
movss xmm4, dword [edi + 8]
comiss xmm4, xmm2
movss xmm3, dword [edi]
jbe 0x1017ac34
movss xmm5, dword [0x101ff52c]
movaps xmm0, xmm2
movaps xmm2, xmm4
movaps xmm4, xmm0
jmp 0x1017ac37
xorps xmm5, xmm5
comiss xmm2, xmm3
jbe 0x1017ac54
movaps xmm0, xmm3
movaps xmm3, xmm2
movaps xmm2, xmm0
movss xmm0, dword [0x101ff510]
subss xmm0, xmm5
movaps xmm5, xmm0
movaps xmm0, xmm2
movss dword [edi + 8], xmm3
minss xmm0, xmm4
movaps xmm1, xmm3
subss xmm2, xmm4
subss xmm1, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x101ff2c0]
addss xmm0, dword [0x101feff4]
divss xmm2, xmm0
movaps xmm0, xmm3
addss xmm0, dword [0x101feff4]
addss xmm2, xmm5
divss xmm1, xmm0
andps xmm2, xmmword [0x101ffbc0]
movss dword [edi], xmm2
movss dword [edi + 4], xmm1
mov ecx, dword [0x104e2068]
mov edi, dword [esp + 0x4c]
mov byte [ecx + 0x1e9e], 0
jmp 0x1017acbe
mov ecx, dword [0x104e2068]
mov edx, dword [esp + 0x24]
test edx, edx
je 0x1017acde
mov eax, dword [esi + 0x1c24]
test eax, eax
je 0x1017acde
cmp dword [esi + 0x1c50], edx
jne 0x1017acde
mov dword [edi + 0x138], eax
mov al, byte [esp + 0x16]
test al, al
je 0x1017acfc
mov word [ecx + 0x1c35], 0x101
mov ecx, dword [ecx + 0x1bec]
or dword [ecx + 0x13c], 4
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
xor ecx, esp
call fcn.1019d163
mov esp, ebp
pop ebp
ret 4