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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe8
mov eax, dword [0x101f90c0]
xor eax, esp
mov dword [esp + 0xe4], eax
mov dword [esp + 0x18], edx
mov edx, dword [0x103d8bec]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
mov eax, dword [edx + 0x1bdc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x50], edi
mov dword [esp + 0xc], ecx
mov byte [eax + 0x8c], 1
mov eax, dword [edx + 0x1bdc]
mov dword [esp + 0x1c], eax
cmp byte [eax + 0x8f], 0
je 0x1016bb4f
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.1018e27a
mov esp, ebp
pop ebp
ret 4
test byte [edx + 0x1cc4], 1
movss xmm2, dword [edx + 0x159c]
addss xmm2, xmm2
addss xmm2, dword [edx + 0x1978]
movss dword [esp + 0x68], xmm2
je 0x1016bb7c
movss xmm0, dword [edx + 0x1cc8]
jmp 0x1016bb84
movss xmm0, dword [eax + 0x1b8]
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1016bbc9
cmp dword [eax + 0x198], 0
movss xmm1, dword [eax + 0x250]
jne 0x1016bba6
cmp dword [edx + 0x1f1c], 0
je 0x1016bbae
movss xmm1, dword [eax + 0x220]
subss xmm1, dword [eax + 0xcc]
addss xmm1, xmm0
movss xmm0, dword [0x101eb334]
maxss xmm0, xmm1
xorps xmm1, xmm1
cvttss2si esi, xmm0
mov dword [esp + 0x3c], esi
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test cl, 0x10
jne 0x1016bbe8
movaps xmm1, xmm2
addss xmm1, dword [edx + 0x15b0]
movss dword [esp + 0x58], xmm1
subss xmm0, xmm1
mov dword [esp + 0x4c], edi
movss dword [esp + 0x54], xmm0
cmp edi, 0xffffffff
jae 0x1016bc1d
mov esi, edi
mov cl, byte [esi]
test cl, cl
je 0x1016bc1d
cmp cl, 0x23
jne 0x1016bc13
cmp byte [esi + 1], cl
je 0x1016bc1d
inc esi
mov dword [esp + 0x4c], esi
cmp esi, 0xffffffff
jb 0x1016bc03
mov dword [edx + 0x1cc4], 0
call fcn.10151170
mov edi, dword [0x103d8bec]
xor edx, edx
mov eax, dword [edi + 0x1bdc]
add eax, 0xc0
mov dword [esp + 0x14], eax
mov ecx, dword [eax]
mov eax, dword [eax + 8]
push dword [eax + ecx*4 - 4]
mov ecx, dword [esp + 0x54]
call fcn.10144db0
mov edx, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [edx + 4]
mov ecx, dword [edx]
mov dword [esp + 0x38], eax
cmp ecx, eax
jne 0x1016bc9a
inc ecx
test eax, eax
je 0x1016bc7e
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
add eax, dword [esp + 0x38]
jmp 0x1016bc83
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.100b4680
mov edi, dword [0x103d8bec]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov eax, dword [edx + 8]
mov esi, dword [esp + 0x44]
mov dword [eax + ecx*4], esi
mov ecx, dword [esp + 0xc]
inc dword [edx]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x6c], ecx
test cl, 0x20
je 0x1016bcc9
and ecx, 0xff9fffff
or ecx, 0x100008
mov dword [esp + 0xc], ecx
test cl, 8
jne 0x1016bce3
mov edx, ecx
mov ecx, dword [esp + 0x20]
call fcn.10170760
mov edi, dword [0x103d8bec]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test ecx, 0x700000
jne 0x1016bcfc
mov eax, dword [edx + 0x2e78]
and eax, 0x700000
or ecx, eax
test ecx, 0x1800000
jne 0x1016bd11
mov eax, dword [edx + 0x2e78]
and eax, 0x1800000
or ecx, eax
test ecx, 0x6000000
jne 0x1016bd26
mov eax, dword [edx + 0x2e78]
and eax, 0x6000000
or ecx, eax
test ecx, 0x18000000
jne 0x1016bd3b
mov eax, dword [edx + 0x2e78]
and eax, 0x18000000
or ecx, eax
mov eax, dword [edx + 0x2e78]
and eax, 0xe00fffff
or ecx, eax
mov eax, ecx
mov dword [esp + 0xc], ecx
shr eax, 1
not al
and eax, 0xffffff01
mov dword [esp + 0x40], eax
mov eax, ecx
shr eax, 0x13
and eax, 0xffffff01
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
movzx eax, al
add eax, 3
cmp byte [esp + 0x40], 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
movss xmm3, dword [eax]
movss xmm1, dword [eax + 4]
movss xmm2, dword [eax + 8]
movss dword [esp + 0x88], xmm3
movss dword [esp + 0x8c], xmm1
movss dword [esp + 0x90], xmm2
je 0x1016bdb2
movss xmm4, dword [eax + 0xc]
jmp 0x1016bdba
movss xmm4, dword [0x101eb334]
mov eax, ecx
movss dword [esp + 0x94], xmm4
and eax, 0x10100000
cmp eax, 0x10100000
jne 0x1016be20
lea eax, [esp + 0x90]
movaps xmm0, xmm3
push eax
lea edx, [esp + 0x90]
lea ecx, [esp + 0x8c]
call fcn.10145460
movss xmm4, dword [esp + 0x94]
movss xmm2, dword [esp + 0x90]
movss xmm1, dword [esp + 0x8c]
movss xmm3, dword [esp + 0x88]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
jmp 0x1016bf42
mov eax, ecx
and eax, 0x8200000
cmp eax, 0x8200000
jne 0x1016bf42
comiss xmm2, xmm1
xorps xmm6, xmm6
movaps xmm5, xmm1
movaps xmm7, xmm2
jbe 0x1016be4e
movss xmm6, dword [0x101eb6e4]
movaps xmm5, xmm2
movaps xmm7, xmm1
comiss xmm5, xmm3
movaps xmm2, xmm3
jbe 0x1016be6b
movss xmm0, dword [0x101eb6c8]
movaps xmm2, xmm5
subss xmm0, xmm6
movaps xmm5, xmm3
movaps xmm6, xmm0
movaps xmm0, xmm5
mov esi, dword [esp + 0x20]
minss xmm0, xmm7
mov eax, dword [edx + 0x2e84]
movaps xmm1, xmm2
movss dword [esp + 0x90], xmm2
movaps xmm3, xmm5
subss xmm3, xmm7
cmp eax, dword [esi]
mov esi, dword [esp + 0x3c]
subss xmm1, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x101eb480]
addss xmm0, dword [0x101eb1ec]
divss xmm3, xmm0
movaps xmm0, xmm2
addss xmm0, dword [0x101eb1ec]
addss xmm3, xmm6
divss xmm1, xmm0
andps xmm3, xmmword [0x101ebc30]
movss dword [esp + 0x88], xmm3
movss dword [esp + 0x8c], xmm1
jne 0x1016bf42
mov edi, dword [esp + 0x20]
mov eax, dword [edx + 0x2e88]
cmp eax, dword [edi + 4]
mov edi, dword [0x103d8bec]
jne 0x1016bf42
mov esi, dword [esp + 0x20]
mov eax, dword [edx + 0x2e8c]
cmp eax, dword [esi + 8]
mov esi, dword [esp + 0x3c]
jne 0x1016bf42
ucomiss xmm1, dword [0x101eb1d8]
lahf
test ah, 0x44
jp 0x1016bf24
movss xmm3, dword [edx + 0x2e7c]
movss dword [esp + 0x88], xmm3
ucomiss xmm2, dword [0x101eb1d8]
lahf
test ah, 0x44
jp 0x1016bf42
movss xmm1, dword [edx + 0x2e80]
movss dword [esp + 0x8c], xmm1
comiss xmm3, dword [0x101eb1d8]
movss xmm5, dword [0x101eb6cc]
movss xmm0, dword [0x101eb2c4]
jb 0x1016bf60
movaps xmm7, xmm0
jmp 0x1016bf63
movaps xmm7, xmm5
comiss xmm1, dword [0x101eb1d8]
movss xmm6, dword [0x101eb60c]
mulss xmm3, xmm6
addss xmm3, xmm7
cvttss2si eax, xmm3
mov dword [esp + 0x98], eax
jb 0x1016bf8c
movaps xmm3, xmm0
jmp 0x1016bf8f
movaps xmm3, xmm5
comiss xmm2, dword [0x101eb1d8]
mulss xmm1, xmm6
addss xmm1, xmm3
cvttss2si eax, xmm1
mov dword [esp + 0x9c], eax
jb 0x1016bfb0
movaps xmm1, xmm0
jmp 0x1016bfb3
movaps xmm1, xmm5
comiss xmm4, dword [0x101eb1d8]
mulss xmm2, xmm6
addss xmm2, xmm1
cvttss2si eax, xmm2
mov dword [esp + 0xa0], eax
jae 0x1016bfd2
movaps xmm0, xmm5
cmp dword [edx + 0x15f0], 0
mulss xmm4, xmm6
mov byte [esp + 0xa], 0
mov byte [esp + 0xb], 0
addss xmm4, xmm0
cvttss2si eax, xmm4
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x1c]
movss xmm2, dword [eax + 0xcc]
movss xmm3, dword [eax + 0xd0]
movss dword [esp + 0x24], xmm2
movss dword [esp + 0x28], xmm3
jne 0x1016c020
movss xmm1, dword [esp + 0x58]
jmp 0x1016c023
xorps xmm1, xmm1
movaps xmm0, xmm2
addss xmm0, xmm1
movss dword [eax + 0xcc], xmm0
test ecx, 0x300000
je 0x1016c421
test cl, 0x20
jne 0x1016c421
mov eax, dword [esp + 0x2c]
movss xmm2, dword [edx + 0x15b0]
dec eax
movss xmm1, dword [esp + 0x54]
movaps xmm0, xmm2
push 0
push 0
movd xmm3, eax
cvtdq2ps xmm3, xmm3
mulss xmm0, xmm3
subss xmm1, xmm0
movd xmm0, dword [esp + 0x34]
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvttss2si eax, xmm1
movss xmm1, dword [0x101eb334]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
maxss xmm1, xmm0
movss xmm0, dword [esp + 0x5c]
addss xmm2, xmm1
movss dword [esp + 0x50], xmm1
movss xmm1, dword [0x101eb334]
mulss xmm2, xmm3
movss xmm3, dword [0x101eb6ac]
subss xmm0, xmm2
movss xmm2, dword [edi + 0x1978]
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, ecx
and eax, 0x1000000
mov ecx, str.M:000
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x20], eax
mov eax, str.M:0.000
cmove eax, ecx
push eax
push ecx
mov ecx, dword [edi + 0x1974]
lea eax, [esp + 0x40]
maxss xmm1, xmm0
mov dword [esp], 0xbf800000
push eax
movss dword [esp + 0x4c], xmm1
call fcn.1015cf30
movss xmm0, dword [esp + 0x30]
addss xmm0, dword [0x101eb32c]
mov ecx, dword [esp + 0xc]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x34]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [esp + 0x48]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
comiss xmm1, xmm0
jb 0x1016c142
xor eax, eax
jmp 0x1016c150
mov eax, ecx
and eax, 0x200000
neg eax
sbb eax, eax
neg eax
inc eax
xor edx, edx
mov dword [esp + 0x14], edx
cmp dword [esp + 0x2c], edx
jbe 0x1016c68a
shl eax, 4
cmp dword [esp + 0x18], edx
je 0x1016c2ca
mov esi, dword [esp + 0x10]
and ecx, 8
mov dword [esp + 0x30], ecx
lea ecx, [eax + 0x101e9b68]
mov dword [esp + 0x18], ecx
test edx, edx
je 0x1016c1a4
movss xmm1, dword [esi + 0x15b0]
xorps xmm0, xmm0
call fcn.10150ed0
movss xmm0, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [edx + 1]
cmp eax, dword [esp + 0x2c]
jl 0x1016c1b3
movss xmm0, dword [esp + 0x38]
or dword [edi + 0x1cc4], 1
cmp byte [esp + 0x44], 0
movss dword [edi + 0x1cc8], xmm0
je 0x1016c1ce
xorps xmm0, xmm0
jmp 0x1016c1d6
movss xmm0, dword [0x101eb334]
push 0
push dword [ecx]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x6c]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [0x101eb210]
mov ecx, dword [ecx*4 + 0x101e9ab4]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x70], 0
lea eax, [eax + edx*4]
mov edx, 8
push eax
call fcn.10164f50
mov ah, byte [esp + 0xa]
mov edi, dword [0x103d8bec]
or ah, al
or byte [esp + 0xb], ah
cmp dword [esp + 0x30], 0
mov byte [esp + 0xa], ah
jne 0x1016c29d
cmp byte [edi + 0x42b], 0
je 0x1016c29d
mov ecx, 8
call fcn.101478e0
test al, al
je 0x1016c29d
mov eax, dword [edi + 0x1bdc]
xor edx, edx
mov ecx, dword [eax + 0xc0]
mov eax, dword [eax + 0xc8]
push dword [eax + ecx*4 - 4]
mov ecx, str.context
call fcn.10144db0
cmp dword [edi + 0x1c10], eax
jne 0x1016c27c
mov dword [edi + 0x1c14], eax
cmp dword [edi + 0x1c4c], eax
jne 0x1016c28b
mov byte [edi + 0x1c50], 1
mov edx, 1
mov ecx, eax
call fcn.10151d20
mov edi, dword [0x103d8bec]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc edx
movss xmm0, dword [esp + 0x48]
add ecx, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
cmp edx, dword [esp + 0x2c]
jl 0x1016c182
mov esi, dword [esp + 0x3c]
jmp 0x1016c686
xor edx, edx
mov esi, 0xff
cmp byte [esp + 0x44], dl
mov dword [esp + 0x14], edx
cmovne esi, edx
and ecx, 8
mov dword [esp + 0x44], ecx
lea ecx, [eax + 0x101e9a84]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
test edx, edx
jle 0x1016c317
movss xmm1, dword [esi + 0x15b0]
xorps xmm0, xmm0
call fcn.10150ed0
movss xmm0, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [edx + 1]
cmp eax, dword [esp + 0x2c]
jl 0x1016c326
movss xmm0, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
or dword [edi + 0x1cc4], 1
push 0
push dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x68]
movss dword [edi + 0x1cc8], xmm0
movss xmm0, dword [0x101eb334]
mov ecx, dword [ecx*4 + 0x101e9ab4]
push eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x6c], 0
lea eax, [eax + edx*4]
mov edx, 4
push eax
call fcn.10164f50
or byte [esp + 0xa], al
cmp dword [esp + 0x44], 0
mov edi, dword [0x103d8bec]
jne 0x1016c3f4
cmp byte [edi + 0x42b], 0
je 0x1016c3f4
mov ecx, 8
call fcn.101478e0
test al, al
je 0x1016c3f4
mov eax, dword [edi + 0x1bdc]
xor edx, edx
mov ecx, dword [eax + 0xc0]
mov eax, dword [eax + 0xc8]
push dword [eax + ecx*4 - 4]
mov ecx, str.context
call fcn.10144db0
cmp dword [edi + 0x1c10], eax
jne 0x1016c3d3
mov dword [edi + 0x1c14], eax
cmp dword [edi + 0x1c4c], eax
jne 0x1016c3e2
mov byte [edi + 0x1c50], 1
mov edx, 1
mov ecx, eax
call fcn.10151d20
mov edi, dword [0x103d8bec]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc edx
movss xmm0, dword [esp + 0x48]
add ecx, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
cmp edx, dword [esp + 0x2c]
jl 0x1016c2f5
mov esi, dword [esp + 0x3c]
jmp 0x1016c686
test ecx, 0x400000
je 0x1016c69e
test cl, 0x20
jne 0x1016c69e
cmp byte [esp + 0x40], 0
mov eax, 0xff
je 0x1016c4c0
mov ecx, dword [esp + 0xa4]
test ecx, ecx
jns 0x1016c45b
mov dword [esp + 0x38], 0
jmp 0x1016c464
cmp ecx, eax
cmovg ecx, eax
mov dword [esp + 0x38], ecx
mov edi, dword [esp + 0xa0]
test edi, edi
jns 0x1016c473
xor edi, edi
jmp 0x1016c478
cmp edi, eax
cmovg edi, eax
mov edx, dword [esp + 0x9c]
test edx, edx
jns 0x1016c487
xor edx, edx
jmp 0x1016c48c
cmp edx, eax
cmovg edx, eax
mov ecx, dword [esp + 0x98]
test ecx, ecx
jns 0x1016c49b
xor ecx, ecx
jmp 0x1016c4a0
cmp ecx, eax
cmovg ecx, eax
push dword [esp + 0x38]
lea eax, [esp + 0xac]
push edi
push edx
push ecx
push 0x101e987c
push 0x40
push eax
call fcn.10144d60
add esp, 0x1c
jmp 0x1016c516
mov edi, dword [esp + 0xa0]
test edi, edi
jns 0x1016c4cf
xor edi, edi
jmp 0x1016c4d4
cmp edi, eax
cmovg edi, eax
mov edx, dword [esp + 0x9c]
test edx, edx
jns 0x1016c4e3
xor edx, edx
jmp 0x1016c4e8
cmp edx, eax
cmovg edx, eax
mov ecx, dword [esp + 0x98]
test ecx, ecx
jns 0x1016c4f7
xor ecx, ecx
jmp 0x1016c4fc
cmp ecx, eax
cmovg ecx, eax
push edi
push edx
push ecx
push 0x101e985c
lea eax, [esp + 0xb8]
push 0x40
push eax
call fcn.10144d60
add esp, 0x18
mov eax, dword [0x103d8bec]
xor edx, edx
movss xmm5, dword [esp + 0x54]
mov ecx, str.Text
push 0
push 0
or dword [eax + 0x1cc4], 1
movss dword [eax + 0x1cc8], xmm5
lea eax, [esp + 0x68]
push 6
push eax
push 0x40
lea eax, [esp + 0xbc]
mov dword [esp + 0x74], 0
push eax
mov dword [esp + 0x7c], 0
call fcn.10168470
test al, al
je 0x1016c60f
mov byte [esp + 0xa], 1
lea ecx, [esp + 0xa8]
mov al, byte [ecx]
cmp al, 0x23
je 0x1016c583
cmp al, 0x20
je 0x1016c583
cmp al, 9
jne 0x1016c586
inc ecx
jmp 0x1016c575
cmp byte [esp + 0x40], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0xa4], 0xff
je 0x1016c5e9
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0xa4]
push eax
push str._02X_02X_02X_02X
push ecx
call fcn.100ba140
add esp, 0x18
jmp 0x1016c60f
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0xa0]
push eax
push str._02X_02X_02X
push ecx
call fcn.100ba140
add esp, 0x14
mov ecx, dword [esp + 0xc]
mov edi, dword [0x103d8bec]
test cl, 8
jne 0x1016c68a
cmp byte [edi + 0x42b], 0
je 0x1016c68a
mov ecx, 8
call fcn.101478e0
test al, al
je 0x1016c686
mov eax, dword [edi + 0x1bdc]
xor edx, edx
mov ecx, dword [eax + 0xc0]
mov eax, dword [eax + 0xc8]
push dword [eax + ecx*4 - 4]
mov ecx, str.context
call fcn.10144db0
cmp dword [edi + 0x1c10], eax
jne 0x1016c665
mov dword [edi + 0x1c14], eax
cmp dword [edi + 0x1c4c], eax
jne 0x1016c674
mov byte [edi + 0x1c50], 1
mov edx, 1
mov ecx, eax
call fcn.10151d20
mov edi, dword [0x103d8bec]
mov ecx, dword [esp + 0xc]
movss xmm2, dword [esp + 0x24]
movss xmm3, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
test cl, 0x10
jne 0x1016ca0d
test cl, 0x20
jne 0x1016c6cd
cmp dword [edx + 0x15f0], 0
je 0x1016c6cd
movss xmm1, dword [esp + 0x54]
addss xmm1, dword [edx + 0x15b0]
jmp 0x1016c6d0
xorps xmm1, xmm1
cmp byte [esp + 0x40], 0
movaps xmm0, xmm2
addss xmm0, xmm1
movss dword [eax + 0xd0], xmm3
movss dword [eax + 0xcc], xmm0
mov eax, dword [esp + 0x20]
je 0x1016c6f9
movss xmm1, dword [eax + 0xc]
jmp 0x1016c701
movss xmm1, dword [0x101eb334]
movss xmm0, dword [eax]
lea edx, [esp + 0x70]
movss dword [esp + 0x70], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [eax + 8]
movss dword [esp + 0x78], xmm0
movss dword [esp + 0x7c], xmm1
push ecx
mov dword [esp + 0x34], 0
mov ecx, str.ColorButton
movss xmm0, dword [esp + 0x34]
mov dword [esp + 0x38], 0
movss xmm1, dword [esp + 0x38]
call fcn.1016fab0
test al, al
je 0x1016c828
test byte [esp + 0xc], 4
jne 0x1016c828
mov edi, dword [esp + 0x10]
xor edx, edx
movups xmm0, xmmword [esp + 0x70]
mov eax, dword [0x103d8bec]
movups xmmword [edi + 0x2e90], xmm0
mov eax, dword [eax + 0x1bdc]
mov ecx, dword [eax + 0xc0]
mov eax, dword [eax + 0xc8]
push dword [eax + ecx*4 - 4]
mov ecx, 0x101e98a0
call fcn.10144db0
mov ecx, eax
mov eax, dword [0x103d8bec]
cmp dword [eax + 0x1c10], ecx
jne 0x1016c7b1
mov dword [eax + 0x1c14], ecx
cmp dword [eax + 0x1c4c], ecx
jne 0x1016c7c0
mov byte [eax + 0x1c50], 1
xor edx, edx
call fcn.10151d20
movss xmm0, dword [edi + 0x15ac]
mov eax, dword [esp + 0x1c]
mov edi, dword [0x103d8bec]
movss xmm1, dword [eax + 0x120]
addss xmm0, dword [eax + 0x12c]
subss xmm1, dword [0x101eb334]
or dword [edi + 0x1c64], 1
mov dword [edi + 0x1c7c], 0
mov dword [edi + 0x1c80], 0
movss dword [edi + 0x1c78], xmm0
movss dword [edi + 0x1c74], xmm1
mov dword [edi + 0x1c68], 1
jmp 0x1016c82e
mov edi, dword [0x103d8bec]
mov ecx, dword [esp + 0xc]
test cl, 8
jne 0x1016c8a3
cmp byte [edi + 0x42b], 0
je 0x1016c8a3
mov ecx, 8
call fcn.101478e0
test al, al
je 0x1016c89f
mov eax, dword [edi + 0x1bdc]
xor edx, edx
mov ecx, dword [eax + 0xc0]
mov eax, dword [eax + 0xc8]
push dword [eax + ecx*4 - 4]
mov ecx, str.context
call fcn.10144db0
cmp dword [edi + 0x1c10], eax
jne 0x1016c87e
mov dword [edi + 0x1c14], eax
cmp dword [edi + 0x1c4c], eax
jne 0x1016c88d
mov byte [edi + 0x1c50], 1
mov edx, 1
mov ecx, eax
call fcn.10151d20
mov edi, dword [0x103d8bec]
mov ecx, dword [esp + 0xc]
mov eax, dword [edi + 0x1d20]
cmp eax, dword [edi + 0x1d2c]
jg 0x1016c8c0
mov dword [edi + 0x1c64], 0
jmp 0x1016ca0d
mov eax, dword [edi + 0x1bdc]
xor edx, edx
mov ecx, dword [eax + 0xc0]
mov eax, dword [eax + 0xc8]
push dword [eax + ecx*4 - 4]
mov ecx, 0x101e98a0
call fcn.10144db0
cmp dword [edi + 0x1c10], eax
jne 0x1016c8f0
mov dword [edi + 0x1c14], eax
cmp dword [edi + 0x1c4c], eax
jne 0x1016c8ff
mov byte [edi + 0x1c50], 1
mov edx, 0x141
mov ecx, eax
call fcn.10152060
test al, al
je 0x1016ca03
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
mov eax, dword [edi + 0x1bdc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
cmp ecx, eax
je 0x1016c979
push 0
mov edx, eax
call fcn.1015f900
mov ecx, dword [0x103d8bec]
mov eax, dword [ecx + 0x1bdc]
mov byte [eax + 0x8c], 1
mov eax, dword [ecx + 0x1bdc]
cmp byte [eax + 0x8f], 0
jne 0x1016c979
movss xmm0, dword [0x101eb6e4]
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call fcn.10150bd0
mov eax, dword [0x103d8bec]
mov ecx, str.picker
movss xmm0, dword [esp + 0x68]
mulss xmm0, dword [0x101eb4ac]
mov edx, dword [esp + 0x20]
or dword [eax + 0x1cc4], 1
movss dword [eax + 0x1cc8], xmm0
lea eax, [edi + 0x2e90]
push eax
mov eax, dword [esp + 0x70]
and eax, 0x1f890002
or eax, 0x740080
push eax
call fcn.1016d020
mov edi, dword [0x103d8bec]
or byte [esp + 0xa], al
mov eax, dword [edi + 0x1bdc]
cmp dword [edi + 0x1d44], eax
jne 0x1016c9e7
mov dword [edi + 0x1e48], eax
mov dword [edi + 0x1e4c], 2
test dword [eax + 8], 0x1000000
je 0x1016c9f7
mov byte [edi + 0x1b8e], 1
call fcn.10150120
mov byte [edi + 0x1b8e], 0
mov ecx, dword [esp + 0xc]
mov edi, dword [0x103d8bec]
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x50], eax
je 0x1016ca80
test cl, cl
js 0x1016ca80
test cl, 0x20
je 0x1016ca2c
movss xmm0, dword [esp + 0x58]
mov esi, dword [esp + 0x10]
jmp 0x1016ca3f
movd xmm0, esi
mov esi, dword [esp + 0x10]
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esi + 0x15b0]
movss xmm1, dword [esp + 0x24]
mov edx, eax
mov ecx, dword [esp + 0x1c]
addss xmm1, xmm0
movss xmm0, dword [esp + 0x28]
addss xmm0, dword [esi + 0x159c]
push 0
movss dword [ecx + 0xcc], xmm1
movss dword [ecx + 0xd0], xmm0
mov ecx, dword [esp + 0x54]
call fcn.1015f900
mov edi, dword [0x103d8bec]
jmp 0x1016ca84
mov esi, dword [esp + 0x10]
cmp byte [esp + 0xa], 0
je 0x1016cc36
cmp dword [esp + 0x18], 0
jne 0x1016cc36
cmp byte [esp + 0xb], 0
jne 0x1016cabb
movups xmm0, xmmword [esp + 0x98]
cvtdq2ps xmm0, xmm0
divps xmm0, xmmword [0x101ebbf0]
movups xmmword [esp + 0x88], xmm0
mov eax, dword [esp + 0xc]
and eax, 0x8200000
cmp eax, 0x8200000
jne 0x1016cb2f
movss xmm0, dword [esp + 0x88]
lea eax, [esp + 0x90]
movss xmm1, dword [esp + 0x8c]
lea edx, [esp + 0x8c]
movss xmm2, dword [esp + 0x90]
lea ecx, [esp + 0x88]
push eax
movss dword [esi + 0x2e7c], xmm0
movss dword [esi + 0x2e80], xmm1
call fcn.10145460
movq xmm0, qword [esp + 0x88]
mov eax, dword [esp + 0x90]
movq qword [esi + 0x2e84], xmm0
mov dword [esi + 0x2e8c], eax
mov eax, dword [esp + 0xc]
and eax, 0x10100000
cmp eax, 0x10100000
jne 0x1016cbf4
movss xmm1, dword [esp + 0x8c]
xorps xmm5, xmm5
movss xmm4, dword [esp + 0x90]
movaps xmm0, xmm1
comiss xmm4, xmm0
movss xmm3, dword [esp + 0x88]
movaps xmm2, xmm3
jbe 0x1016cb7a
movss xmm5, dword [0x101eb6e4]
movaps xmm1, xmm4
movaps xmm4, xmm0
comiss xmm1, xmm2
jbe 0x1016cb94
movss xmm0, dword [0x101eb6c8]
movaps xmm3, xmm1
subss xmm0, xmm5
movaps xmm1, xmm2
movaps xmm5, xmm0
movaps xmm0, xmm1
movss dword [esp + 0x90], xmm3
minss xmm0, xmm4
movaps xmm2, xmm3
subss xmm1, xmm4
subss xmm2, xmm0
movaps xmm0, xmm2
mulss xmm0, dword [0x101eb480]
addss xmm0, dword [0x101eb1ec]
divss xmm1, xmm0
movaps xmm0, xmm3
addss xmm0, dword [0x101eb1ec]
addss xmm1, xmm5
divss xmm2, xmm0
andps xmm1, xmmword [0x101ebc30]
movss dword [esp + 0x88], xmm1
movss dword [esp + 0x8c], xmm2
jmp 0x1016cc0f
movss xmm3, dword [esp + 0x90]
movss xmm2, dword [esp + 0x8c]
movss xmm1, dword [esp + 0x88]
cmp byte [esp + 0x40], 0
mov eax, dword [esp + 0x20]
movss dword [eax], xmm1
movss dword [eax + 4], xmm2
movss dword [eax + 8], xmm3
je 0x1016cc36
movss xmm0, dword [esp + 0x94]
movss dword [eax + 0xc], xmm0
mov eax, dword [edi + 0x1bdc]
dec dword [eax + 0xc0]
call fcn.101512a0
mov edi, dword [esp + 0x1c]
test byte [edi + 0x11c], 1
je 0x1016cd93
test dword [esp + 0xc], 0x200
jne 0x1016cd93
call fcn.101559e0
test al, al
je 0x1016cd93
xor edx, edx
mov byte [esp + 0xb], 0
mov ecx, str._COL3F
call fcn.10155a60
mov edi, dword [esp + 0x20]
test eax, eax
je 0x1016cca6
mov eax, dword [eax]
mov byte [esp + 0xb], 1
mov byte [esp + 0xa], 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.10155a60
test eax, eax
je 0x1016ccd0
mov ecx, dword [esp + 0x2c]
shl ecx, 2
push ecx
push dword [eax]
push edi
call fcn.1018faa0
add esp, 0xc
mov byte [esp + 0xa], 1
jmp 0x1016ccdb
cmp byte [esp + 0xb], 0
je 0x1016cd80
test dword [esp + 0xc], 0x10000000
je 0x1016cd80
movss xmm2, dword [edi + 4]
movss xmm4, dword [edi + 8]
comiss xmm4, xmm2
movss xmm3, dword [edi]
jbe 0x1016cd0f
movss xmm5, dword [0x101eb6e4]
movaps xmm0, xmm2
movaps xmm2, xmm4
movaps xmm4, xmm0
jmp 0x1016cd12
xorps xmm5, xmm5
comiss xmm2, xmm3
jbe 0x1016cd2f
movaps xmm0, xmm3
movaps xmm3, xmm2
movaps xmm2, xmm0
movss xmm0, dword [0x101eb6c8]
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 [0x101eb480]
addss xmm0, dword [0x101eb1ec]
divss xmm2, xmm0
movaps xmm0, xmm3
addss xmm0, dword [0x101eb1ec]
addss xmm2, xmm5
divss xmm1, xmm0
andps xmm2, xmmword [0x101ebc30]
movss dword [edi], xmm2
movss dword [edi + 4], xmm1
mov ecx, dword [0x103d8bec]
mov edi, dword [esp + 0x1c]
mov byte [ecx + 0x1e8e], 0
jmp 0x1016cd99
mov ecx, dword [0x103d8bec]
mov edx, dword [esp + 0x18]
test edx, edx
je 0x1016cdb9
mov eax, dword [esi + 0x1c10]
test eax, eax
je 0x1016cdb9
cmp dword [esi + 0x1c40], edx
jne 0x1016cdb9
mov dword [edi + 0x118], eax
mov al, byte [esp + 0xa]
test al, al
je 0x1016cdd7
mov word [ecx + 0x1c20], 0x101
mov ecx, dword [ecx + 0x1bdc]
or dword [ecx + 0x11c], 4
mov ecx, dword [esp + 0xec]
pop edi
pop esi
xor ecx, esp
call fcn.1018e27a
mov esp, ebp
pop ebp
ret 4