Function at 0x48cb70
Capabilities:
Connect socket

Disassembly:
sub esp, 0xe4
mov eax, dword [0x5176f0]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xec]
push ebp
mov ebp, dword [esp + 0xec]
mov edx, dword [ebp]
push esi
mov dword [esp + 0x1c], ecx
mov dword [ecx], 0xffffffff
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x10], edx
lea edx, [esp + 0x2c]
push edx
push eax
xor esi, esi
push ebp
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.0048c9d0
add esp, 0x10
mov dword [esp + 8], eax
cmp eax, esi
je 0x48cbec
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.004ae123
add esp, 0xe4
ret
push ebx
push edi
lea ebx, [esp + 0x2c]
lea edi, [esp + 0xc0]
lea esi, [esp + 0x40]
call fcn.0048c660
test eax, eax
jne 0x48cc39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0048f860
push eax
mov eax, dword [esp + 0x20]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.0048af30
mov ecx, dword [esp + 0x38]
push ecx
push ebp
call fcn.0048c970
add esp, 0x20
jmp 0x48ce59
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0xc0]
push edx
push str.__Trying__s..._n
push ebx
call fcn.0048ae90
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 2
je 0x48cc65
cmp eax, 0x17
jne 0x48cc70
mov esi, 1
cmp dword [esp + 0x34], esi
je 0x48cc74
xor esi, esi
jmp 0x48cc87
cmp dword [ebx + 0x3e4], 0
je 0x48cc87
push edi
push ebp
call fcn.0048c870
add esp, 8
push edi
call fcn.0048c8d0
add esp, 4
test esi, esi
je 0x48cca4
cmp dword [ebx + 0x520], 0
je 0x48cca4
mov esi, ebx
call fcn.0048bef0
mov eax, dword [ebx + 0x1b0]
test eax, eax
je 0x48cce6
mov ecx, dword [ebx + 0x1b4]
push 0
push edi
push ecx
call eax
mov esi, eax
add esp, 0xc
cmp esi, 2
jne 0x48ccce
mov dword [esp + 0x1c], 1
jmp 0x48ccea
test esi, esi
je 0x48ccea
push edi
push ebp
call fcn.0048c970
add esp, 8
mov eax, 0x2a
jmp 0x48ce5b
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
cmp eax, 2
je 0x48ccf8
cmp eax, 0x17
jne 0x48cd3e
lea edx, [esp + 0x40]
push edx
call fcn.004a6680
push eax
mov eax, dword [esp + 0x38]
push eax
push edi
push ebp
call fcn.0048c0b0
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x48cd3a
push edi
push ebp
call fcn.0048c970
add esp, 8
cmp ebx, 1
jne 0x48cd33
lea eax, [ebx + 6]
jmp 0x48ce5b
mov eax, ebx
jmp 0x48ce5b
mov ebx, dword [esp + 0x14]
push 1
push edi
call fcn.004a69c0
add esp, 8
call fcn.0048a930
cmp dword [ebp + 0x2f0], 1
mov dword [ebp + 0x2e8], eax
mov dword [ebp + 0x2ec], edx
jle 0x48cd7a
mov ecx, dword [ebp + 0x2fc]
mov edx, dword [ebp + 0x2f8]
push ecx
push edx
push ebx
call fcn.0048a890
add esp, 0xc
cmp dword [esp + 0x1c], 0
jne 0x48ce53
cmp dword [ebp + 0x8c], 1
jne 0x48ce53
cmp dword [ebp + 0x2d0], 0
jne 0x48cdb5
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x48cdc5
jmp 0x48cdb9
mov ebx, dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x18], eax
mov esi, eax
xor edx, edx
cmp dword [esp + 0x30], 0x17
sete dl
mov dword [ebp + 0x284], edx
cmp ebx, 0xffffffff
jne 0x48ce40
cmp esi, 0xb
je 0x48ce2c
cmp esi, 0x2732
jle 0x48cdef
cmp esi, 0x2734
jle 0x48ce2c
push esi
push ebp
call fcn.0048f860
mov ebx, dword [esp + 0x1c]
push eax
lea eax, [esp + 0xcc]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push ebx
call fcn.0048ae90
push edi
push ebp
mov dword [ebx + 0x4708], esi
call fcn.0048c970
mov dword [esp + 0x30], 7
mov eax, dword [esp + 0x30]
add esp, 0x20
jmp 0x48ce5b
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov dword [ecx], edi
jmp 0x48ce5b
cmp dword [esp + 0x10], 0
jne 0x48ce4d
mov ecx, dword [esp + 0x24]
mov dword [ecx], edi
mov eax, dword [esp + 0x10]
jmp 0x48ce5b
mov edx, dword [esp + 0x24]
mov dword [edx], edi
xor eax, eax
mov ecx, dword [esp + 0xf0]
pop edi
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.004ae123
add esp, 0xe4
ret