Function at 0x4b8670
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x583f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebx]
mov dword [edx], 0xffffffff
mov dword [eax], 0
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x94]
push eax
push ecx
push ebx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x98], edi
call fcn.004b7e00
add esp, 0x10
test eax, eax
je 0x4b86e3
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fcf30
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebx + 0xcc]
push eax
lea esi, [ebx + 0x9e]
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.004b8610
add esp, 0xc
test eax, eax
jne 0x4b8743
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.004b4e10
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.004b7370
push dword [ebp - 0xa4]
push ebx
call fcn.004b78c0
add esp, 0x20
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fcf30
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x40]
mov edi, eax
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 0x98]
push str.__Trying__s..._n
push edi
call fcn.004b7410
push ebx
call fcn.004b7ca0
mov esi, dword [ebp - 0xa4]
add esp, 0x10
cmp dword [edi + 0x34c], 0
je 0x4b8785
push esi
push ebx
call fcn.004b89f0
add esp, 8
push esi
call fcn.004b7d00
add esp, 4
cmp dword [edi + 0x448], 0
je 0x4b87a1
push esi
push edi
call fcn.004b8910
add esp, 8
mov eax, dword [edi + 0x1a8]
test eax, eax
je 0x4b87c8
push 0
push esi
push dword [edi + 0x1ac]
call eax
add esp, 0xc
cmp eax, 2
jne 0x4b880b
mov dword [ebp - 0xa0], 1
push dword [ebp - 0x94]
push esi
push ebx
call fcn.004b8110
add esp, 0xc
mov dword [ebp - 0x98], eax
test eax, eax
je 0x4b882f
push esi
push ebx
call fcn.004b78c0
mov eax, dword [ebp - 0x98]
add esp, 8
xor ecx, ecx
pop esi
cmp eax, 1
pop edi
cmove eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fcf30
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x4b87c8
push esi
push ebx
call fcn.004b78c0
add esp, 8
mov eax, 0x2a
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fcf30
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.004d0b80
add esp, 8
call fcn.004b5e10
cmp dword [ebx + 0x210], 1
mov dword [ebx + 0x208], eax
mov dword [ebx + 0x20c], edx
jle 0x4b8863
push dword [ebx + 0x214]
push edi
call fcn.004b5600
add esp, 8
cmp dword [ebp - 0xa0], 0
jne 0x4b88ea
cmp dword [ebx + 0x74], 1
jne 0x4b88ea
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4b88ea
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x98], eax
cmp eax, 0xb
je 0x4b88ea
cmp eax, 0x2732
jle 0x4b88aa
cmp eax, 0x2734
jle 0x4b88ea
push eax
push ebx
call fcn.004b4e10
push eax
lea eax, [ebx + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push edi
call fcn.004b7370
mov eax, dword [ebp - 0x98]
push esi
push ebx
mov dword [edi + 0x85cc], eax
call fcn.004b78c0
add esp, 0x20
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fcf30
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 4]
mov dword [eax], esi
pop esi
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004fcf30
mov esp, ebp
pop ebp
ret