Function at 0x1005c5d0
Capabilities:
Connect socket

Disassembly:
sub esp, 0xdc
mov eax, dword [0x100d95f0]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xe4]
push ebp
mov ebp, dword [esp + 0xe4]
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp + 4], edx
mov edx, dword [ebp]
mov dword [esp + 0xc], ecx
mov dword [ecx], 0xffffffff
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], edx
lea edx, [esp + 0x20]
push edx
push eax
push ebp
call fcn.1005c4d0
add esp, 0x10
test eax, eax
je 0x1005c63e
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.10088aee
add esp, 0xdc
ret
push ebx
push esi
push edi
lea ebx, [esp + 0x24]
lea edi, [esp + 0xb8]
lea esi, [esp + 0x38]
call fcn.1005c040
test eax, eax
jne 0x1005c68c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.1004d0b0
push eax
mov eax, dword [esp + 0x2c]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.10059590
mov ecx, dword [esp + 0x34]
push ecx
push ebp
call fcn.1005c470
add esp, 0x20
jmp 0x1005c82d
mov esi, dword [esp + 0x20]
lea edx, [esp + 0xb8]
push edx
push str.__Trying__s..._n
push esi
call fcn.10059500
mov ebx, dword [esp + 0x28]
add esp, 0xc
cmp dword [esi + 0x354], 0
je 0x1005c6bc
mov edx, ebx
mov edi, ebp
call fcn.1005c230
push ebx
call fcn.1005c290
add esp, 4
cmp dword [esi + 0x45c], 0
je 0x1005c6d5
mov edi, ebx
call fcn.1005b950
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x1005c6ff
mov ecx, dword [esi + 0x1b4]
push 0
push ebx
push ecx
call eax
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, 2
jne 0x1005c72c
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0x28]
push edx
push ebx
push ebp
call fcn.1005bae0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1005c744
push ebx
push ebp
call fcn.1005c470
add esp, 8
lea eax, [edi - 1]
neg eax
sbb eax, eax
and eax, edi
jmp 0x1005c82f
test eax, eax
je 0x1005c6ff
push ebx
push ebp
call fcn.1005c470
add esp, 8
mov eax, 0x2a
jmp 0x1005c82f
push 1
push ebx
call fcn.1007b6e0
add esp, 8
call fcn.100590a0
cmp dword [ebp + 0x2b8], 1
mov dword [ebp + 0x2b0], eax
mov dword [ebp + 0x2b4], edx
jle 0x1005c779
mov eax, dword [ebp + 0x2bc]
push eax
push esi
call fcn.100576f0
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x1005c827
cmp dword [ebp + 0x8c], 1
jne 0x1005c827
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x1005c7b9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp dword [esp + 0x28], 0x17
sete cl
mov dword [ebp + 0x268], ecx
cmp eax, 0xffffffff
jne 0x1005c81d
mov edi, dword [esp + 0x14]
cmp edi, 0xb
je 0x1005c81b
cmp edi, 0x2732
jle 0x1005c7e7
cmp edi, 0x2734
jle 0x1005c81b
push edi
push ebp
call fcn.1004d0b0
push eax
lea edx, [esp + 0xc4]
push edx
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.10059500
push ebx
push ebp
mov dword [esi + 0x85ec], edi
call fcn.1005c470
mov edi, 7
add esp, 0x20
mov eax, edi
jmp 0x1005c82f
xor edi, edi
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
mov eax, edi
jmp 0x1005c82f
mov ecx, dword [esp + 0x18]
mov dword [ecx], ebx
xor eax, eax
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.10088aee
add esp, 0xdc
ret