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

Disassembly:
sub esp, 0x50
mov eax, dword [0x48b914]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
mov esi, dword [ebx]
push edi
xor edi, edi
xor ebp, ebp
mov dword [eax], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebp
cmp dword [ebx + ecx*4 + 0x1f0], edi
je 0x42984a
mov dword [eax], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00454d22
add esp, 0x50
ret
call fcn.00426b60
mov dword [esp + 0x20], edx
push 1
lea edx, [esp + 0x20]
push edx
push esi
mov dword [esp + 0x28], eax
call fcn.00428a00
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x24], eax
jge 0x4298a0
push str.Connection_time_out
push esi
call fcn.00427010
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00454d22
add esp, 0x50
ret
mov eax, dword [ebx + edi*4 + 0x15c]
cmp eax, 0xffffffff
je 0x429a1a
push 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0041d380
add esp, 0x10
test eax, eax
jne 0x429956
mov eax, dword [ebx + 0x234]
mov ecx, dword [ebx + 0x230]
mov edx, dword [esp + 0x20]
mov esi, dword [ebx + 0x23c]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.00426b90
add esp, 0x10
cmp eax, esi
jl 0x42990d
mov ecx, dword [esp + 0x10]
push esi
push str.After__ldms_connect_time__move_on__n
push ecx
call fcn.00426f80
mov ebp, 0x274c
add esp, 0xc
mov dword [esp + 0x14], ebp
test edi, edi
jne 0x4299a7
cmp dword [ebx + 0x54], edi
jne 0x4299a7
mov edx, dword [ebx + 0x234]
mov eax, dword [ebx + 0x230]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call fcn.00426b90
add esp, 0x10
cmp eax, 0xc8
jl 0x4299a7
mov eax, dword [esp + 0x68]
push 1
push eax
call fcn.00429750
add esp, 8
jmp 0x4299a7
cmp eax, 2
jne 0x42998b
mov ecx, dword [ebx + edi*4 + 0x15c]
push ecx
lea esi, [esp + 0x18]
call fcn.00428ec0
add esp, 4
test eax, eax
jne 0x429a64
mov edx, dword [esp + 0x10]
push str.Connection_failed_n
push edx
call fcn.00426f80
add esp, 8
jmp 0x4299a3
test al, 4
je 0x4299a7
mov eax, dword [ebx + edi*4 + 0x15c]
push eax
lea esi, [esp + 0x18]
call fcn.00428ec0
add esp, 4
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x429a1a
mov esi, dword [esp + 0x10]
push ebp
mov dword [esi + 0x85e4], ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [ebx + edi*4 + 0x50]
push 0x2e
lea ecx, [esp + 0x30]
push ecx
push edx
call fcn.0041dfb0
push ebp
push ebx
call fcn.0041bf00
push eax
mov eax, dword [ebx + 0xb0]
push eax
lea ecx, [esp + 0x48]
push ecx
push str.connect_to__s_port__ld_failed:__s_n
push esi
call fcn.00426f80
mov edx, dword [ebx + edi*4 + 0x50]
mov eax, dword [esp + 0x4c]
add esp, 0x28
cmp dword [edx + 0x1c], 0
je 0x429a02
cdq
sub eax, edx
sar eax, 1
mov dword [ebx + 0x23c], eax
mov eax, dword [esp + 0x68]
push edi
push eax
call fcn.00429750
add esp, 8
mov dword [esp + 0x18], eax
inc edi
cmp edi, 2
jl 0x4298a0
cmp dword [esp + 0x18], 0
je 0x429b3c
cmp dword [ebx + 0x54], 0
jne 0x429a4c
mov eax, dword [esp + 0x68]
push 1
push eax
call fcn.00429750
add esp, 8
test eax, eax
je 0x429835
cmp dword [ebx + 0x1d4], 0
je 0x429b14
mov esi, dword [ebx + 0xa8]
jmp 0x429b1a
mov ecx, dword [ebx + edi*4 + 0x15c]
mov ebp, dword [esp + 0x68]
mov dword [ebx + ebp*4 + 0x154], ecx
mov edx, dword [ebx + edi*4 + 0x50]
mov esi, edi
xor esi, 1
mov dword [ebx + 0x4c], edx
mov dword [ebx + edi*4 + 0x15c], 0xffffffff
mov eax, dword [ebx + esi*4 + 0x15c]
cmp eax, 0xffffffff
je 0x429aae
push eax
push ebx
call fcn.004292c0
add esp, 8
mov dword [ebx + esi*4 + 0x15c], 0xffffffff
push ebp
push ebx
call fcn.0041f010
add esp, 8
test eax, eax
jne 0x429b40
mov eax, dword [esp + 0x28]
mov dword [ebx + ebp*4 + 0x1f0], 1
mov dword [eax], 1
test ebp, ebp
jne 0x429ae8
mov ecx, dword [esp + 0x10]
push 2
push ecx
call fcn.00431ec0
add esp, 8
mov edx, dword [ebx + ebp*4 + 0x154]
push edx
push ebx
call fcn.00428fd0
push ebx
call fcn.0041f0a0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00454d22
add esp, 0x50
ret
mov esi, dword [ebx + 0x98]
push ebp
push ebx
call fcn.0041bf00
mov ecx, dword [ebx + 0xb0]
mov edx, dword [esp + 0x18]
push eax
push ecx
push esi
push str.Failed_to_connect_to__s_port__ld:__s
push edx
call fcn.00427010
add esp, 0x1c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00454d22
add esp, 0x50
ret