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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x128
push esi
push edi
mov edi, dword [0x101257f8]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], edi
mov eax, dword [edi + 0x198c]
mov byte [eax + 0x7c], 1
mov eax, dword [edi + 0x198c]
mov dword [esp + 0x28], eax
cmp byte [eax + 0x7f], 0
je 0x100590a2
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test byte [ebp + 8], 0x10
movss xmm0, dword [edi + 0x1538]
addss xmm0, xmm0
addss xmm0, dword [edi + 0x18ac]
movss dword [esp + 0x64], xmm0
je 0x100590c7
xorps xmm3, xmm3
jmp 0x100590d2
movaps xmm3, xmm0
addss xmm3, dword [edi + 0x154c]
mov esi, eax
xorps xmm0, xmm0
movss xmm2, dword [esi + 0x16c]
comiss xmm0, xmm2
jbe 0x10059154
movss xmm4, dword [esi + 0xc8]
movss xmm1, dword [esi + 0x214]
mov edi, dword [esi + 0x1bc]
subss xmm4, dword [esi + 0xc]
subss xmm1, dword [esi + 0xc]
test edi, edi
je 0x1005913c
mov edx, dword [edi + 0xc]
movss xmm1, dword [edi + 0x18]
subss xmm1, dword [edi + 0x14]
lea eax, [edx + 1]
test eax, eax
cmovns edx, eax
mov eax, dword [edi + 0x34]
lea ecx, [edx*8]
sub ecx, edx
mulss xmm1, dword [eax + ecx*4]
mov ecx, dword [esp + 0x3c]
addss xmm1, dword [edi + 0x14]
subss xmm1, dword [esi + 0x3c]
mov edi, dword [esp + 0x18]
subss xmm1, xmm4
addss xmm1, xmm2
movss xmm2, dword [0x100e04e4]
maxss xmm2, xmm1
cvttss2si eax, xmm2
movd xmm0, eax
mov eax, ecx
mov dword [esp + 0x48], eax
cvtdq2ps xmm0, xmm0
subss xmm0, xmm3
movss dword [esp + 0x14], xmm0
cmp ecx, 0xffffffff
jae 0x1005918d
mov cl, byte [eax]
test cl, cl
je 0x1005918d
inc eax
cmp cl, 0x23
jne 0x10059184
cmp byte [eax], cl
je 0x1005918d
mov dword [esp + 0x48], eax
cmp eax, 0xffffffff
jb 0x10059174
call fcn.1003bae0
mov ecx, dword [esp + 0x3c]
call fcn.1003b9d0
mov ecx, dword [ebp + 8]
mov dword [esp + 0x60], ecx
test ecx, 0x20
je 0x100591b9
and ecx, 0xff9fffff
or ecx, 0x100008
mov dword [ebp + 8], ecx
mov esi, dword [esp + 0x1c]
test cl, 8
jne 0x100591ce
mov edx, ecx
mov ecx, esi
call fcn.1005d460
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0x2bf0]
test ecx, 0x700000
jne 0x100591e5
mov eax, edx
and eax, 0x700000
or ecx, eax
test ecx, 0x1800000
jne 0x100591f6
mov eax, edx
and eax, 0x1800000
or ecx, eax
test ecx, 0x6000000
jne 0x10059207
mov eax, edx
and eax, 0x6000000
or ecx, eax
movss xmm2, dword [esi]
and edx, 0xf80fffff
movss xmm5, dword [esi + 4]
or ecx, edx
movss xmm1, dword [esi + 8]
mov edx, ecx
shr edx, 1
mov eax, ecx
shr eax, 0x13
not dl
and eax, 0xffffff01
mov dword [ebp + 8], ecx
and edx, 0xffffff01
mov dword [esp + 0x68], eax
movzx eax, dl
add eax, 3
mov dword [esp + 0x4c], edx
mov dword [esp + 0x40], eax
movss dword [esp + 0x2c], xmm2
movss dword [esp + 0x30], xmm5
movss dword [esp + 0x34], xmm1
test dl, dl
je 0x1005926b
movss xmm0, dword [esi + 0xc]
movss dword [esp + 0x38], xmm0
jmp 0x10059273
mov dword [esp + 0x38], 0x3f800000
mov eax, ecx
and eax, 0x200000
mov dword [esp + 0x6c], eax
je 0x10059310
comiss xmm1, xmm5
xorps xmm4, xmm4
movaps xmm3, xmm5
jbe 0x1005929d
movss xmm4, dword [0x100e0698]
movaps xmm3, xmm1
movaps xmm1, xmm5
comiss xmm3, xmm2
movaps xmm5, xmm2
jbe 0x100592ba
movss xmm0, dword [0x100e0684]
movaps xmm5, xmm3
subss xmm0, xmm4
movaps xmm3, xmm2
movaps xmm4, xmm0
movaps xmm0, xmm3
movaps xmm2, xmm5
minss xmm0, xmm1
subss xmm3, xmm1
subss xmm2, xmm0
movaps xmm0, xmm2
mulss xmm0, dword [0x100e0578]
addss xmm0, dword [0x100e03fc]
divss xmm3, xmm0
addss xmm3, xmm4
movaps xmm0, xmm3
call fcn.10009610
movss dword [esp + 0x2c], xmm0
movaps xmm0, xmm5
addss xmm0, dword [0x100e03fc]
movss dword [esp + 0x34], xmm5
divss xmm2, xmm0
movss dword [esp + 0x30], xmm2
movss xmm0, dword [esp + 0x2c]
xorps xmm2, xmm2
comiss xmm0, xmm2
movss xmm3, dword [0x100e0688]
movss xmm1, dword [0x100e04a8]
jb 0x10059333
movaps xmm5, xmm1
jmp 0x10059336
movaps xmm5, xmm3
movss xmm0, dword [esp + 0x2c]
movss xmm4, dword [0x100e060c]
mulss xmm0, xmm4
addss xmm0, xmm5
cvttss2si esi, xmm0
movss xmm0, dword [esp + 0x30]
comiss xmm0, xmm2
mov dword [esp + 0x50], esi
jb 0x10059364
movaps xmm5, xmm1
jmp 0x10059367
movaps xmm5, xmm3
movss xmm0, dword [esp + 0x30]
mulss xmm0, xmm4
addss xmm0, xmm5
cvttss2si edx, xmm0
movss xmm0, dword [esp + 0x34]
comiss xmm0, xmm2
mov dword [esp + 0x54], edx
jb 0x1005938d
movaps xmm5, xmm1
jmp 0x10059390
movaps xmm5, xmm3
movss xmm0, dword [esp + 0x34]
mulss xmm0, xmm4
addss xmm0, xmm5
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x38]
comiss xmm0, xmm2
mov dword [esp + 0x58], eax
jae 0x100593b4
movaps xmm1, xmm3
movss xmm0, dword [esp + 0x38]
mulss xmm0, xmm4
mov dword [esp + 0x10], ecx
and dword [esp + 0x10], 0x20
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 0
addss xmm0, xmm1
cvttss2si edi, xmm0
mov dword [esp + 0x5c], edi
test ecx, 0x300000
je 0x10059912
cmp dword [esp + 0x10], 0
jne 0x10059912
mov edx, dword [esp + 0x40]
movss xmm4, dword [esp + 0x14]
movaps xmm1, xmm4
lea eax, [edx - 1]
movd xmm3, eax
mov eax, dword [esp + 0x18]
cvtdq2ps xmm3, xmm3
movss xmm2, dword [eax + 0x154c]
movaps xmm0, xmm3
mulss xmm0, xmm2
subss xmm1, xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvttss2si eax, xmm1
movss xmm1, dword [0x100e04e4]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
maxss xmm1, xmm0
movaps xmm0, xmm1
movss dword [esp + 0x14], xmm1
addss xmm0, xmm2
movss xmm1, dword [0x100e04e4]
mulss xmm0, xmm3
movss xmm3, dword [0x100e066c]
subss xmm4, xmm0
cvttss2si eax, xmm4
movd xmm0, eax
mov eax, ecx
and eax, 0x1000000
mov ecx, str.M:000
mov dword [esp + 0x8c], eax
mov eax, str.M:0.000
cmove eax, ecx
mov ecx, dword [0x101257f8]
push ecx
cvtdq2ps xmm0, xmm0
push 0
push eax
lea eax, [esp + 0x2c]
push ecx
movss xmm2, dword [ecx + 0x18ac]
mov ecx, dword [ecx + 0x18a8]
maxss xmm1, xmm0
mov dword [esp], 0xbf800000
push eax
movss dword [esp + 0x9c], xmm1
call fcn.1004e0d0
movss xmm0, dword [esp + 0x20]
addss xmm0, dword [0x100e04dc]
mov dword [esp + 0x70], 0x100ddb90
mov dword [esp + 0x74], 0x100ddba0
mov dword [esp + 0x78], 0x100ddb9c
mov dword [esp + 0x7c], 0x100ddba8
cvttss2si eax, xmm0
mov dword [esp + 0xc0], 0x100ddba4
mov dword [esp + 0xc4], 0x100ddba4
mov dword [esp + 0xc8], 0x100ddba4
mov dword [esp + 0xcc], 0x100ddba4
mov dword [esp + 0xd0], str.R:_3d
mov dword [esp + 0xd4], str.G:_3d
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x24], xmm0
mov dword [esp + 0xd8], str.B:_3d
mov dword [esp + 0xdc], str.A:_3d
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov dword [esp + 0xe0], str.H:_3d
mov dword [esp + 0xe4], str.S:_3d
mov dword [esp + 0xe8], str.V:_3d
mov dword [esp + 0xec], str.A:_3d
mov dword [esp + 0x90], str._0.3f
mov dword [esp + 0x94], str._0.3f
mov dword [esp + 0x98], str._0.3f
mov dword [esp + 0x9c], str._0.3f
mov dword [esp + 0xa0], str.R:_0.3f
mov dword [esp + 0xa4], str.G:_0.3f
mov dword [esp + 0xa8], str.B:_0.3f
mov dword [esp + 0xac], str.A:_0.3f
mov dword [esp + 0xb0], str.H:_0.3f
mov dword [esp + 0xb4], str.S:_0.3f
movss xmm0, dword [esp + 0x14]
comiss xmm1, xmm0
mov dword [esp + 0xb8], str.V:_0.3f
mov dword [esp + 0xbc], str.A:_0.3f
jb 0x10059622
xor esi, esi
jmp 0x10059632
xor edx, edx
cmp dword [esp + 0x6c], edx
setne dl
inc edx
mov dword [esp + 0x10], edx
mov esi, edx
mov ecx, dword [0x101257f8]
xorps xmm4, xmm4
ucomiss xmm0, xmm4
mov eax, dword [ecx + 0x198c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x198c]
mov dword [esp + 0x14], ecx
lahf
test ah, 0x44
jp 0x10059660
movss xmm0, dword [ecx + 0x220]
lea edi, [ecx + 0x180]
movss dword [ecx + 0x16c], xmm0
mov eax, dword [edi + 4]
mov ecx, dword [edi]
cmp ecx, eax
jne 0x1005969b
inc ecx
test eax, eax
je 0x10059686
cdq
sub eax, edx
sar eax, 1
add eax, dword [edi + 4]
jmp 0x1005968b
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.100417d0
xorps xmm4, xmm4
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x16c]
mov dword [ecx + edx*4], eax
inc dword [edi]
xor edi, edi
cmp dword [esp + 0x40], edi
jbe 0x10059874
mov eax, dword [ebp + 8]
and eax, 8
shl esi, 4
mov dword [esp + 0x80], eax
mov dword [esp + 0x10], esi
nop
test edi, edi
je 0x100596e8
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x154c]
call fcn.1003bdb0
lea eax, [edi + 1]
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x40]
jne 0x10059786
movss xmm0, dword [esp + 0x88]
mov ecx, dword [0x101257f8]
ucomiss xmm0, xmm4
mov eax, dword [ecx + 0x198c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x198c]
mov dword [esp + 0x44], ecx
lahf
test ah, 0x44
jp 0x1005972d
movss xmm0, dword [ecx + 0x220]
lea esi, [ecx + 0x180]
movss dword [ecx + 0x16c], xmm0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
cmp edx, ecx
jne 0x1005976e
inc edx
mov dword [esp + 0x14], edx
test ecx, ecx
je 0x1005975c
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
add eax, ecx
jmp 0x10059761
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.100417d0
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x16c]
mov dword [ecx + edx*4], eax
inc dword [esi]
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x8c], 0
je 0x100597fc
cmp byte [esp + 0x68], 0
je 0x1005979c
xorps xmm0, xmm0
jmp 0x100597a4
movss xmm0, dword [0x100e04e4]
movss xmm3, dword [0x100e0434]
lea eax, [esp + 0x44]
push ecx
mov ecx, dword [esp + edi*4 + 0x74]
mov edx, 4
mov dword [esp], 0x3f800000
push dword [esp + esi + 0x94]
movss dword [esp + 0x4c], xmm0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x3c]
lea eax, [eax + edi*4]
push eax
call fcn.10052b40
mov cl, byte [esp + 0x22]
add esp, 0x14
or cl, al
or byte [esp + 0xf], cl
mov byte [esp + 0xe], cl
jmp 0x1005984d
movss xmm3, dword [0x100e04e4]
xor ecx, ecx
cmp byte [esp + 0x68], cl
mov eax, 0xff
push ecx
cmovne eax, ecx
mov dword [esp], 0x3f800000
push dword [esp + esi + 0xc4]
mov dword [esp + 0x4c], eax
xor edx, edx
lea eax, [esp + 0x4c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + edi*4 + 0x78]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x60]
lea eax, [eax + edi*4]
push eax
call fcn.10052b40
add esp, 0x14
or byte [esp + 0xe], al
cmp dword [esp + 0x80], 0
jne 0x1005985c
call fcn.1003c2a0
mov edi, dword [esp + 0x20]
add esi, 4
xorps xmm4, xmm4
mov dword [esp + 0x10], esi
cmp edi, dword [esp + 0x40]
jl 0x100596d0
mov edx, dword [0x101257f8]
mov eax, dword [edx + 0x198c]
mov byte [eax + 0x7c], 1
mov ecx, dword [edx + 0x198c]
mov esi, dword [ecx + 0x180]
sub esi, 1
mov dword [ecx + 0x180], esi
jne 0x100598a5
movss xmm0, dword [ecx + 0x220]
jmp 0x100598b1
mov eax, dword [ecx + 0x188]
movss xmm0, dword [eax + esi*4 - 4]
movss dword [ecx + 0x16c], xmm0
mov eax, dword [edx + 0x198c]
mov byte [eax + 0x7c], 1
mov ecx, dword [edx + 0x198c]
mov edx, dword [ecx + 0x180]
sub edx, 1
mov dword [ecx + 0x180], edx
jne 0x100598f4
movss xmm0, dword [ecx + 0x220]
xor eax, eax
movss dword [ecx + 0x16c], xmm0
mov ecx, dword [ebp + 8]
jmp 0x10059b43
mov eax, dword [ecx + 0x188]
movss xmm0, dword [eax + edx*4 - 4]
xor eax, eax
movss dword [ecx + 0x16c], xmm0
mov ecx, dword [ebp + 8]
jmp 0x10059b43
mov ecx, dword [ebp + 8]
test ecx, 0x400000
je 0x10059b3f
cmp dword [esp + 0x10], 0
jne 0x10059b3f
cmp byte [esp + 0x4c], 0
mov ecx, 0xff
je 0x1005998c
test edi, edi
jns 0x10059940
xor edi, edi
jmp 0x10059945
cmp edi, ecx
cmovg edi, ecx
test eax, eax
jns 0x1005994d
xor eax, eax
jmp 0x10059955
cmp eax, 0xff
cmovg eax, ecx
test edx, edx
jns 0x1005995d
xor edx, edx
jmp 0x10059962
cmp edx, ecx
cmovg edx, ecx
test esi, esi
jns 0x1005996a
xor esi, esi
jmp 0x1005996f
cmp esi, ecx
cmovg esi, ecx
push edi
push eax
push edx
push esi
push 0x100ddc3c
lea eax, [esp + 0x104]
push 0x40
push eax
call fcn.10031200
add esp, 0x1c
jmp 0x100599d0
test eax, eax
jns 0x10059994
xor eax, eax
jmp 0x1005999c
cmp eax, 0xff
cmovg eax, ecx
test edx, edx
jns 0x100599a4
xor edx, edx
jmp 0x100599a9
cmp edx, ecx
cmovg edx, ecx
test esi, esi
jns 0x100599b1
xor esi, esi
jmp 0x100599b6
cmp esi, ecx
cmovg esi, ecx
push eax
push edx
push esi
push 0x100ddc2c
lea eax, [esp + 0x100]
push 0x40
push eax
call fcn.10031200
add esp, 0x18
movss xmm4, dword [esp + 0x14]
ucomiss xmm4, dword [0x100e03e8]
mov ecx, dword [0x101257f8]
mov eax, dword [ecx + 0x198c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x198c]
lahf
mov dword [esp + 0x20], ecx
test ah, 0x44
jp 0x10059a05
movss xmm4, dword [ecx + 0x220]
lea esi, [ecx + 0x180]
movss dword [ecx + 0x16c], xmm4
mov edi, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, edi
jne 0x10059a3e
inc ecx
test edi, edi
je 0x10059a2c
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x10059a31
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.100417d0
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x20]
push 0
push 0
push 6
mov eax, dword [eax + 0x16c]
mov dword [ecx + edx*4], eax
lea eax, [esp + 0x8c]
inc dword [esi]
lea edx, [esp + 0xfc]
push eax
push 0x40
mov ecx, str.Text
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
call fcn.100559f0
add esp, 0x14
test al, al
je 0x10059b19
mov byte [esp + 0xe], 1
lea ecx, [esp + 0xf0]
mov al, byte [ecx]
cmp al, 0x23
je 0x10059aae
cmp al, 0x20
je 0x10059aae
cmp al, 9
jne 0x10059ab1
inc ecx
jmp 0x10059aa0
cmp byte [esp + 0x4c], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
je 0x10059afc
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x5c]
push eax
push str._02X_02X_02X_02X
push ecx
call fcn.1002fa60
add esp, 0x18
jmp 0x10059b19
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x58]
push eax
push str._02X_02X_02X
push ecx
call fcn.1002fa60
add esp, 0x14
test byte [ebp + 8], 8
jne 0x10059b24
call fcn.1003c2a0
mov ecx, dword [0x101257f8]
mov eax, dword [ecx + 0x198c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x198c]
jmp 0x100598c9
mov eax, dword [esp + 0x10]
xor edi, edi
mov dword [esp + 0x10], edi
test cl, 0x10
jne 0x10059e12
mov esi, dword [esp + 0x18]
test eax, eax
jne 0x10059b6d
movss xmm1, dword [esi + 0x154c]
xorps xmm0, xmm0
call fcn.1003bdb0
mov ecx, dword [ebp + 8]
cmp byte [esp + 0x4c], 0
mov eax, dword [esp + 0x1c]
je 0x10059b7f
movss xmm1, dword [eax + 0xc]
jmp 0x10059b87
movss xmm1, dword [0x100e04e4]
movss xmm0, dword [eax]
lea edx, [esp + 0x70]
movss dword [esp + 0x70], xmm0
movss xmm0, dword [eax + 4]
push edi
movss dword [esp + 0x78], xmm0
movss xmm0, dword [eax + 8]
push edi
push ecx
mov ecx, str.ColorButton
movss dword [esp + 0x84], xmm0
movss dword [esp + 0x88], xmm1
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.1005cac0
add esp, 0xc
test al, al
mov eax, dword [ebp + 8]
je 0x10059c93
test al, 4
jne 0x10059c93
movups xmm0, xmmword [esp + 0x70]
xor edx, edx
movups xmmword [esi + 0x2bf4], xmm0
mov esi, dword [0x101257f8]
mov eax, dword [esi + 0x198c]
mov ecx, dword [eax + 0x1c0]
mov eax, dword [eax + 0x1c8]
push dword [eax + ecx*4 - 4]
mov ecx, str.picker
call fcn.10031240
add esp, 4
cmp dword [esi + 0x19ac], eax
jne 0x10059c27
mov dword [esi + 0x19b4], eax
cmp dword [esi + 0x19b0], eax
jne 0x10059c36
mov byte [esi + 0x19c0], 1
mov ecx, eax
call fcn.1003c0e0
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
movss xmm1, dword [eax + 0x114]
movss xmm0, dword [esi + 0x1548]
addss xmm0, dword [eax + 0x120]
mov eax, dword [0x101257f8]
subss xmm1, dword [0x100e04e4]
movss dword [eax + 0x1a50], xmm0
mov dword [eax + 0x1a54], edi
movss dword [eax + 0x1a4c], xmm1
mov dword [eax + 0x1a58], edi
mov dword [eax + 0x1a30], 1
mov eax, dword [ebp + 8]
test al, 8
jne 0x10059c9c
call fcn.1003c2a0
mov ecx, str.picker
call fcn.1003c5e0
test al, al
je 0x10059e0f
mov eax, dword [esi + 0x198c]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x10059cfd
mov edx, esi
mov ecx, eax
call fcn.1004f4f0
mov ecx, dword [0x101257f8]
mov eax, dword [ecx + 0x198c]
mov byte [eax + 0x7c], 1
mov eax, dword [ecx + 0x198c]
cmp byte [eax + 0x7f], 0
jne 0x10059cfd
xorps xmm1, xmm1
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], edi
call fcn.10033440
movss xmm0, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mulss xmm0, dword [0x100e059c]
and eax, 0x7890002
mov ecx, dword [0x101257f8]
or eax, 0x740080
mov dword [esp + 0x60], eax
ucomiss xmm0, dword [0x100e03e8]
mov eax, dword [ecx + 0x198c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x198c]
mov dword [esp + 0x64], ecx
lahf
test ah, 0x44
jp 0x10059d4c
movss xmm0, dword [ecx + 0x220]
lea edi, [ecx + 0x180]
movss dword [ecx + 0x16c], xmm0
mov eax, dword [edi + 4]
mov ecx, dword [edi]
cmp ecx, eax
jne 0x10059d84
inc ecx
test eax, eax
je 0x10059d72
cdq
sub eax, edx
sar eax, 1
add eax, dword [edi + 4]
jmp 0x10059d77
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.100417d0
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x16c]
mov dword [ecx + edx*4], eax
mov ecx, 0x100ddc8c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add eax, 0x2bf4
inc dword [edi]
push eax
mov eax, dword [esp + 0x64]
push eax
call fcn.1005a5a0
mov ecx, dword [0x101257f8]
add esp, 8
or byte [esp + 0xe], al
mov eax, dword [ecx + 0x198c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x198c]
mov edx, dword [ecx + 0x180]
sub edx, 1
mov dword [ecx + 0x180], edx
jne 0x10059ded
movss xmm0, dword [ecx + 0x220]
jmp 0x10059df9
mov eax, dword [ecx + 0x188]
movss xmm0, dword [eax + edx*4 - 4]
movss dword [ecx + 0x16c], xmm0
call fcn.1003c690
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 0x10]
jmp 0x10059e16
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x48]
cmp dword [esp + 0x3c], esi
je 0x10059e3f
test cl, cl
js 0x10059e3f
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x154c]
call fcn.1003bdb0
mov ecx, dword [esp + 0x3c]
mov edx, esi
call fcn.1004f4f0
test edi, edi
jne 0x10059ecd
cmp byte [esp + 0xf], 0
jne 0x10059e62
movups xmm0, xmmword [esp + 0x50]
cvtdq2ps xmm0, xmm0
divps xmm0, xmmword [0x100e0910]
movups xmmword [esp + 0x2c], xmm0
cmp dword [esp + 0x6c], 0
je 0x10059e90
movss xmm2, dword [esp + 0x34]
lea eax, [esp + 0x34]
movss xmm1, dword [esp + 0x30]
lea edx, [esp + 0x30]
movss xmm0, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push eax
call fcn.100318a0
add esp, 4
cmp byte [esp + 0xe], 0
je 0x10059ecd
cmp byte [esp + 0x4c], 0
mov eax, dword [esp + 0x1c]
movss xmm0, dword [esp + 0x2c]
movss dword [eax], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [eax + 4], xmm0
movss xmm0, dword [esp + 0x34]
movss dword [eax + 8], xmm0
je 0x10059ecd
movss xmm0, dword [esp + 0x38]
movss dword [eax + 0xc], xmm0
mov eax, dword [0x101257f8]
mov eax, dword [eax + 0x198c]
dec dword [eax + 0x1c0]
call fcn.1003bc20
mov edi, dword [esp + 0x28]
test byte [edi + 0x110], 1
je 0x1005a02f
test dword [ebp + 8], 0x200
jne 0x1005a02f
mov esi, dword [0x101257f8]
cmp byte [esi + 0x1c68], 0
je 0x10059fe9
mov ecx, dword [esi + 0x198c]
mov edx, dword [ecx + 0x110]
test dl, 1
je 0x10059fe9
mov edi, dword [esi + 0x1990]
test edi, edi
je 0x10059fe5
mov eax, dword [ecx + 0x2f0]
cmp eax, dword [edi + 0x2f0]
jne 0x10059fe5
lea edi, [ecx + 0x124]
test dl, 2
jne 0x10059f5a
lea edi, [ecx + 0x114]
mov eax, dword [ecx + 0x10c]
test eax, eax
jne 0x10059f6a
push edi
call fcn.100331b0
cmp dword [esi + 0x1c80], eax
je 0x10059fe5
movups xmm0, xmmword [edi]
mov ecx, str._COL3F
mov dword [esi + 0x1cc0], eax
mov byte [esi + 0x1c69], 1
movups xmmword [esi + 0x1cb0], xmm0
call fcn.10040380
mov esi, dword [esp + 0x1c]
test eax, eax
je 0x10059fb0
mov eax, dword [eax]
mov byte [esp + 0xe], 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.10040380
mov ecx, eax
test ecx, ecx
je 0x10059fd8
mov eax, dword [esp + 0x40]
shl eax, 2
push eax
push dword [ecx]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + 0xe], 1
mov esi, dword [0x101257f8]
mov byte [esi + 0x1c69], 0
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1005a00d
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x19ac]
test eax, eax
je 0x1005a00d
cmp dword [edx + 0x19d4], ecx
jne 0x1005a00d
mov dword [edi + 0x10c], eax
mov al, byte [esp + 0xe]
test al, al
je 0x1005a029
mov ecx, dword [esi + 0x198c]
mov byte [esi + 0x19bf], 1
or dword [ecx + 0x110], 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [0x101257f8]
jmp 0x10059fe9