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

Disassembly:
sub esp, 0x58
mov eax, dword [0x10088d90]
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 + 0x3e4], ecx
je 0x1002cc24
pop edi
mov dword [eax], 1
xor eax, eax
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1005435a
add esp, 0x58
ret
push ebx
push ebp
call fcn.10028fe0
mov ebx, eax
mov eax, dword [esi + 0x200]
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 0x1002cc54
mov ecx, 1
mov edx, dword [esi + 0x204]
test edx, edx
jle 0x1002cc61
or ecx, 2
sub ecx, 1
je 0x1002cc76
sub ecx, 1
je 0x1002cc74
sub ecx, 1
jne 0x1002cc7f
cmp eax, edx
jl 0x1002cc76
mov eax, edx
cdq
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x64c]
mov ecx, dword [esi + 0x648]
push eax
push ecx
push ebp
push ebx
call fcn.10029010
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 0x1002ccbb
test eax, eax
jg 0x1002cce1
jl 0x1002ccbb
test ecx, ecx
jae 0x1002cce1
push str.Connection_time_out
push esi
call fcn.10029650
add esp, 8
pop ebp
pop ebx
pop edi
mov eax, 0x1c
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1005435a
add esp, 0x58
ret
xor ebx, ebx
mov eax, dword [edi + ebx*4 + 0x1a0]
mov ebp, ebx
xor ebp, 1
mov dword [esp + 0x24], ebp
cmp eax, 0xffffffff
je 0x1002cec6
push 0
push 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.1001f590
add esp, 0x14
test eax, eax
jne 0x1002ce26
mov ecx, dword [edi + 0x440]
mov edx, dword [esp + 0x2c]
mov ebp, dword [edi + 0x450]
mov esi, dword [edi + 0x454]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x444]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call fcn.10029010
add esp, 0x10
cmp edx, esi
jl 0x1002cd6b
jg 0x1002cd4f
cmp eax, ebp
jb 0x1002cd6b
mov ecx, dword [esp + 0x10]
push esi
push ebp
push str.After__ldms_connect_time__move_on__n
push ecx
call fcn.100295c0
add esp, 0x10
mov dword [esp + 0x1c], 0x274c
test ebx, ebx
jne 0x1002cdb2
cmp dword [edi + 0x5c], ebx
jne 0x1002cdb2
mov edx, dword [edi + 0x444]
mov eax, dword [edi + 0x440]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call fcn.10029010
add esp, 0x10
test edx, edx
jl 0x1002cdb2
jg 0x1002cda1
cmp eax, 0xc8
jb 0x1002cdb2
mov eax, dword [esp + 0x70]
push 1
push eax
mov eax, edi
call fcn.1002cb10
add esp, 8
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1002cec6
push eax
mov dword [esi + 0x475c], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [edi + ebx*4 + 0x58]
test eax, eax
je 0x1002cec6
push 0x2e
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.10021010
mov edx, dword [esp + 0x28]
push edx
push edi
call fcn.1001eb70
push eax
mov eax, dword [edi + 0xfc]
push eax
lea ecx, [esp + 0x50]
push ecx
push str.connect_to__s_port__ld_failed:__s_n
push esi
call fcn.100295c0
mov edx, dword [edi + ebx*4 + 0x58]
add esp, 0x28
cmp dword [edx + 0x1c], 0
jne 0x1002ce84
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
jmp 0x1002ce97
cmp eax, 2
je 0x1002ce51
cmp dword [edi + 0x428], 0
jne 0x1002ce51
test al, 4
je 0x1002cdba
mov ecx, dword [edi + ebx*4 + 0x1a0]
push ecx
lea esi, [esp + 0x20]
call fcn.1002bf90
add esp, 4
jmp 0x1002cdb6
mov edx, dword [edi + ebx*4 + 0x1a0]
push edx
lea esi, [esp + 0x20]
call fcn.1002bf90
add esp, 4
test eax, eax
jne 0x1002cf16
mov eax, dword [esp + 0x10]
push str.Connection_failed_n
push eax
call fcn.100295c0
add esp, 8
jmp 0x1002cdb6
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
push 2
push eax
push ecx
call fcn.1005ab50
mov dword [edi + 0x454], edx
mov edx, dword [esp + 0x70]
mov dword [edi + 0x450], eax
push ebx
push edx
mov eax, edi
call fcn.1002cb10
add esp, 8
cmp eax, 7
jne 0x1002cec2
cmp dword [edi + ebp*4 + 0x1a0], 0xffffffff
jne 0x1002cec6
mov dword [esp + 0x20], eax
inc ebx
cmp ebx, 2
jl 0x1002cce3
cmp dword [esp + 0x20], 0
je 0x1002d00f
cmp dword [edi + 0x5c], 0
jne 0x1002cefe
mov edx, dword [esp + 0x70]
push 1
push edx
mov eax, edi
call fcn.1002cb10
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x1002d00f
cmp dword [edi + 0x3cc], 0
je 0x1002cfc1
mov esi, dword [edi + 0xc4]
jmp 0x1002cfe9
mov eax, dword [edi + ebx*4 + 0x1a0]
mov esi, dword [esp + 0x70]
mov dword [edi + esi*4 + 0x198], eax
mov ecx, dword [edi + ebx*4 + 0x58]
mov dword [edi + 0x54], ecx
mov dword [edi + ebx*4 + 0x1a0], 0xffffffff
mov eax, dword [edi + ebp*4 + 0x1a0]
cmp eax, 0xffffffff
je 0x1002cf5b
push eax
push edi
call fcn.1002c450
add esp, 8
mov dword [edi + ebp*4 + 0x1a0], 0xffffffff
push esi
push edi
call fcn.100221d0
add esp, 8
test eax, eax
jne 0x1002d013
mov edx, dword [esp + 0x30]
mov dword [edi + esi*4 + 0x3e4], 1
mov dword [edx], 1
test esi, esi
jne 0x1002cf95
mov eax, dword [esp + 0x10]
push 4
push eax
call fcn.10030f60
add esp, 8
mov ecx, dword [edi + esi*4 + 0x198]
push ecx
push edi
call fcn.1002c0c0
push edi
call fcn.100222f0
add esp, 0xc
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1005435a
add esp, 0x58
ret
cmp dword [edi + 0x3c8], 0
je 0x1002cfd2
mov esi, dword [edi + 0xe4]
jmp 0x1002cfe9
cmp dword [edi + 0x3bc], 0
je 0x1002cfe3
mov esi, dword [edi + 0xb4]
jmp 0x1002cfe9
mov esi, dword [edi + 0xa0]
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.1001eb70
mov ecx, dword [edi + 0xfc]
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.10029650
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.1005435a
add esp, 0x58
ret