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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x100b60c0]
xor eax, esp
mov dword [esp + 0xd4], eax
push esi
mov esi, dword [0x10123f50]
push edi
mov edi, edx
mov dword [esp + 0x14], esi
mov edx, ecx
mov dword [esp + 0x1c], edi
mov eax, dword [esi + 0x199c]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ecx
mov byte [eax + 0x7c], 1
mov eax, dword [esi + 0x199c]
mov dword [esp + 0x34], eax
cmp byte [eax + 0x7f], 0
je 0x100574e9
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.1006cde1
mov esp, ebp
pop ebp
ret
movss xmm1, dword [esi + 0x1548]
xorps xmm0, xmm0
addss xmm1, xmm1
addss xmm1, dword [esi + 0x18bc]
movss dword [esp + 0x40], xmm1
test cl, 0x10
je 0x10057510
xorps xmm3, xmm3
jmp 0x1005751b
movaps xmm3, xmm1
addss xmm3, dword [esi + 0x155c]
movss xmm2, dword [eax + 0x170]
comiss xmm0, xmm2
jbe 0x1005759c
movss xmm4, dword [eax + 0xc8]
mov esi, dword [eax + 0x1c0]
movss xmm1, dword [eax + 0x218]
subss xmm4, dword [eax + 0xc]
subss xmm1, dword [eax + 0xc]
test esi, esi
je 0x10057584
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 + 0x34]
mulss xmm1, dword [eax + ecx*4]
addss xmm1, dword [esi + 0x14]
subss xmm1, dword [edx + 0x3c]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
subss xmm1, xmm4
addss xmm1, xmm2
movss xmm2, dword [0x100a9bcc]
maxss xmm2, xmm1
cvttss2si eax, xmm2
movd xmm0, eax
mov eax, edx
mov dword [esp + 0x3c], eax
cvtdq2ps xmm0, xmm0
subss xmm0, xmm3
movss dword [esp + 0x18], xmm0
cmp edx, 0xffffffff
jae 0x100575d9
nop dword [eax]
mov cl, byte [eax]
test cl, cl
je 0x100575d9
inc eax
cmp cl, 0x23
jne 0x100575d0
cmp byte [eax], cl
je 0x100575d9
mov dword [esp + 0x3c], eax
cmp eax, 0xffffffff
jb 0x100575c0
call fcn.10016fd0
mov ecx, dword [esp + 0x20]
call fcn.10016eb0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
test cl, 0x20
je 0x10057604
and ecx, 0xff9fffff
or ecx, 0x100008
mov dword [esp + 0x10], ecx
test cl, 8
jne 0x10057616
mov edx, ecx
mov ecx, edi
call fcn.1005bf60
mov ecx, dword [esp + 0x10]
test ecx, 0x700000
jne 0x1005762b
mov eax, dword [esi + 0x2c94]
and eax, 0x700000
or ecx, eax
test ecx, 0x1800000
jne 0x10057640
mov eax, dword [esi + 0x2c94]
and eax, 0x1800000
or ecx, eax
test ecx, 0x6000000
jne 0x10057655
mov eax, dword [esi + 0x2c94]
and eax, 0x6000000
or ecx, eax
test ecx, 0x18000000
jne 0x1005766a
mov eax, dword [esi + 0x2c94]
and eax, 0x18000000
or ecx, eax
mov eax, dword [esi + 0x2c94]
movss xmm2, dword [edi]
and eax, 0xe00fffff
movss xmm1, dword [edi + 4]
or ecx, eax
movss xmm4, 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 + 0x44], eax
movzx eax, dl
add eax, 3
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], eax
movss dword [esp + 0x78], xmm2
movss dword [esp + 0x7c], xmm1
movss dword [esp + 0x80], xmm4
test dl, dl
je 0x100576da
movss xmm0, dword [edi + 0xc]
movss dword [esp + 0x84], xmm0
jmp 0x100576e5
mov dword [esp + 0x84], 0x3f800000
movss xmm7, dword [0x100a9b24]
mov eax, ecx
and eax, 0x10100000
cmp eax, 0x10100000
jne 0x10057731
movss xmm2, dword [esp + 0x80]
lea eax, [esp + 0x80]
movss xmm1, dword [esp + 0x7c]
lea edx, [esp + 0x7c]
movss xmm0, dword [esp + 0x78]
lea ecx, [esp + 0x78]
push eax
call fcn.1000c800
mov ecx, dword [esp + 0x14]
add esp, 4
jmp 0x100577ca
mov eax, ecx
and eax, 0x8200000
cmp eax, 0x8200000
jne 0x100577ca
comiss xmm4, xmm1
xorps xmm5, xmm5
movaps xmm3, xmm1
jbe 0x1005775c
movss xmm5, dword [0x100a9d38]
movaps xmm3, xmm4
movaps xmm4, xmm1
comiss xmm3, xmm2
movaps xmm6, xmm2
jbe 0x10057779
movss xmm0, dword [0x100a9d24]
movaps xmm6, xmm3
subss xmm0, xmm5
movaps xmm3, xmm2
movaps xmm5, xmm0
movaps xmm1, xmm3
movaps xmm2, xmm6
minss xmm1, xmm4
subss xmm3, xmm4
subss xmm2, xmm1
movaps xmm1, xmm2
mulss xmm1, dword [0x100a9c64]
addss xmm1, xmm7
divss xmm3, xmm1
addss xmm3, xmm5
movaps xmm0, xmm3
call fcn.1000a8b0
movss dword [esp + 0x78], xmm0
movaps xmm0, xmm6
addss xmm0, xmm7
movss dword [esp + 0x80], xmm6
divss xmm2, xmm0
movss dword [esp + 0x7c], xmm2
movss xmm0, dword [esp + 0x78]
xorps xmm4, xmm4
comiss xmm0, xmm4
movss xmm2, dword [0x100a9d28]
movss xmm1, dword [0x100a9b90]
jb 0x100577ed
movaps xmm5, xmm1
jmp 0x100577f0
movaps xmm5, xmm2
movss xmm0, dword [esp + 0x78]
movss xmm3, dword [0x100a9cd8]
mulss xmm0, xmm3
addss xmm0, xmm5
cvttss2si esi, xmm0
movss xmm0, dword [esp + 0x7c]
comiss xmm0, xmm4
mov dword [esp + 0x88], esi
jb 0x10057821
movaps xmm5, xmm1
jmp 0x10057824
movaps xmm5, xmm2
movss xmm0, dword [esp + 0x7c]
mulss xmm0, xmm3
addss xmm0, xmm5
cvttss2si edx, xmm0
movss xmm0, dword [esp + 0x80]
comiss xmm0, xmm4
mov dword [esp + 0x8c], edx
jb 0x10057850
movaps xmm5, xmm1
jmp 0x10057853
movaps xmm5, xmm2
movss xmm0, dword [esp + 0x80]
mulss xmm0, xmm3
addss xmm0, xmm5
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x84]
comiss xmm0, xmm4
mov dword [esp + 0x90], eax
jae 0x10057880
movaps xmm1, xmm2
movss xmm0, dword [esp + 0x84]
mulss xmm0, xmm3
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 0
addss xmm0, xmm1
cvttss2si edi, xmm0
mov dword [esp + 0x94], edi
test ecx, 0x300000
je 0x10057c5e
test cl, 0x20
jne 0x10057c5e
mov edx, dword [esp + 0x24]
test ecx, 0x1000000
movss xmm4, dword [esp + 0x18]
mov ecx, str.M:000
movaps xmm1, xmm4
mov edi, dword [0x10123f50]
push 0
lea eax, [edx - 1]
movd xmm3, eax
mov eax, dword [esp + 0x18]
cvtdq2ps xmm3, xmm3
push 0
movss xmm2, dword [eax + 0x155c]
movaps xmm0, xmm2
mulss xmm0, xmm3
subss xmm1, xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvttss2si eax, xmm1
movss xmm1, dword [0x100a9bcc]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
maxss xmm1, xmm0
movaps xmm0, xmm1
movss dword [esp + 0x20], xmm1
addss xmm0, xmm2
movss xmm1, dword [0x100a9bcc]
movss xmm2, dword [edi + 0x18bc]
mulss xmm0, xmm3
movss xmm3, dword [0x100a9d10]
subss xmm4, xmm0
cvttss2si eax, xmm4
movd xmm0, eax
mov eax, str.M:0.000
cvtdq2ps xmm0, xmm0
cmove eax, ecx
push eax
push ecx
mov ecx, dword [edi + 0x18b8]
lea eax, [esp + 0x38]
mov dword [esp], 0xbf800000
maxss xmm1, xmm0
push eax
movss dword [esp + 0x64], xmm1
call fcn.100478f0
movss xmm0, dword [esp + 0x28]
addss xmm0, dword [0x100a9bc4]
movss xmm1, dword [esp + 0x18]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
jb 0x100579ab
xor esi, esi
jmp 0x100579bc
mov esi, dword [esp + 0x10]
and esi, 0x200000
neg esi
sbb esi, esi
neg esi
inc esi
mov eax, dword [edi + 0x199c]
xorps xmm4, xmm4
ucomiss xmm1, xmm4
mov byte [eax + 0x7c], 1
mov ecx, dword [edi + 0x199c]
mov dword [esp + 0x18], ecx
lahf
test ah, 0x44
jp 0x100579e4
movss xmm1, dword [ecx + 0x224]
lea edi, [ecx + 0x184]
movss dword [ecx + 0x170], xmm1
mov eax, dword [edi + 4]
mov ecx, dword [edi]
cmp ecx, eax
jne 0x10057a1f
inc ecx
test eax, eax
je 0x10057a0a
cdq
sub eax, edx
sar eax, 1
add eax, dword [edi + 4]
jmp 0x10057a0f
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1001f340
xorps xmm4, xmm4
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x170]
mov dword [ecx + edx*4], eax
inc dword [edi]
xor edi, edi
cmp dword [esp + 0x24], edi
jbe 0x10057c04
mov eax, dword [esp + 0x10]
mov ecx, eax
and ecx, 0x1000000
and eax, 8
shl esi, 4
mov dword [esp + 0x48], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
nop dword [eax]
test edi, edi
je 0x10057a78
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x155c]
call fcn.100172a0
lea eax, [edi + 1]
cmp eax, dword [esp + 0x24]
jne 0x10057b0f
movss xmm0, dword [esp + 0x50]
mov ecx, dword [0x10123f50]
ucomiss xmm0, xmm4
mov eax, dword [ecx + 0x199c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x199c]
mov dword [esp + 0x58], ecx
lahf
test ah, 0x44
jp 0x10057ab6
movss xmm0, dword [ecx + 0x224]
lea esi, [ecx + 0x184]
movss dword [ecx + 0x170], xmm0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
cmp edx, ecx
jne 0x10057af7
inc edx
mov dword [esp + 0x54], edx
test ecx, ecx
je 0x10057ae5
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x54]
sar eax, 1
add eax, ecx
jmp 0x10057aea
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.1001f340
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x170]
mov dword [ecx + edx*4], eax
inc dword [esi]
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x48], 0
je 0x10057b87
cmp byte [esp + 0x44], 0
je 0x10057b22
xorps xmm0, xmm0
jmp 0x10057b2a
movss xmm0, dword [0x100a9bcc]
movss xmm3, dword [0x100a9b40]
lea eax, [esp + 0x58]
push ecx
mov ecx, dword [edi*4 + 0x100a71fc]
mov edx, 8
mov dword [esp], 0x3f800000
push dword [esi + 0x100a7264]
movss dword [esp + 0x60], xmm0
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0
push eax
lea eax, [esp + 0x88]
lea eax, [eax + edi*4]
push eax
call fcn.1004fd80
mov cl, byte [esp + 0x22]
add esp, 0x14
or cl, al
or byte [esp + 0xf], cl
mov byte [esp + 0xe], cl
jmp 0x10057bde
movss xmm3, dword [0x100a9bcc]
xor ecx, ecx
cmp byte [esp + 0x44], cl
mov eax, 0xff
push ecx
cmovne eax, ecx
mov dword [esp], 0x3f800000
push dword [esi + 0x100a720c]
mov dword [esp + 0x60], eax
lea edx, [ecx + 4]
lea eax, [esp + 0x60]
mov dword [esp + 0x5c], ecx
mov ecx, dword [edi*4 + 0x100a71fc]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x98]
lea eax, [eax + edi*4]
push eax
call fcn.1004fd80
add esp, 0x14
or byte [esp + 0xe], al
cmp dword [esp + 0x28], 0
jne 0x10057bef
mov ecx, str.context
call fcn.10017760
inc edi
add esi, 4
xorps xmm4, xmm4
mov dword [esp + 0x18], esi
cmp edi, dword [esp + 0x24]
jl 0x10057a60
mov edx, dword [0x10123f50]
mov eax, dword [edx + 0x199c]
mov byte [eax + 0x7c], 1
mov ecx, dword [edx + 0x199c]
mov esi, dword [ecx + 0x184]
sub esi, 1
mov dword [ecx + 0x184], esi
jne 0x10057c35
movss xmm0, dword [ecx + 0x224]
jmp 0x10057c41
mov eax, dword [ecx + 0x18c]
movss xmm0, dword [eax + esi*4 - 4]
movss dword [ecx + 0x170], xmm0
mov eax, dword [edx + 0x199c]
mov byte [eax + 0x7c], 1
mov ecx, dword [edx + 0x199c]
jmp 0x10057ea2
test ecx, 0x400000
je 0x10057ed5
test cl, 0x20
jne 0x10057ed5
cmp byte [esp + 0x30], 0
mov ecx, 0xff
je 0x10057cd3
test edi, edi
jns 0x10057c87
xor edi, edi
jmp 0x10057c8c
cmp edi, ecx
cmovg edi, ecx
test eax, eax
jns 0x10057c94
xor eax, eax
jmp 0x10057c9c
cmp eax, 0xff
cmovg eax, ecx
test edx, edx
jns 0x10057ca4
xor edx, edx
jmp 0x10057ca9
cmp edx, ecx
cmovg edx, ecx
test esi, esi
jns 0x10057cb1
xor esi, esi
jmp 0x10057cb6
cmp esi, ecx
cmovg esi, ecx
push edi
push eax
push edx
push esi
push 0x100a6f9c
lea eax, [esp + 0xac]
push 0x40
push eax
call fcn.1000c160
add esp, 0x1c
jmp 0x10057d17
test eax, eax
jns 0x10057cdb
xor eax, eax
jmp 0x10057ce3
cmp eax, 0xff
cmovg eax, ecx
test esi, esi
jns 0x10057ceb
xor esi, esi
jmp 0x10057cf0
cmp esi, ecx
cmovg esi, ecx
test edx, edx
jns 0x10057cf8
xor edx, edx
jmp 0x10057cfd
cmp edx, ecx
cmovg edx, ecx
push eax
push edx
push esi
push 0x100a6fb0
lea eax, [esp + 0xa8]
push 0x40
push eax
call fcn.1000c160
add esp, 0x18
movss xmm4, dword [esp + 0x18]
ucomiss xmm4, dword [0x100a9b10]
mov ecx, dword [0x10123f50]
mov eax, dword [ecx + 0x199c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x199c]
lahf
mov dword [esp + 0x28], ecx
test ah, 0x44
jp 0x10057d4c
movss xmm4, dword [ecx + 0x224]
lea esi, [ecx + 0x184]
movss dword [ecx + 0x170], xmm4
mov edi, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, edi
jne 0x10057d85
inc ecx
test edi, edi
je 0x10057d73
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x10057d78
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1001f340
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x28]
push 0
push 0
push 6
mov eax, dword [eax + 0x170]
mov dword [ecx + edx*4], eax
lea eax, [esp + 0x54]
inc dword [esi]
xor edx, edx
push eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x58], 0
push 0x40
push eax
mov ecx, str.Text
mov dword [esp + 0x64], 0
call fcn.100541f0
add esp, 0x18
test al, al
je 0x10057e7b
mov byte [esp + 0xe], 1
lea ecx, [esp + 0x98]
mov al, byte [ecx]
cmp al, 0x23
je 0x10057def
cmp al, 0x20
je 0x10057def
cmp al, 9
jne 0x10057df2
inc ecx
jmp 0x10057de1
cmp byte [esp + 0x30], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
je 0x10057e55
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x94]
push eax
push str._02X_02X_02X_02X
push ecx
call fcn.1000a890
add esp, 0x18
jmp 0x10057e7b
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x90]
push eax
push str._02X_02X_02X
push ecx
call fcn.1000a890
add esp, 0x14
test byte [esp + 0x10], 8
jne 0x10057e8c
mov ecx, str.context
call fcn.10017760
mov ecx, dword [0x10123f50]
mov eax, dword [ecx + 0x199c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x199c]
mov edx, dword [ecx + 0x184]
sub edx, 1
mov dword [ecx + 0x184], edx
jne 0x10057ebd
movss xmm0, dword [ecx + 0x224]
jmp 0x10057ec9
mov eax, dword [ecx + 0x18c]
movss xmm0, dword [eax + edx*4 - 4]
movss dword [ecx + 0x170], xmm0
mov ecx, dword [esp + 0x10]
xor edi, edi
test cl, 0x10
jne 0x100581a3
mov esi, dword [esp + 0x14]
test cl, 0x20
jne 0x10057efd
movss xmm1, dword [esi + 0x155c]
xorps xmm0, xmm0
call fcn.100172a0
mov ecx, dword [esp + 0x10]
cmp byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
je 0x10057f0f
movss xmm1, dword [eax + 0xc]
jmp 0x10057f17
movss xmm1, dword [0x100a9bcc]
movss xmm0, dword [eax]
lea edx, [esp + 0x60]
movss dword [esp + 0x60], xmm0
movss xmm0, dword [eax + 4]
push edi
movss dword [esp + 0x68], xmm0
movss xmm0, dword [eax + 8]
push edi
push ecx
mov ecx, str.ColorButton
movss dword [esp + 0x74], xmm0
movss dword [esp + 0x78], xmm1
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.1005b1b0
add esp, 0xc
test al, al
mov eax, dword [esp + 0x10]
je 0x1005801f
test al, 4
jne 0x1005801f
movups xmm0, xmmword [esp + 0x60]
xor edx, edx
movups xmmword [esi + 0x2c98], xmm0
mov esi, dword [0x10123f50]
mov eax, dword [esi + 0x199c]
mov ecx, dword [eax + 0x1c4]
mov eax, dword [eax + 0x1cc]
push dword [eax + ecx*4 - 4]
mov ecx, str.picker
call fcn.1000c1a0
add esp, 4
cmp dword [esi + 0x19bc], eax
jne 0x10057fb2
mov dword [esi + 0x19c4], eax
cmp dword [esi + 0x19c0], eax
jne 0x10057fc1
mov byte [esi + 0x19d0], 1
mov ecx, eax
call fcn.100175a0
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
movss xmm1, dword [eax + 0x110]
movss xmm0, dword [eax + 0x11c]
addss xmm0, dword [esi + 0x1558]
mov eax, dword [0x10123f50]
subss xmm1, dword [0x100a9bcc]
movss dword [eax + 0x1a60], xmm0
mov dword [eax + 0x1a64], edi
movss dword [eax + 0x1a5c], xmm1
mov dword [eax + 0x1a68], edi
mov dword [eax + 0x1a40], 1
mov eax, dword [esp + 0x10]
test al, 8
jne 0x1005802d
mov ecx, str.context
call fcn.10017760
mov ecx, str.picker
call fcn.10017b50
test al, al
je 0x1005819f
mov eax, dword [esi + 0x199c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
cmp ecx, eax
je 0x10058091
push 0
mov edx, eax
call fcn.1004a260
mov ecx, dword [0x10123f50]
add esp, 4
mov eax, dword [ecx + 0x199c]
mov byte [eax + 0x7c], 1
mov eax, dword [ecx + 0x199c]
cmp byte [eax + 0x7f], 0
jne 0x10058091
xorps xmm1, xmm1
mov dword [esp + 0x58], edi
lea ecx, [esp + 0x58]
mov dword [esp + 0x5c], edi
call fcn.1000ea30
movss xmm0, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mulss xmm0, dword [0x100a9c84]
and eax, 0x1f890002
mov ecx, dword [0x10123f50]
or eax, 0x240080
mov dword [esp + 0x38], eax
ucomiss xmm0, dword [0x100a9b10]
mov eax, dword [ecx + 0x199c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x199c]
mov dword [esp + 0x40], ecx
lahf
test ah, 0x44
jp 0x100580e0
movss xmm0, dword [ecx + 0x224]
lea esi, [ecx + 0x184]
movss dword [ecx + 0x170], xmm0
mov edi, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, edi
jne 0x10058119
inc ecx
test edi, edi
je 0x10058107
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x1005810c
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1001f340
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x170]
mov dword [ecx + edx*4], eax
mov ecx, 0x100a2084
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add eax, 0x2c98
inc dword [esi]
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.10058a50
mov ecx, dword [0x10123f50]
add esp, 8
or byte [esp + 0xe], al
mov eax, dword [ecx + 0x199c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x199c]
mov edx, dword [ecx + 0x184]
sub edx, 1
mov dword [ecx + 0x184], edx
jne 0x10058182
movss xmm0, dword [ecx + 0x224]
jmp 0x1005818e
mov eax, dword [ecx + 0x18c]
movss xmm0, dword [eax + edx*4 - 4]
movss dword [ecx + 0x170], xmm0
call fcn.10017e00
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x3c]
cmp dword [esp + 0x20], esi
je 0x100581d5
test cl, cl
js 0x100581d5
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x155c]
call fcn.100172a0
mov ecx, dword [esp + 0x20]
mov edx, esi
push 0
call fcn.1004a260
add esp, 4
cmp byte [esp + 0xe], 0
je 0x10058336
test edi, edi
jne 0x10058336
cmp byte [esp + 0xf], 0
jne 0x10058206
movups xmm0, xmmword [esp + 0x88]
cvtdq2ps xmm0, xmm0
divps xmm0, xmmword [0x100aa480]
movups xmmword [esp + 0x78], xmm0
mov eax, dword [esp + 0x10]
and eax, 0x8200000
cmp eax, 0x8200000
jne 0x10058243
movss xmm2, dword [esp + 0x80]
lea eax, [esp + 0x80]
movss xmm1, dword [esp + 0x7c]
lea edx, [esp + 0x7c]
movss xmm0, dword [esp + 0x78]
lea ecx, [esp + 0x78]
push eax
call fcn.1000c800
add esp, 4
mov eax, dword [esp + 0x10]
and eax, 0x10100000
cmp eax, 0x10100000
jne 0x100582f8
movss xmm0, dword [esp + 0x7c]
xorps xmm5, xmm5
movss xmm3, dword [esp + 0x80]
movaps xmm2, xmm0
comiss xmm3, xmm2
movss xmm4, dword [esp + 0x78]
movaps xmm1, xmm4
jbe 0x10058288
movss xmm5, dword [0x100a9d38]
movaps xmm0, xmm3
movaps xmm3, xmm2
comiss xmm0, xmm1
jbe 0x100582a2
movaps xmm4, xmm0
movss xmm0, dword [0x100a9d24]
subss xmm0, xmm5
movaps xmm5, xmm0
movaps xmm0, xmm1
movaps xmm1, xmm0
movaps xmm2, xmm4
minss xmm1, xmm3
subss xmm0, xmm3
subss xmm2, xmm1
movaps xmm1, xmm2
mulss xmm1, dword [0x100a9c64]
addss xmm1, dword [0x100a9b24]
divss xmm0, xmm1
addss xmm0, xmm5
call fcn.1000a8b0
movss dword [esp + 0x78], xmm0
movaps xmm0, xmm4
addss xmm0, dword [0x100a9b24]
movss dword [esp + 0x80], xmm4
divss xmm2, xmm0
movss dword [esp + 0x7c], xmm2
cmp byte [esp + 0x30], 0
mov esi, dword [esp + 0x1c]
movss xmm0, dword [esp + 0x78]
movss dword [esi], xmm0
movss xmm0, dword [esp + 0x7c]
movss dword [esi + 4], xmm0
movss xmm0, dword [esp + 0x80]
movss dword [esi + 8], xmm0
je 0x1005833a
movss xmm0, dword [esp + 0x84]
movss dword [esi + 0xc], xmm0
jmp 0x1005833a
mov esi, dword [esp + 0x1c]
mov eax, dword [0x10123f50]
mov eax, dword [eax + 0x199c]
dec dword [eax + 0x1c4]
call fcn.10017100
mov eax, dword [esp + 0x34]
test byte [eax + 0x10c], 1
je 0x10058493
test dword [esp + 0x10], 0x200
jne 0x10058493
call fcn.1001c330
test al, al
je 0x10058493
mov ecx, str._COL3F
mov byte [esp + 0xf], 0
call fcn.1001c3c0
test eax, eax
je 0x100583a9
mov eax, dword [eax]
mov byte [esp + 0xf], 1
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.1001c3c0
mov ecx, eax
test ecx, ecx
je 0x100583d3
mov eax, dword [esp + 0x24]
shl eax, 2
push eax
push dword [ecx]
push esi
call fcn.1006ed50
add esp, 0xc
mov byte [esp + 0xe], 1
jmp 0x100583de
cmp byte [esp + 0xf], 0
je 0x10058484
test dword [esp + 0x10], 0x10000000
je 0x10058484
movss xmm3, dword [esi + 4]
movss xmm5, dword [esi + 8]
comiss xmm5, xmm3
movss xmm4, dword [esi]
jbe 0x10058412
movss xmm6, dword [0x100a9d38]
movaps xmm0, xmm3
movaps xmm3, xmm5
movaps xmm5, xmm0
jmp 0x10058415
xorps xmm6, xmm6
comiss xmm3, xmm4
jbe 0x10058432
movaps xmm0, xmm4
movaps xmm4, xmm3
movaps xmm3, xmm0
movss xmm0, dword [0x100a9d24]
subss xmm0, xmm6
movaps xmm6, xmm0
movaps xmm1, xmm3
movaps xmm2, xmm4
minss xmm1, xmm5
subss xmm3, xmm5
subss xmm2, xmm1
movaps xmm1, xmm2
mulss xmm1, dword [0x100a9c64]
addss xmm1, dword [0x100a9b24]
divss xmm3, xmm1
addss xmm3, xmm6
movaps xmm0, xmm3
call fcn.1000a8b0
movss dword [esi], xmm0
movaps xmm0, xmm4
addss xmm0, dword [0x100a9b24]
movss dword [esi + 8], xmm4
divss xmm2, xmm0
movss dword [esi + 4], xmm2
mov ecx, dword [0x10123f50]
mov byte [ecx + 0x1d09], 0
jmp 0x10058499
mov ecx, dword [0x10123f50]
test edi, edi
je 0x100584bd
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x19bc]
test eax, eax
je 0x100584bd
cmp dword [edx + 0x19e4], edi
jne 0x100584bd
mov edx, dword [esp + 0x34]
mov dword [edx + 0x108], eax
mov al, byte [esp + 0xe]
test al, al
je 0x100584d9
mov byte [ecx + 0x19cf], 1
mov ecx, dword [ecx + 0x199c]
or dword [ecx + 0x10c], 4
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
xor ecx, esp
call fcn.1006cde1
mov esp, ebp
pop ebp
ret