Function at 0x5a9d23
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x78ebd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0xd0], ecx
mov byte [ebp - 0xc6], cl
lea ecx, [ebp - 0xcc]
mov esi, dword [ebx]
or dword [edx], 0xffffffff
push ecx
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xdc], edx
push ecx
push eax
push ebx
mov dword [ebp - 0xd8], esi
call fcn.005a9513
add esp, 0x10
mov dword [ebp - 0xd4], eax
test eax, eax
je 0x5a9d89
xor eax, eax
jmp 0x5aa00d
push edi
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.005a8f81
add esp, 0xc
test al, al
jne 0x5a9de0
call fcn.0069c0cd
mov esi, eax
call fcn.0069c0cd
push dword [esi]
mov edi, eax
push ebx
call fcn.005aaf73
push eax
push dword [edi]
mov edi, dword [ebp - 0xd8]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.0059b8d5
mov edi, dword [ebp - 0xcc]
add esp, 0x18
jmp 0x5a9efc
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s..._n
push esi
call fcn.0059b99f
add esp, 0xc
cmp dword [ebp - 0xc4], 2
je 0x5a9e04
cmp dword [ebp - 0xc4], 0x17
jne 0x5a9e11
cmp dword [ebp - 0xc0], 1
jne 0x5a9e11
mov al, 1
jmp 0x5a9e13
xor al, al
mov edi, dword [ebp - 0xcc]
mov byte [ebp - 0xc5], al
test al, al
je 0x5a9e35
cmp byte [esi + 0x516], 0
je 0x5a9e35
push edi
push ebx
call fcn.005a95df
pop ecx
pop ecx
push edi
call fcn.005a9487
cmp byte [ebp - 0xc5], 0
pop ecx
je 0x5a9e57
cmp byte [esi + 0x650], 0
je 0x5a9e57
push edi
push esi
call fcn.005aa01d
pop ecx
pop ecx
cmp dword [esi + 0x1d8], 0
je 0x5a9e9a
push 1
push esi
call fcn.0059d9e1
push 0
push edi
push dword [esi + 0x1dc]
call dword [esi + 0x1d8]
push 0
push esi
mov dword [ebp - 0xd0], eax
call fcn.0059d9e1
mov eax, dword [ebp - 0xd0]
add esp, 0x1c
cmp eax, 2
jne 0x5a9eee
mov byte [ebp - 0xc6], 1
cmp dword [ebp - 0xc4], 2
je 0x5a9eac
cmp dword [ebp - 0xc4], 0x17
jne 0x5a9f10
lea eax, [ebp - 0xb4]
push eax
call fcn.005c59f4
push eax
push dword [ebp - 0xc4]
push edi
push ebx
call fcn.005a98c0
mov esi, eax
add esp, 0x14
mov dword [ebp - 0xd4], esi
test esi, esi
je 0x5a9f10
push edi
push ebx
call fcn.005a8d08
pop ecx
pop ecx
push 7
pop eax
cmp esi, 1
cmove esi, eax
mov eax, esi
jmp 0x5aa00c
test eax, eax
je 0x5a9e9a
mov dword [ebp - 0xd0], 0x2a
push edi
push ebx
call fcn.005a8d08
mov eax, dword [ebp - 0xd0]
pop ecx
pop ecx
jmp 0x5aa00c
push 1
push edi
call fcn.005c5a7a
lea eax, [ebp - 0xf0]
push eax
call fcn.005a133f
mov esi, eax
lea edi, [ebx + 0x2a0]
add esp, 0xc
cmp dword [ebx + 0x2b0], 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xd8]
jle 0x5a9f59
push 3
push dword [ebx + 0x2bc]
push dword [ebx + 0x2b8]
push edi
call fcn.0059d608
add esp, 0x10
cmp byte [ebp - 0xc6], 0
jne 0x5a9ffc
cmp dword [ebx + 0x94], 1
jne 0x5a9ffc
cmp byte [ebx + 0x296], 0
mov esi, dword [ebp - 0xcc]
jne 0x5a9f9b
push dword [ebp - 0xb8]
lea eax, [ebp - 0xb4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x5a9ff0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xd4], eax
cmp eax, 0xb
je 0x5a9fec
cmp eax, 0x2732
jle 0x5a9fba
cmp eax, 0x2734
jle 0x5a9fec
push eax
push ebx
call fcn.005aaf73
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push edi
call fcn.0059b99f
mov eax, dword [ebp - 0xd4]
push esi
push ebx
mov dword [edi + 0x48c4], eax
call fcn.005a8d08
add esp, 0x20
push 7
pop eax
jmp 0x5aa00c
xor eax, eax
jmp 0x5a9ff6
mov eax, dword [ebp - 0xd4]
test eax, eax
jne 0x5aa00c
jmp 0x5aa004
mov esi, dword [ebp - 0xcc]
xor eax, eax
mov ecx, dword [ebp - 0xdc]
mov dword [ecx], esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0068a492
mov esp, ebp
pop ebp
ret