Function at 0x485250
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 0x485294
pop edi
mov dword [ecx], 1
xor eax, eax
pop ebp
add esp, 0xc
ret
push ebx
push esi
call fcn.00482820
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 0x4852bb
mov ecx, 1
mov edx, dword [ebp + 0x1a0]
test edx, edx
jle 0x4852c8
or ecx, 2
dec ecx
je 0x4852d9
dec ecx
je 0x4852d5
dec ecx
jne 0x4852db
cmp eax, edx
jl 0x4852d9
mov ebx, edx
jmp 0x4852db
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.00482850
add esp, 0x10
sub ebx, eax
je 0x4852ff
test ebx, ebx
jns 0x48531a
push str.Connection_time_out
push ebp
call fcn.00482d80
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.00481810
add esp, 0x10
cmp eax, 0xffffffff
je 0x485412
test al, 4
jne 0x4853ec
test eax, eax
jne 0x485380
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.00482850
add esp, 0x10
cmp eax, esi
jl 0x4853e2
push esi
push str.After__ldms_connect_time__move_on__n
push ebp
call fcn.00482cf0
add esp, 0xc
jmp 0x485437
push esi
lea esi, [esp + 0x24]
call fcn.004846f0
add esp, 4
test eax, eax
je 0x485422
push edi
call fcn.0047e180
add esp, 4
test eax, eax
jne 0x485494
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 0x4853ce
push 2
push ebp
call fcn.00483780
add esp, 8
push edi
call fcn.0047e2c0
mov edx, dword [esp + 0x14]
push edx
push edi
call fcn.00484800
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.004846f0
mov esi, dword [esp + 0x24]
push esi
push edi
call fcn.004a0550
push eax
push 0x574a4c
push ebp
call fcn.00482cf0
add esp, 0x18
jmp 0x485426
push str.Connection_failed_n
push ebp
call fcn.00482cf0
add esp, 8
jmp 0x485437
mov esi, dword [esp + 0x20]
test esi, esi
je 0x485437
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 0x485447
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.00485190
mov esi, eax
test esi, esi
je 0x485492
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
mov dword [ebp + 0x858c], eax
call fcn.004a0550
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.00482d80
add esp, 0x1c
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
add esp, 0xc
ret