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

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx + eax*4 + 0x130]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x1c]
push ebp
mov ebp, dword [ebx]
mov dword [ecx], 0
cmp dword [ebx + eax*4 + 0x1c4], 0
mov dword [esp + 0x18], 0
je 0x100279b4
pop ebp
mov dword [ecx], 1
xor eax, eax
pop ebx
add esp, 0xc
ret
push esi
push edi
call fcn.10029ee0
mov esi, eax
mov eax, dword [ebp + 0x1d4]
xor ecx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
mov edi, 0x493e0
test eax, eax
jle 0x100279db
mov ecx, 1
mov edx, dword [ebp + 0x1d8]
test edx, edx
jle 0x100279e8
or ecx, 2
sub ecx, 1
je 0x100279ff
sub ecx, 1
je 0x100279fb
sub ecx, 1
jne 0x10027a01
cmp eax, edx
jl 0x100279ff
mov edi, edx
jmp 0x10027a01
mov edi, eax
mov edx, dword [ebp + 0x504]
mov eax, dword [ebp + 0x500]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
push esi
call fcn.10029f10
add esp, 0x10
sub edi, eax
je 0x10027a25
test edi, edi
jge 0x10027a40
push str.Connection_time_out
push ebp
call fcn.100253d0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 0xc
ret
mov esi, dword [esp + 0x10]
push 0
push esi
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.1003d190
add esp, 0x10
cmp eax, 0xffffffff
je 0x10027b38
test al, 4
jne 0x10027b12
test eax, eax
jne 0x10027aa6
mov edx, dword [ebx + 0x208]
mov eax, dword [ebx + 0x204]
mov ecx, dword [esp + 0x18]
mov esi, dword [ebx + 0x210]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call fcn.10029f10
add esp, 0x10
cmp eax, esi
jl 0x10027b08
push esi
push str.After__ldms_connect_time__move_on__n
push ebp
call fcn.10025340
add esp, 0xc
jmp 0x10027b5d
push esi
lea esi, [esp + 0x24]
call fcn.10026f00
add esp, 4
test eax, eax
je 0x10027b48
push ebx
call fcn.100201f0
add esp, 4
test eax, eax
jne 0x10027bba
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [ebx + eax*4 + 0x1c4], 1
mov dword [ecx], 1
test eax, eax
jne 0x10027af4
push 2
push ebp
call fcn.1003e9b0
add esp, 8
push ebx
call fcn.10020320
mov edx, dword [esp + 0x14]
push edx
push ebx
call fcn.10027010
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push esi
lea esi, [esp + 0x24]
call fcn.10026f00
mov esi, dword [esp + 0x24]
push esi
push ebx
call fcn.10029e00
push eax
push 0x1006f10c
push ebp
call fcn.10025340
add esp, 0x18
jmp 0x10027b4c
push str.Connection_failed_n
push ebp
call fcn.10025340
add esp, 8
jmp 0x10027b5d
mov esi, dword [esp + 0x20]
test esi, esi
je 0x10027b5d
push esi
mov dword [ebp + 0x85cc], esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebx + 0x3c]
cmp dword [eax + 0x1c], 0
mov eax, edi
je 0x10027b6d
cdq
sub eax, edx
sar eax, 1
mov edi, dword [esp + 0x28]
mov dword [ebx + 0x210], eax
mov eax, dword [esp + 0x24]
mov ecx, ebx
call fcn.100278a0
mov esi, eax
test esi, esi
je 0x10027bb8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
mov dword [ebp + 0x85cc], eax
call fcn.10029e00
mov ecx, dword [ebx + 0x98]
mov edx, dword [ebx + 0x80]
push eax
push ecx
push edx
push str.Failed_connect_to__s:_ld___s
push ebp
call fcn.100253d0
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret