Function at 0x4c0430
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov edx, dword [esi]
push edi
mov dword [ebp - 0xd0], edx
push esi
lea ebx, [ebp - 0xe0]
lea edx, [ebp - 0xcc]
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd4], 0
mov dword [eax], 0xffffffff
call fcn.004c08e0
add esp, 4
test eax, eax
jne 0x4c06e1
lea ebx, [ebp - 0xe4]
lea eax, [ebp - 0x38]
lea edi, [ebp - 0xbc]
call fcn.004bfd50
test eax, eax
jne 0x4c04ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.004e1010
add esp, 4
push eax
mov eax, dword [ebp - 0xd0]
push edi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.004c1e70
mov esi, dword [ebp - 0xe0]
mov eax, dword [ebp - 0xd8]
add esp, 0x10
call fcn.004c0890
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xd0]
lea ecx, [ebp - 0x38]
push ecx
push str.__Trying__s..._n
push edi
call fcn.004c1df0
mov ebx, dword [ebp - 0xe0]
add esp, 0xc
cmp dword [edi + 0x354], 0
je 0x4c051f
mov edx, ebx
mov eax, esi
call fcn.004c02c0
mov esi, ebx
call fcn.004c0330
mov esi, edi
cmp dword [esi + 0x454], 0
je 0x4c0538
mov edi, ebx
call fcn.004bf6c0
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x4c0560
mov edx, dword [esi + 0x1b4]
push 0
push ebx
push edx
call eax
add esp, 0xc
cmp eax, 2
jne 0x4c05aa
mov dword [ebp - 0xd4], 1
mov eax, dword [ebp - 0xcc]
mov edi, dword [ebp - 0xd8]
push eax
push ebx
push edi
call fcn.004bf840
add esp, 0xc
mov dword [ebp - 0xd0], eax
test eax, eax
je 0x4c05d1
mov esi, ebx
mov eax, edi
call fcn.004c0890
mov ecx, dword [ebp - 0xd0]
lea eax, [ecx - 1]
neg eax
sbb eax, eax
and eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x4c0560
mov eax, dword [ebp - 0xd8]
mov esi, ebx
call fcn.004c0890
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
push 1
mov edx, ebx
call fcn.004e0750
add esp, 4
call fcn.004c2720
cmp dword [edi + 0x224], 1
mov dword [edi + 0x21c], eax
mov dword [edi + 0x220], edx
jle 0x4c0604
mov eax, dword [edi + 0x228]
mov ecx, esi
call fcn.004b96e0
cmp dword [ebp - 0xd4], 0
jne 0x4c06d9
cmp dword [edi + 0x7c], 1
jne 0x4c06d9
mov ecx, dword [ebp - 0xc0]
push ecx
lea edx, [ebp - 0xbc]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4c06ba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xd4], eax
cmp eax, 0xb
je 0x4c06b0
cmp eax, 0x2732
jle 0x4c0658
cmp eax, 0x2734
jle 0x4c06b0
push edi
mov edi, eax
call fcn.004e1010
add esp, 4
push eax
lea eax, [ebp - 0x38]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.004c1df0
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xd8]
mov dword [esi + 0x85dc], ecx
add esp, 0x10
mov esi, ebx
call fcn.004c0890
mov dword [ebp - 0xd0], 7
mov eax, dword [ebp - 0xd0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xd0], 0
mov edx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xd0]
mov dword [edx], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xdc]
mov dword [eax], ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004f6bad
mov esp, ebp
pop ebp
ret