Function at 0x4f5410
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x5d7c60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x64aa84]
push esi
push 0
push 0
push 0
mov dword [esp + 0x28], eax
mov esi, ecx
call fcn.00474b60
cmp dword [esi + 0x48], 0xffffffff
jne 0x4f546b
mov ecx, dword [0x6613e4]
push esi
call fcn.004f8eb0
test eax, eax
je 0x4f5472
mov eax, dword [esi + 0x20]
push eax
push str.Cant_Connection_To__s__VGClients_Is_Full
push 0x661308
call fcn.004e9a20
add esp, 0xc
xor eax, eax
jmp 0x4f58bf
mov ecx, dword [0x661418]
mov edx, dword [ecx + 0x7f0]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [esi + 0x14], eax
je 0x4f546b
mov eax, dword [esi + 0x858]
test eax, eax
je 0x4f54af
mov eax, dword [eax + 0x7d8]
mov ecx, dword [0x661418]
mov eax, dword [eax + 0x5c]
cmp eax, dword [ecx + 0x750]
jne 0x4f54af
test eax, eax
jne 0x4f546b
mov ecx, dword [0x6613f4]
push ebp
push edi
call fcn.004926a0
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebp, eax
mov eax, dword [esi + 0x858]
test eax, eax
je 0x4f55ff
mov edx, dword [eax + 0x7d8]
test dword [edx + 0x28], 0x8000000
je 0x4f55ff
mov eax, dword [0x6613a8]
push eax
push 0x6613a8
call edi
test eax, eax
je 0x4f55ff
mov eax, dword [esi + 0x858]
mov ecx, dword [eax + 0x7d8]
cmp word [ecx + 0x50], 0
mov edi, 2
jne 0x4f555f
mov edx, dword [esi + 0x890]
push edx
lea eax, [esi + 0x20]
push str.Connect_To_ClientID___u_old_Tou
push eax
mov word [esi + 0x12], 0
call fcn.0040a170
mov eax, dword [esi + 0x890]
add esp, 0xc
test eax, eax
je 0x4f554e
lea ecx, [esi + 0x10]
push ecx
push eax
mov ecx, esi
call fcn.0041bef0
test eax, eax
je 0x4f5809
mov edx, dword [esi + 0x890]
push edx
push str._VG__Connection_to_VagaaID___u__Tou_Old_
jmp 0x4f55e1
mov word [esp + 0x14], di
mov ecx, dword [eax + 0x7d8]
mov edx, dword [ecx + 0x4c]
mov dword [esp + 0x18], edx
mov eax, dword [eax + 0x7d8]
xor ecx, ecx
mov cx, word [eax + 0x50]
add cx, 0xa
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x858]
mov word [esp + 0x16], ax
mov eax, dword [edx + 0x7d8]
movzx ecx, word [eax + 0x50]
mov edx, dword [esi + 0x7dc]
push ecx
add eax, 0x4c
push eax
push edx
lea eax, [esi + 0x20]
push str.Connect_To_ClientID___u__u:_u___New_Tou
push eax
call fcn.0040a170
mov edx, dword [esi + 0x7dc]
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
push edx
mov ecx, esi
call fcn.0041bef0
test eax, eax
je 0x4f5809
mov eax, dword [esi + 0x7dc]
push eax
push str._VG__Connection_to_ClientID___u__Tou_New_
push 0x661308
call fcn.004e9a20
add esp, 0xc
mov dword [esi + 0x44], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x30], eax
jmp 0x4f58b8
mov eax, dword [esi + 0x858]
test eax, eax
je 0x4f57dd
mov ecx, dword [eax + 0x7d8]
test dword [ecx + 0x28], 0x8000000
je 0x4f57dd
mov edx, dword [0x6613a8]
push edx
push 0x6613a8
call edi
test eax, eax
jne 0x4f57dd
mov eax, dword [esi + 0x858]
test eax, eax
je 0x4f57be
mov edx, dword [eax + 0x7d8]
test edx, edx
je 0x4f57be
mov di, word [edx + 0x50]
test di, di
je 0x4f5757
test ebp, ebp
je 0x4f56df
mov ecx, dword [esi + 0x7dc]
cmp ecx, dword [ebp + 0x82c]
je 0x4f56df
mov eax, edx
movzx edx, word [eax + 0x50]
push edx
add eax, 0x4c
push eax
push ecx
lea eax, [esi + 0x20]
push str.Push_To_ClientID___u__u:_u___NewVGServer
push eax
call fcn.0040a170
mov eax, dword [esi + 0x858]
mov ecx, dword [eax + 0x7d8]
mov edx, dword [eax + 0x7c4]
add esp, 0x14
xor eax, eax
mov ax, word [ecx + 0x50]
add edx, 0x98
push edx
push 1
add ecx, 0x4c
push eax
push ecx
mov ecx, dword [esi + 0x7dc]
push ecx
mov ecx, dword [0x6613f4]
call fcn.00492390
test eax, eax
je 0x4f5809
mov edx, dword [esi + 0x7dc]
push edx
push str._VG__Push_To_ClientID___u__NewVGServer
jmp 0x4f57b1
test di, di
je 0x4f5757
mov eax, dword [eax + 0x7d8]
movzx ecx, word [eax + 0x50]
mov edx, dword [esi + 0x7dc]
push ecx
add eax, 0x4c
push eax
push edx
lea eax, [esi + 0x20]
push str.Push_To_ClientID___u__u:_u___NewVGServer__new_Tou_Not_the_Same_Server
push eax
call fcn.0040a170
mov eax, dword [esi + 0x858]
mov ecx, dword [eax + 0x7d8]
xor edx, edx
mov dx, word [ecx + 0x50]
mov ecx, dword [ecx + 0x4c]
add esp, 0x14
push edx
mov edx, dword [eax + 0x7c4]
mov eax, dword [esi + 0x7dc]
push ecx
mov ecx, dword [0x661418]
add edx, 0x98
push edx
push eax
call fcn.004ee2a0
test eax, eax
je 0x4f5809
mov ecx, dword [esi + 0x7dc]
push ecx
push str._VG__Push_To_ClientID___u__New_Tou__NOT_the_Same_Server
jmp 0x4f57b1
mov edx, dword [edx + 0x5c]
push edx
lea eax, [esi + 0x20]
push str.Push_To_m_nUserID___u__NewVGServer
push eax
call fcn.0040a170
mov eax, dword [esi + 0x858]
mov ecx, dword [eax + 0x7c4]
mov edx, dword [eax + 0x7d8]
mov eax, dword [edx + 0x5c]
add esp, 0xc
push 0
push 0
add ecx, 0x98
push ecx
mov ecx, dword [0x661418]
push eax
call fcn.004ee2a0
test eax, eax
je 0x4f5809
mov ecx, dword [esi + 0x858]
mov edx, dword [ecx + 0x7d8]
mov eax, dword [edx + 0x5c]
push eax
push str._VG__Push_To_m_nUserID___u__Old_Tou
push 0x661308
call fcn.004e9a20
add esp, 0xc
mov dword [esi + 0x44], 7
mov dword [esi + 0x834], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x30], eax
jmp 0x4f58b8
test ebp, ebp
jne 0x4f57fa
mov eax, dword [esi + 0x858]
test eax, eax
je 0x4f57fa
mov ecx, dword [eax + 0x7d8]
test dword [ecx + 0x28], 0x8000000
jne 0x4f5809
lea edx, [esi + 0x10]
push edx
mov ecx, esi
call fcn.0041bf20
test eax, eax
jne 0x4f5810
xor eax, eax
jmp 0x4f58bd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0xc]
mov dword [esi + 0x30], eax
call fcn.00401b20
mov dword [esp + 0x30], 0
xor eax, eax
mov ax, word [esi + 0x12]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
push ecx
lea edx, [esp + 0x10]
push 0x5ecd14
push edx
call fcn.0040a170
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
lea edi, [esi + 0x20]
push eax
mov ecx, edi
call fcn.00403130
lea ecx, [esp + 0x10]
call fcn.00401b20
mov byte [esp + 0x30], 1
mov eax, dword [edi]
push eax
lea ecx, [esp + 0x14]
push str.Connect_To__s
push ecx
call fcn.0040a170
mov edx, dword [esp + 0x1c]
push edx
push 0x661308
mov dword [esi + 0x44], 1
call fcn.004e9a20
add esp, 0x14
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x10]
call fcn.00401b70
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00401b70
mov eax, 1
pop edi
pop ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1c]
pop esi
call fcn.0057981f
add esp, 0x28
ret