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

Disassembly:
sub esp, 0x58
mov eax, dword [0x111c8010]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x68]
mov esi, dword [edi]
mov dword [eax], ebx
cmp dword [edi + ecx*4 + 0x2bc], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
je 0x1105f906
pop edi
pop esi
mov dword [eax], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1113507a
add esp, 0x58
ret
call fcn.1105c900
mov dword [esp + 0x1c], edx
push 1
lea edx, [esp + 0x1c]
push edx
push esi
mov dword [esp + 0x24], eax
call fcn.1105e840
add esp, 0xc
cmp edx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
jg 0x1105f95a
jl 0x1105f935
cmp eax, ebx
jae 0x1105f95a
push str.Connection_time_out
push esi
call fcn.110520a0
add esp, 8
pop edi
pop esi
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1113507a
add esp, 0x58
ret
push ebp
jmp 0x1105f960
mov eax, dword [edi + ebx*4 + 0x198]
mov ebp, ebx
xor ebp, 1
cmp eax, 0xffffffff
mov dword [esp + 0x24], ebp
je 0x1105fb43
push 0
push 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.110527b0
add esp, 0x14
test eax, eax
jne 0x1105faa1
mov ecx, dword [edi + 0x318]
mov edx, dword [esp + 0x20]
mov ebp, dword [edi + 0x328]
mov esi, dword [edi + 0x32c]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x31c]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.1105c930
add esp, 0x10
cmp edx, esi
jl 0x1105f9e8
jg 0x1105f9cc
cmp eax, ebp
jb 0x1105f9e8
mov ecx, dword [esp + 0x10]
push esi
push ebp
push str.After__ldms_connect_time__move_on__n
push ecx
call fcn.11052010
add esp, 0x10
mov dword [esp + 0x14], 0x274c
test ebx, ebx
jne 0x1105fa2d
cmp dword [edi + 0x54], ebx
jne 0x1105fa2d
mov edx, dword [edi + 0x31c]
mov eax, dword [edi + 0x318]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call fcn.1105c930
add esp, 0x10
test edx, edx
jl 0x1105fa2d
jg 0x1105fa1e
cmp eax, 0xc8
jb 0x1105fa2d
mov eax, dword [esp + 0x70]
push 1
push eax
call fcn.1105f800
add esp, 8
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1105fb43
mov ecx, dword [esp + 0x10]
push esi
mov dword [ecx + 0x4708], esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [edi + ebx*4 + 0x50]
test eax, eax
je 0x1105fb43
push 0x2e
lea edx, [esp + 0x38]
push edx
push eax
call fcn.11054690
push esi
push edi
call fcn.11068890
mov edx, dword [esp + 0x24]
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 edx
call fcn.11052010
mov eax, dword [edi + ebx*4 + 0x50]
add esp, 0x28
cmp dword [eax + 0x1c], 0
jne 0x1105fb03
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
jmp 0x1105fb16
cmp eax, 2
je 0x1105fad0
cmp dword [edi + 0x300], 0
jne 0x1105fad0
test al, 4
je 0x1105fa31
mov ecx, dword [edi + ebx*4 + 0x198]
push ecx
lea esi, [esp + 0x18]
call fcn.1105ed50
add esp, 4
jmp 0x1105fa31
mov edx, dword [edi + ebx*4 + 0x198]
push edx
lea esi, [esp + 0x18]
call fcn.1105ed50
add esp, 4
test eax, eax
jne 0x1105fb93
mov eax, dword [esp + 0x10]
push str.Connection_failed_n
push eax
call fcn.11052010
add esp, 8
jmp 0x1105fa31
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 0
push 2
push ecx
push edx
call fcn.1113ce30
mov dword [edi + 0x328], eax
mov eax, dword [esp + 0x70]
push ebx
push eax
mov dword [edi + 0x32c], edx
call fcn.1105f800
add esp, 8
cmp eax, 7
jne 0x1105fb3f
cmp dword [edi + ebp*4 + 0x198], 0xffffffff
jne 0x1105fb43
mov dword [esp + 0x18], eax
add ebx, 1
cmp ebx, 2
jl 0x1105f960
cmp dword [esp + 0x18], 0
je 0x1105fc8c
cmp dword [edi + 0x54], 0
jne 0x1105fb7b
mov eax, dword [esp + 0x70]
push 1
push eax
call fcn.1105f800
add esp, 8
test eax, eax
mov dword [esp + 0x18], eax
je 0x1105fc8c
cmp dword [edi + 0x2a4], 0
je 0x1105fc3e
mov esi, dword [edi + 0xbc]
jmp 0x1105fc66
mov ecx, dword [edi + ebx*4 + 0x198]
mov esi, dword [esp + 0x70]
mov dword [edi + esi*4 + 0x190], ecx
mov edx, dword [edi + ebx*4 + 0x50]
mov dword [edi + 0x4c], edx
mov dword [edi + ebx*4 + 0x198], 0xffffffff
mov eax, dword [edi + ebp*4 + 0x198]
cmp eax, 0xffffffff
je 0x1105fbd8
push eax
push edi
call fcn.1105f210
add esp, 8
mov dword [edi + ebp*4 + 0x198], 0xffffffff
push esi
push edi
call fcn.11055900
add esp, 8
test eax, eax
jne 0x1105fc90
test esi, esi
mov eax, dword [esp + 0x30]
mov dword [edi + esi*4 + 0x2bc], 1
mov dword [eax], 1
jne 0x1105fc12
mov ecx, dword [esp + 0x10]
push 4
push ecx
call fcn.110627c0
add esp, 8
mov edx, dword [edi + esi*4 + 0x190]
push edx
push edi
call fcn.1105ee80
push edi
call fcn.11055a20
add esp, 0xc
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1113507a
add esp, 0x58
ret
cmp dword [edi + 0x2a0], 0
je 0x1105fc4f
mov esi, dword [edi + 0xdc]
jmp 0x1105fc66
cmp dword [edi + 0x294], 0
je 0x1105fc60
mov esi, dword [edi + 0xac]
jmp 0x1105fc66
mov esi, dword [edi + 0x98]
mov ecx, dword [esp + 0x14]
push ecx
push edi
call fcn.11068890
mov edx, dword [edi + 0xf4]
push eax
mov eax, dword [esp + 0x1c]
push edx
push esi
push str.Failed_to_connect_to__s_port__ld:__s
push eax
call fcn.110520a0
add esp, 0x1c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x64]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1113507a
add esp, 0x58
ret