Function at 0x485330
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 + 0x1c4], 0
mov dword [esp + 0x18], 0
je 0x485374
pop edi
mov dword [ecx], 1
xor eax, eax
pop ebp
add esp, 0xc
ret
push ebx
push esi
call fcn.00482900
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 0x48539b
mov ecx, 1
mov edx, dword [ebp + 0x1a0]
test edx, edx
jle 0x4853a8
or ecx, 2
dec ecx
je 0x4853b9
dec ecx
je 0x4853b5
dec ecx
jne 0x4853bb
cmp eax, edx
jl 0x4853b9
mov ebx, edx
jmp 0x4853bb
mov ebx, eax
mov edx, dword [ebp + 0x4cc]
mov eax, dword [ebp + 0x4c8]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
push esi
call fcn.00482930
add esp, 0x10
sub ebx, eax
je 0x4853df
test ebx, ebx
jns 0x4853fa
push str.Connection_time_out
push ebp
call fcn.00482e60
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.004818f0
add esp, 0x10
cmp eax, 0xffffffff
je 0x4854f2
test al, 4
jne 0x4854cc
test eax, eax
jne 0x485460
mov edx, dword [edi + 0x208]
mov eax, dword [edi + 0x204]
mov ecx, dword [esp + 0x18]
mov esi, dword [edi + 0x210]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call fcn.00482930
add esp, 0x10
cmp eax, esi
jl 0x4854c2
push esi
push str.After__ldms_connect_time__move_on__n
push ebp
call fcn.00482dd0
add esp, 0xc
jmp 0x485517
push esi
lea esi, [esp + 0x24]
call fcn.004847d0
add esp, 4
test eax, eax
je 0x485502
push edi
call fcn.0047e260
add esp, 4
test eax, eax
jne 0x485574
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [edi + eax*4 + 0x1c4], 1
mov dword [ecx], 1
test eax, eax
jne 0x4854ae
push 2
push ebp
call fcn.00483860
add esp, 8
push edi
call fcn.0047e3a0
mov edx, dword [esp + 0x14]
push edx
push edi
call fcn.004848e0
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.004847d0
mov esi, dword [esp + 0x24]
push esi
push edi
call fcn.004a0630
push eax
push 0x574a4c
push ebp
call fcn.00482dd0
add esp, 0x18
jmp 0x485506
push str.Connection_failed_n
push ebp
call fcn.00482dd0
add esp, 8
jmp 0x485517
mov esi, dword [esp + 0x20]
test esi, esi
je 0x485517
push esi
mov dword [ebp + 0x858c], esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [edi + 0x3c]
cmp dword [eax + 0x1c], 0
mov eax, ebx
je 0x485527
cdq
sub eax, edx
sar eax, 1
mov ebx, dword [esp + 0x28]
mov dword [edi + 0x210], eax
mov eax, dword [esp + 0x24]
mov esi, edi
call fcn.00485270
mov esi, eax
test esi, esi
je 0x485572
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
mov dword [ebp + 0x858c], eax
call fcn.004a0630
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.00482e60
add esp, 0x1c
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
add esp, 0xc
ret