Function at 0x489c30
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 + 0x1e4], 0
mov dword [esp + 0x18], 0
je 0x489c74
pop edi
mov dword [ecx], 1
xor eax, eax
pop ebp
add esp, 0xc
ret
push ebx
push esi
call fcn.0048b140
mov esi, eax
mov eax, dword [ebp + 0x1d4]
xor ecx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
mov ebx, 0x493e0
test eax, eax
jle 0x489c9b
mov ecx, 1
mov edx, dword [ebp + 0x1d8]
test edx, edx
jle 0x489ca8
or ecx, 2
sub ecx, 1
je 0x489cbf
sub ecx, 1
je 0x489cbb
sub ecx, 1
jne 0x489cc1
cmp eax, edx
jl 0x489cbf
mov ebx, edx
jmp 0x489cc1
mov ebx, eax
mov edx, dword [ebp + 0x51c]
mov eax, dword [ebp + 0x518]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
push esi
call fcn.0048b170
add esp, 0x10
sub ebx, eax
je 0x489ce5
test ebx, ebx
jge 0x489d00
push str.Connection_time_out
push ebp
call fcn.004873e0
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.0047d1c0
add esp, 0x10
cmp eax, 0xffffffff
je 0x489df8
test al, 4
jne 0x489dd2
test eax, eax
jne 0x489d66
mov edx, dword [edi + 0x228]
mov eax, dword [edi + 0x224]
mov ecx, dword [esp + 0x18]
mov esi, dword [edi + 0x230]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call fcn.0048b170
add esp, 0x10
cmp eax, esi
jl 0x489dc8
push esi
push str.After__ldms_connect_time__move_on__n
push ebp
call fcn.00487350
add esp, 0xc
jmp 0x489e1d
push esi
lea esi, [esp + 0x24]
call fcn.004890f0
add esp, 4
test eax, eax
je 0x489e08
push edi
call fcn.00481f40
add esp, 4
test eax, eax
jne 0x489e7a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [edi + eax*4 + 0x1e4], 1
mov dword [ecx], 1
test eax, eax
jne 0x489db4
push 2
push ebp
call fcn.00490010
add esp, 8
push edi
call fcn.00482080
mov edx, dword [esp + 0x14]
push edx
push edi
call fcn.00489230
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.004890f0
mov esi, dword [esp + 0x24]
push esi
push edi
call fcn.0048c1e0
push eax
push 0x5943a0
push ebp
call fcn.00487350
add esp, 0x18
jmp 0x489e0c
push str.Connection_failed_n
push ebp
call fcn.00487350
add esp, 8
jmp 0x489e1d
mov esi, dword [esp + 0x20]
test esi, esi
je 0x489e1d
push esi
mov dword [ebp + 0x85dc], esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [edi + 0x3c]
cmp dword [eax + 0x1c], 0
mov eax, ebx
je 0x489e2d
cdq
sub eax, edx
sar eax, 1
mov ebx, dword [esp + 0x28]
mov dword [edi + 0x230], eax
mov eax, dword [esp + 0x24]
mov esi, edi
call fcn.00489b70
mov esi, eax
test esi, esi
je 0x489e78
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
mov dword [ebp + 0x85dc], eax
call fcn.0048c1e0
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.004873e0
add esp, 0x1c
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
add esp, 0xc
ret