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

Disassembly:
sub esp, 0x50
mov eax, dword [0x10044060]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push ebp
xor ecx, ecx
push edi
mov edi, dword [esp + 0x5c]
mov ebp, dword [edi]
mov dword [eax], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
cmp dword [edi + edx*4 + 0x274], ecx
je 0x1001ff10
pop edi
mov dword [eax], 1
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.100377f0
add esp, 0x50
ret
push ebx
push esi
call fcn.10001900
mov esi, eax
mov eax, dword [ebp + 0x1e0]
mov ebx, edx
xor ecx, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], 0x493e0
test eax, eax
jle 0x1001ff3c
mov ecx, 1
mov edx, dword [ebp + 0x1e4]
test edx, edx
jle 0x1001ff49
or ecx, 2
sub ecx, 1
je 0x1001ff62
sub ecx, 1
je 0x1001ff5c
sub ecx, 1
jne 0x1001ff66
cmp eax, edx
jl 0x1001ff62
mov dword [esp + 0x10], edx
jmp 0x1001ff66
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x544]
mov ecx, dword [ebp + 0x540]
push eax
push ecx
push ebx
push esi
call fcn.10001930
add esp, 0x10
sub dword [esp + 0x10], eax
je 0x1001ff8b
cmp dword [esp + 0x10], 0
jge 0x1001ffb1
push str.Connection_time_out
push ebp
call fcn.1000a2d0
add esp, 8
pop esi
pop ebx
pop edi
mov eax, 0x1c
pop ebp
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.100377f0
add esp, 0x50
ret
xor ebx, ebx
mov eax, ebx
xor eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [edi + ebx*4 + 0x15c]
cmp eax, 0xffffffff
je 0x10020144
push 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.10025a70
add esp, 0x10
test eax, eax
jne 0x1002006d
mov edx, dword [edi + 0x2b8]
mov eax, dword [edi + 0x2b4]
mov ecx, dword [esp + 0x24]
mov esi, dword [edi + 0x2c0]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.10001930
add esp, 0x10
cmp eax, esi
jl 0x10020024
push esi
push str.After__ldms_connect_time__move_on__n
push ebp
call fcn.1000a240
add esp, 0xc
mov dword [esp + 0x14], 0x274c
test ebx, ebx
jne 0x100200b6
cmp dword [edi + 0x54], ebx
jne 0x100200b6
mov eax, dword [edi + 0x2b8]
mov ecx, dword [edi + 0x2b4]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call fcn.10001930
add esp, 0x10
cmp eax, 0xc8
jl 0x100200b6
mov ecx, dword [esp + 0x68]
push 1
push ecx
call fcn.1001fdf0
add esp, 8
jmp 0x100200b6
cmp eax, 2
jne 0x1002009e
mov edx, dword [edi + ebx*4 + 0x15c]
push edx
lea esi, [esp + 0x18]
call fcn.1001f350
add esp, 4
test eax, eax
jne 0x10020192
push str.Connection_failed_n
push ebp
call fcn.1000a240
add esp, 8
jmp 0x100200b6
test al, 4
je 0x100200b6
mov eax, dword [edi + ebx*4 + 0x15c]
push eax
lea esi, [esp + 0x18]
call fcn.1001f350
add esp, 4
mov esi, dword [esp + 0x14]
test esi, esi
je 0x10020144
push esi
mov dword [ebp + 0x860c], esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [edi + ebx*4 + 0x50]
test eax, eax
je 0x10020144
push 0x2e
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.10001d70
push esi
push edi
call fcn.10024630
mov edx, dword [edi + 0xb0]
push eax
push edx
lea eax, [esp + 0x48]
push eax
push str.connect_to__s_port__ld_failed:__s_n
push ebp
call fcn.1000a240
mov ecx, dword [edi + ebx*4 + 0x50]
mov eax, dword [esp + 0x38]
add esp, 0x28
cmp dword [ecx + 0x1c], 0
je 0x10020119
cdq
sub eax, edx
sar eax, 1
mov edx, dword [esp + 0x68]
push ebx
push edx
mov dword [edi + 0x2c0], eax
call fcn.1001fdf0
add esp, 8
cmp eax, 7
jne 0x10020140
mov ecx, dword [esp + 0x1c]
cmp dword [edi + ecx*4 + 0x15c], 0xffffffff
jne 0x10020144
mov dword [esp + 0x18], eax
inc ebx
cmp ebx, 2
jl 0x1001ffb3
cmp dword [esp + 0x18], 0
je 0x10020261
cmp dword [edi + 0x54], 0
jne 0x1002017a
mov eax, dword [esp + 0x68]
push 1
push eax
call fcn.1001fdf0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x10020261
cmp dword [edi + 0x258], 0
je 0x10020239
mov esi, dword [edi + 0xa8]
jmp 0x1002023f
mov edx, dword [edi + ebx*4 + 0x15c]
mov esi, dword [esp + 0x68]
mov dword [edi + esi*4 + 0x154], edx
mov eax, dword [edi + ebx*4 + 0x50]
mov dword [edi + 0x4c], eax
mov dword [edi + ebx*4 + 0x15c], 0xffffffff
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + ebx*4 + 0x15c]
cmp eax, 0xffffffff
je 0x100201db
push eax
push edi
call fcn.1001f860
add esp, 8
mov dword [edi + ebx*4 + 0x15c], 0xffffffff
push esi
push edi
call fcn.1000ffa0
add esp, 8
test eax, eax
jne 0x10020265
mov ecx, dword [esp + 0x28]
mov dword [edi + esi*4 + 0x274], 1
mov dword [ecx], 1
test esi, esi
jne 0x1002020d
push 4
push ebp
call fcn.10002860
add esp, 8
mov edx, dword [edi + esi*4 + 0x154]
push edx
push edi
call fcn.1001f490
push edi
call fcn.10010030
add esp, 0xc
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.100377f0
add esp, 0x50
ret
mov esi, dword [edi + 0x98]
mov ecx, dword [esp + 0x14]
push ecx
push edi
call fcn.10024630
mov edx, dword [edi + 0xb0]
push eax
push edx
push esi
push str.Failed_to_connect_to__s_port__ld:__s
push ebp
call fcn.1000a2d0
add esp, 0x1c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x5c]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
call fcn.100377f0
add esp, 0x50
ret