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

Disassembly:
sub esp, 0x58
mov eax, dword [0x577690]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push esi
xor ecx, ecx
push edi
mov edi, dword [esp + 0x64]
mov esi, dword [edi]
mov dword [eax], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 8], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
cmp dword [edi + edx*4 + 0x2bc], ecx
je 0x42a584
pop edi
mov dword [eax], 1
xor eax, eax
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004f8e7f
add esp, 0x58
ret
push ebx
push ebp
call fcn.004280e0
mov ebx, eax
mov eax, dword [esi + 0x1e0]
xor ecx, ecx
cmp eax, ecx
mov ebp, edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], 0x493e0
mov dword [esp + 0x18], ecx
jle 0x42a5b4
mov ecx, 1
mov edx, dword [esi + 0x1e4]
test edx, edx
jle 0x42a5c1
or ecx, 2
sub ecx, 1
je 0x42a5d6
sub ecx, 1
je 0x42a5d4
sub ecx, 1
jne 0x42a5df
cmp eax, edx
jl 0x42a5d6
mov eax, edx
cdq
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x614]
mov ecx, dword [esi + 0x610]
push eax
push ecx
push ebp
push ebx
call fcn.00428110
mov ecx, dword [esp + 0x24]
add esp, 0x10
sub ecx, eax
mov eax, dword [esp + 0x18]
sbb eax, edx
mov edx, ecx
or edx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
je 0x42a61b
test eax, eax
jg 0x42a641
jl 0x42a61b
test ecx, ecx
jae 0x42a641
push str.Connection_time_out
push esi
call fcn.004286d0
add esp, 8
pop ebp
pop ebx
pop edi
mov eax, 0x1c
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004f8e7f
add esp, 0x58
ret
xor ebx, ebx
mov eax, dword [edi + ebx*4 + 0x198]
mov ebp, ebx
xor ebp, 1
mov dword [esp + 0x24], ebp
cmp eax, 0xffffffff
je 0x42a826
push 0
push 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.00425b10
add esp, 0x14
test eax, eax
jne 0x42a786
mov ecx, dword [edi + 0x318]
mov edx, dword [esp + 0x2c]
mov ebp, dword [edi + 0x328]
mov esi, dword [edi + 0x32c]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x31c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00428110
add esp, 0x10
cmp edx, esi
jl 0x42a6cb
jg 0x42a6af
cmp eax, ebp
jb 0x42a6cb
mov ecx, dword [esp + 0x10]
push esi
push ebp
push str.After__ldms_connect_time__move_on__n
push ecx
call fcn.00428640
add esp, 0x10
mov dword [esp + 0x1c], 0x274c
test ebx, ebx
jne 0x42a712
cmp dword [edi + 0x54], ebx
jne 0x42a712
mov edx, dword [edi + 0x31c]
mov eax, dword [edi + 0x318]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call fcn.00428110
add esp, 0x10
test edx, edx
jl 0x42a712
jg 0x42a701
cmp eax, 0xc8
jb 0x42a712
mov eax, dword [esp + 0x70]
push 1
push eax
mov eax, edi
call fcn.0042a470
add esp, 8
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42a826
push eax
mov dword [esi + 0x4708], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [edi + ebx*4 + 0x50]
test eax, eax
je 0x42a826
push 0x2e
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.00427860
mov edx, dword [esp + 0x28]
push edx
push edi
call fcn.0042b340
push eax
mov eax, dword [edi + 0xf4]
push eax
lea ecx, [esp + 0x50]
push ecx
push str.connect_to__s_port__ld_failed:__s_n
push esi
call fcn.00428640
mov edx, dword [edi + ebx*4 + 0x50]
add esp, 0x28
cmp dword [edx + 0x1c], 0
jne 0x42a7e4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
jmp 0x42a7f7
cmp eax, 2
je 0x42a7b1
cmp dword [edi + 0x300], 0
jne 0x42a7b1
test al, 4
je 0x42a71a
mov ecx, dword [edi + ebx*4 + 0x198]
push ecx
lea esi, [esp + 0x20]
call fcn.004299e0
add esp, 4
jmp 0x42a716
mov edx, dword [edi + ebx*4 + 0x198]
push edx
lea esi, [esp + 0x20]
call fcn.004299e0
add esp, 4
test eax, eax
jne 0x42a876
mov eax, dword [esp + 0x10]
push str.Connection_failed_n
push eax
call fcn.00428640
add esp, 8
jmp 0x42a716
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
push 2
push eax
push ecx
call fcn.004fd8e0
mov dword [edi + 0x32c], edx
mov edx, dword [esp + 0x70]
mov dword [edi + 0x328], eax
push ebx
push edx
mov eax, edi
call fcn.0042a470
add esp, 8
cmp eax, 7
jne 0x42a822
cmp dword [edi + ebp*4 + 0x198], 0xffffffff
jne 0x42a826
mov dword [esp + 0x20], eax
inc ebx
cmp ebx, 2
jl 0x42a643
cmp dword [esp + 0x20], 0
je 0x42a96f
cmp dword [edi + 0x54], 0
jne 0x42a85e
mov edx, dword [esp + 0x70]
push 1
push edx
mov eax, edi
call fcn.0042a470
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x42a96f
cmp dword [edi + 0x2a4], 0
je 0x42a921
mov esi, dword [edi + 0xbc]
jmp 0x42a949
mov eax, dword [edi + ebx*4 + 0x198]
mov esi, dword [esp + 0x70]
mov dword [edi + esi*4 + 0x190], eax
mov ecx, dword [edi + ebx*4 + 0x50]
mov dword [edi + 0x4c], ecx
mov dword [edi + ebx*4 + 0x198], 0xffffffff
mov eax, dword [edi + ebp*4 + 0x198]
cmp eax, 0xffffffff
je 0x42a8bb
push eax
push edi
call fcn.00429db0
add esp, 8
mov dword [edi + ebp*4 + 0x198], 0xffffffff
push esi
push edi
call fcn.00427c50
add esp, 8
test eax, eax
jne 0x42a973
mov edx, dword [esp + 0x30]
mov dword [edi + esi*4 + 0x2bc], 1
mov dword [edx], 1
test esi, esi
jne 0x42a8f5
mov eax, dword [esp + 0x10]
push 4
push eax
call fcn.00430b60
add esp, 8
mov ecx, dword [edi + esi*4 + 0x190]
push ecx
push edi
call fcn.00429b10
push edi
call fcn.00427d70
add esp, 0xc
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004f8e7f
add esp, 0x58
ret
cmp dword [edi + 0x2a0], 0
je 0x42a932
mov esi, dword [edi + 0xdc]
jmp 0x42a949
cmp dword [edi + 0x294], 0
je 0x42a943
mov esi, dword [edi + 0xac]
jmp 0x42a949
mov esi, dword [edi + 0x98]
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.0042b340
mov ecx, dword [edi + 0xf4]
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.004286d0
add esp, 0x1c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x64]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.004f8e7f
add esp, 0x58
ret