Function at 0x45a497
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df1ad
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x508040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x57ecb0]
xor edx, edx
push str.Background
mov eax, dword [ecx + 0x3e58]
mov byte [eax + 0x90], 1
mov eax, dword [ecx + 0x3e58]
mov esi, dword [eax + 0x24c]
mov eax, dword [ecx + 0x4010]
mov dword [ebp - 0x7c], esi
mov ecx, dword [eax]
call fcn.0040ad50
mov edx, dword [0x57ecb0]
add esp, 4
movss xmm4, dword [0x4fb928]
mov edi, eax
movss xmm2, dword [0x57ecb8]
xorps xmm3, xmm3
comiss xmm4, xmm2
mov ecx, dword [edx + 0x3e58]
movss xmm0, dword [ecx + 0x18]
movss xmm5, dword [ecx + 0x10]
movss xmm6, dword [ecx + 0x14]
movss dword [ebp - 0x18], xmm0
movaps xmm0, xmm4
subss xmm0, dword [edx + 0x18]
movss dword [ebp - 0x78], xmm5
movss dword [ebp - 0x74], xmm6
mulss xmm0, dword [0x4fb8b0]
jbe 0x45a133
movaps xmm1, xmm4
jmp 0x45a136
xorps xmm1, xmm1
subss xmm1, xmm2
mov eax, ecx
mov byte [eax + 0x90], 1
mov eax, dword [edx + 0x3e58]
mulss xmm1, xmm0
movss xmm0, dword [eax + 0x14]
subss xmm0, dword [eax + 0x60]
addss xmm1, xmm2
movss xmm2, dword [eax + 0x10]
subss xmm2, dword [eax + 0x5c]
movss dword [0x57ecb8], xmm1
mulss xmm1, dword [0x4fb9f8]
addss xmm2, dword [0x4fba18]
addss xmm0, xmm1
movss dword [eax + 0xd4], xmm2
movss dword [eax + 0xd8], xmm0
movss xmm1, dword [eax + 0xf0]
maxss xmm1, xmm0
movss xmm0, dword [eax + 0xec]
maxss xmm0, xmm2
movss dword [eax + 0xf0], xmm1
movaps xmm1, xmm5
addss xmm1, dword [0x4fb994]
movss dword [eax + 0xec], xmm0
movaps xmm0, xmm6
addss xmm0, dword [0x4fb978]
movss dword [ebp - 0x70], xmm1
addss xmm1, dword [0x4fb9b8]
movss dword [ebp - 0x6c], xmm0
addss xmm0, dword [0x4fb9b8]
movss dword [ebp - 0x9c], xmm1
movaps xmm1, xmmword [0x4fbe40]
comiss xmm3, xmm1
movss dword [ebp - 0x98], xmm0
movups xmmword [ebp - 0x8c], xmm1
jbe 0x45a211
xorps xmm0, xmm0
jmp 0x45a218
movaps xmm0, xmm4
minss xmm0, xmm1
movss xmm2, dword [0x4fba28]
movss xmm1, dword [0x4fb8d8]
movss xmm5, dword [ebp - 0x88]
comiss xmm3, xmm5
mulss xmm0, xmm2
addss xmm0, xmm1
cvttss2si ecx, xmm0
jbe 0x45a246
xorps xmm0, xmm0
jmp 0x45a24d
movaps xmm0, xmm4
minss xmm0, xmm5
movss xmm5, dword [ebp - 0x84]
mulss xmm0, xmm2
addss xmm0, xmm1
cvttss2si eax, xmm0
shl eax, 8
or ecx, eax
comiss xmm3, xmm5
jbe 0x45a270
xorps xmm0, xmm0
jmp 0x45a277
movaps xmm0, xmm4
minss xmm0, xmm5
mulss xmm0, xmm2
addss xmm0, xmm1
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x80]
shl eax, 0x10
or ecx, eax
comiss xmm3, xmm0
ja 0x45a299
movaps xmm3, xmm4
minss xmm3, xmm0
mulss xmm3, xmm2
sub esp, 8
mov dword [ebp - 0x94], 0x3f800000
mov dword [ebp - 0x90], 0x3f800000
mov dword [ebp - 0x84], 0
addss xmm3, xmm1
mov dword [esp], 0x42200000
mov dword [ebp - 0x80], 0
cvttss2si eax, xmm3
shl eax, 0x18
or eax, ecx
mov ecx, esi
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [0x57edd0]
call fcn.00426c40
mov ecx, dword [0x57ed48]
mov eax, closesocket
sub eax, ecx
cmp eax, 2
jb 0x45a7c3
cmp dword [0x57ed4c], 0xf
mov eax, 0x57ed38
push ecx
cmova eax, dword [0x57ed38]
push eax
push 2
push 0x4fa5d8
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x68]
call fcn.0044c1e0
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.0043bb20
movss xmm1, dword [ebp - 0x78]
lea edx, [ebp - 0x50]
movss xmm0, dword [ebp - 0x74]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3c], 0xf
addss xmm1, dword [0x4fba0c]
cmova edx, dword [ebp - 0x50]
addss xmm0, dword [0x4fb984]
mov esi, dword [0x57ecbc]
mov ecx, edx
movss dword [ebp - 0x70], xmm1
lea eax, [ecx + 1]
movss dword [ebp - 0x6c], xmm0
mov dword [ebp - 0x1c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45a392
sub ecx, dword [ebp - 0x1c]
add ecx, edx
cmp edx, ecx
je 0x45a3e3
test esi, esi
jne 0x45a3ac
mov eax, dword [edi + 0x2c]
mov esi, dword [eax + 8]
movups xmm0, xmmword [edi + 0x60]
lea eax, [ebp - 0xa4]
movss xmm2, dword [0x4fb9ac]
push 0
push ecx
mov dword [esp], 0
push ecx
push edx
push eax
push 0xffc8c8c8
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
push edi
movups xmmword [ebp - 0xa4], xmm0
call fcn.0042cfa0
mov ecx, dword [0x57ecb0]
movss xmm1, dword [0x57ecb8]
mulss xmm1, dword [0x4fba04]
mov dword [ebp - 0x1c], 0xffa49ac1
mov eax, dword [ecx + 0x3e58]
mov byte [eax + 0x90], 1
mov eax, dword [ecx + 0x3e58]
movss xmm0, dword [eax + 0x14]
movss xmm2, dword [eax + 0x10]
subss xmm0, dword [eax + 0x60]
subss xmm2, dword [eax + 0x5c]
addss xmm0, xmm1
addss xmm2, dword [0x4fba20]
movss dword [eax + 0xd8], xmm0
movss dword [eax + 0xd4], xmm2
movss xmm1, dword [eax + 0xf0]
maxss xmm1, xmm0
movss xmm0, dword [eax + 0xec]
maxss xmm0, xmm2
movss dword [eax + 0xf0], xmm1
movss xmm1, dword [0x4fb9c8]
movss dword [eax + 0xec], xmm0
lea eax, [ebp - 0x1c]
push eax
call fcn.004580d0
add esp, 4
mov dword [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x38]
movups xmmword [ebp - 0x38], xmm0
push 0
push 0x4f547e
call fcn.0043bd40
mov byte [ebp - 4], 2
call fcn.0045c120
test al, al
mov edx, 0xa
mov ecx, 0x13
cmovne ecx, edx
mov edx, str.waiting_for_game...
push ecx
mov ecx, str.loading...
cmove ecx, edx
push ecx
lea ecx, [ebp - 0x38]
call fcn.0044a0d0
mov ecx, dword [ebp - 0x24]
lea edi, [ebp - 0x38]
mov edx, dword [ebp - 0x38]
cmp ecx, 0xf
movss xmm1, dword [0x57ecb8]
xorps xmm0, xmm0
cmova edi, edx
comiss xmm0, xmm1
ja 0x45a4fd
movss xmm0, dword [0x4fb928]
minss xmm0, xmm1
mulss xmm0, dword [0x4fba28]
lea eax, [ebp - 0x38]
push ecx
movss xmm3, dword [0x4fba48]
movss xmm2, dword [0x4fb9ac]
addss xmm0, dword [0x4fb8d8]
push 0
cvttss2si esi, xmm0
movss xmm0, dword [0x4fba1c]
divss xmm0, xmm1
shl esi, 0x18
or esi, 0xcccccc
cmp ecx, 0xf
cmova eax, edx
push eax
push ecx
mov ecx, dword [0x57ecbc]
lea eax, [ebp - 0x9c]
mov dword [esp], 0
push eax
addss xmm0, dword [ebp - 0x74]
movss dword [ebp - 0x1c], xmm0
call fcn.0042cdf0
movss xmm0, dword [ebp - 0x18]
mulss xmm0, dword [0x4fb8d8]
mov edx, dword [0x57ecc4]
addss xmm0, dword [ebp - 0x78]
cvtps2pd xmm1, xmm0
movss xmm0, dword [eax]
cvtps2pd xmm0, xmm0
divsd xmm0, qword [0x4fb948]
subsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [ebp - 0x70], xmm0
movss xmm0, dword [ebp - 0x1c]
movss dword [ebp - 0x6c], xmm0
test esi, 0xff000000
je 0x45a60f
mov ecx, edi
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45a5b8
sub ecx, dword [ebp - 0x18]
lea eax, [ecx + edi]
mov dword [ebp - 0x18], eax
cmp edi, eax
je 0x45a60f
mov ecx, dword [ebp - 0x7c]
test edx, edx
jne 0x45a5dc
mov eax, dword [ecx + 0x2c]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x18]
movups xmm0, xmmword [ecx + 0x60]
push 0
movss xmm2, dword [0x4fb9b8]
push ecx
mov dword [esp], 0
push eax
push edi
lea eax, [ebp - 0x8c]
push eax
push esi
lea eax, [ebp - 0x70]
push eax
push ecx
mov ecx, edx
movups xmmword [ebp - 0x8c], xmm0
call fcn.0042cfa0
cmp dword [ebp - 0x24], 0xf
lea ecx, [ebp - 0x38]
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x28]
cmova ecx, edi
cmp esi, 0x13
jne 0x45a680
mov edx, str.waiting_for_game...
sub esi, 4
jb 0x45a641
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x45a646
add ecx, 4
add edx, 4
sub esi, 4
jae 0x45a630
cmp esi, 0xfffffffc
je 0x45a67a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x45a673
cmp esi, 0xfffffffd
je 0x45a67a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x45a673
cmp esi, 0xfffffffe
je 0x45a67a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x45a673
cmp esi, 0xffffffff
je 0x45a67a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x45a67a
sbb eax, eax
or eax, 1
jmp 0x45a67c
xor eax, eax
test eax, eax
je 0x45a6ee
cmp byte [0x57ed34], 0
je 0x45a6ee
push 4
mov byte [0x57ed34], 0
call fcn.004af986
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [eax], 0x459c90
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
push ecx
push 0
push eax
push 0x453220
push 0
push 0
call fcn.004c01b8
add esp, 0x18
mov dword [ebp - 0x20], eax
test eax, eax
je 0x45a7d4
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x45a7cd
push ecx
push eax
call fcn.004b1627
add esp, 8
test eax, eax
jne 0x45a7cd
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
cmp eax, 0xf
jbe 0x45a721
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x45a717
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45a7c8
push ecx
push edi
call fcn.004af3d3
add esp, 8
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp ecx, 0xf
jbe 0x45a763
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45a759
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45a7c8
push ecx
push edx
call fcn.004af3d3
add esp, 8
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
cmp ecx, 0xf
jbe 0x45a7a5
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45a79b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45a7c8
push ecx
push edx
call fcn.004af3d3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004af2b0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004301a0
call fcn.004bf6cd
push 1
call fcn.004b10e5
push 6
mov dword [ebp - 0x1c], 0
call fcn.004b10e5
int3