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

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebp
push edi
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + eax*4 + 0x130]
mov ebp, dword [edi]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx], 0
cmp dword [edi + eax*4 + 0x244], 0
mov dword [esp + 0x18], 0
je 0x4a2914
pop edi
mov dword [ecx], 1
xor eax, eax
pop ebp
add esp, 0xc
ret
push ebx
push esi
call fcn.004a44c0
mov esi, eax
mov eax, dword [ebp + 0x19c]
xor ecx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
mov ebx, 0x493e0
test eax, eax
jle 0x4a293b
mov ecx, 1
mov edx, dword [ebp + 0x1a0]
test edx, edx
jle 0x4a2948
or ecx, 2
dec ecx
je 0x4a2959
dec ecx
je 0x4a2955
dec ecx
jne 0x4a295b
cmp eax, edx
jl 0x4a2959
mov ebx, edx
jmp 0x4a295b
mov ebx, eax
mov edx, dword [ebp + 0x4d4]
mov eax, dword [ebp + 0x4d0]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
push esi
call fcn.004a44f0
add esp, 0x10
sub ebx, eax
je 0x4a297f
test ebx, ebx
jns 0x4a299a
push str.Connection_time_out
push ebp
call fcn.0049f8e0
add esp, 8
pop esi
pop ebx
pop edi
mov eax, 0x1c
pop ebp
add esp, 0xc
ret
mov esi, dword [esp + 0x10]
push 0
push esi
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.004bb030
add esp, 0x10
cmp eax, 0xffffffff
je 0x4a2a92
test al, 4
jne 0x4a2a6c
test eax, eax
jne 0x4a2a00
mov edx, dword [edi + 0x288]
mov eax, dword [edi + 0x284]
mov ecx, dword [esp + 0x18]
mov esi, dword [edi + 0x290]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call fcn.004a44f0
add esp, 0x10
cmp eax, esi
jl 0x4a2a62
push esi
push str.After__ldms_connect_time__move_on__n
push ebp
call fcn.0049f850
add esp, 0xc
jmp 0x4a2ab7
push esi
lea esi, [esp + 0x24]
call fcn.004a1d90
add esp, 4
test eax, eax
je 0x4a2aa2
push edi
call fcn.0049a540
add esp, 4
test eax, eax
jne 0x4a2b14
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [edi + eax*4 + 0x244], 1
mov dword [ecx], 1
test eax, eax
jne 0x4a2a4e
push 2
push ebp
call fcn.004a68b0
add esp, 8
push edi
call fcn.0049a670
mov edx, dword [esp + 0x14]
push edx
push edi
call fcn.004a1ee0
add esp, 0xc
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret
push esi
lea esi, [esp + 0x24]
call fcn.004a1d90
mov esi, dword [esp + 0x24]
push esi
push edi
call fcn.00495800
push eax
push 0x54c3c8
push ebp
call fcn.0049f850
add esp, 0x18
jmp 0x4a2aa6
push str.Connection_failed_n
push ebp
call fcn.0049f850
add esp, 8
jmp 0x4a2ab7
mov esi, dword [esp + 0x20]
test esi, esi
je 0x4a2ab7
push esi
mov dword [ebp + 0x859c], esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [edi + 0x3c]
cmp dword [eax + 0x1c], 0
mov eax, ebx
je 0x4a2ac7
cdq
sub eax, edx
sar eax, 1
mov ebx, dword [esp + 0x28]
mov dword [edi + 0x290], eax
mov eax, dword [esp + 0x24]
mov esi, edi
call fcn.004a2810
mov esi, eax
test esi, esi
je 0x4a2b12
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
mov dword [ebp + 0x859c], eax
call fcn.00495800
mov ecx, dword [edi + 0x98]
mov edx, dword [edi + 0x80]
push eax
push ecx
push edx
push str.Failed_connect_to__s:_ld___s
push ebp
call fcn.0049f8e0
add esp, 0x1c
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
add esp, 0xc
ret