Function at 0x4ce1f0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x61c850]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx]
mov dword [ebp - 0xd0], edx
mov dword [edx], 0xffffffff
lea edx, [ebp - 0xd8]
push edx
lea edx, [ebp - 0xc4]
push edx
push eax
push ecx
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xd4], esi
call fcn.004ce120
add esp, 0x10
test eax, eax
je 0x4ce258
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea ebx, [ebp - 0xdc]
lea edi, [ebp - 0x34]
lea esi, [ebp - 0xb4]
call fcn.004cdd30
test eax, eax
jne 0x4ce2bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0xc8]
mov esi, eax
push esi
push edi
call fcn.004d0c10
push eax
mov eax, dword [ebp - 0xd4]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.004ccc20
mov ecx, dword [ebp - 0xd8]
push ecx
push edi
call fcn.004ce0c0
add esp, 0x20
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xd4]
lea edx, [ebp - 0x34]
push edx
push str.__Trying__s..._n
push esi
call fcn.004ccba0
mov ebx, dword [ebp - 0xd8]
mov edi, dword [ebp - 0xc8]
add esp, 0xc
cmp dword [esi + 0x354], 0
je 0x4ce2f1
mov edx, ebx
call fcn.004cdf50
push ebx
call fcn.004cdfb0
add esp, 4
cmp dword [esi + 0x454], 0
je 0x4ce310
mov edi, ebx
call fcn.004cd660
mov edi, dword [ebp - 0xc8]
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x4ce338
mov ecx, dword [esi + 0x1b4]
push 0
push ebx
push ecx
call eax
add esp, 0xc
cmp eax, 2
jne 0x4ce37d
mov dword [ebp - 0xcc], 1
mov edx, dword [ebp - 0xc4]
push edx
push ebx
push edi
call fcn.004cd7f0
add esp, 0xc
mov dword [ebp - 0xc8], eax
test eax, eax
je 0x4ce3a1
push ebx
push edi
call fcn.004ce0c0
mov ecx, dword [ebp - 0xc8]
add esp, 8
lea eax, [ecx - 1]
neg eax
pop edi
sbb eax, eax
pop ebx
and eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x4ce338
push ebx
push edi
call fcn.004ce0c0
add esp, 8
pop edi
pop ebx
mov eax, 0x2a
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret
push 1
push ebx
call fcn.004eace0
add esp, 8
call fcn.004cc7a0
cmp dword [edi + 0x254], 1
mov dword [edi + 0x24c], eax
mov dword [edi + 0x250], edx
jle 0x4ce3d6
mov eax, dword [edi + 0x258]
push eax
push esi
call fcn.004cc610
add esp, 8
cmp dword [ebp - 0xcc], 0
jne 0x4ce495
cmp dword [edi + 0x8c], 1
jne 0x4ce495
mov ecx, dword [ebp - 0xb8]
push ecx
lea edx, [ebp - 0xb4]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4ce476
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xcc], eax
cmp eax, 0xb
je 0x4ce46c
cmp eax, 0x2732
jle 0x4ce429
cmp eax, 0x2734
jle 0x4ce46c
push eax
push edi
call fcn.004d0c10
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.004ccba0
mov ecx, dword [ebp - 0xcc]
push ebx
push edi
mov dword [esi + 0x85dc], ecx
call fcn.004ce0c0
add esp, 0x20
pop edi
pop ebx
mov eax, 7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xc8], 0
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xc8]
pop edi
mov dword [edx], ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 4]
pop edi
mov dword [eax], ebx
pop ebx
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00493f9c
mov esp, ebp
pop ebp
ret