Function at 0x4b2be7
Capabilities:
Connect socket

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xe0
mov eax, dword [0x50331c]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
and dword [ebp - 0x64], 0
push esi
mov esi, dword [eax]
or dword [ecx], 0xffffffff
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x50]
push ecx
push edx
push eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x60], esi
call fcn.004b2b30
add esp, 0x10
test eax, eax
mov dword [ebp - 0x5c], eax
je 0x4b2c32
xor eax, eax
jmp 0x4b2e2e
push ebx
push edi
lea edi, [ebp - 0x6c]
lea ebx, [ebp + 0x40]
lea esi, [ebp - 0x40]
call fcn.004b277d
test eax, eax
jne 0x4b2c7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x58]
call fcn.004b52fe
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x60]
call fcn.004b0889
add esp, 0x18
xor esi, esi
push dword [ebp - 0x54]
push dword [ebp - 0x58]
call fcn.004b2adf
pop ecx
pop ecx
mov eax, esi
jmp 0x4b2e2c
mov esi, dword [ebp - 0x60]
lea eax, [ebp + 0x40]
push eax
push str.__Trying__s..._n
push esi
call fcn.004b081f
add esp, 0xc
cmp dword [ebp - 0x50], 2
jne 0x4b2ca6
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x4c], ebx
je 0x4b2d33
xor ebx, ebx
mov edi, dword [ebp - 0x58]
push dword [ebp - 0x54]
call fcn.004b296f
test ebx, ebx
pop ecx
je 0x4b2ccc
cmp dword [esi + 0x46c], 0
je 0x4b2ccc
mov ebx, dword [ebp - 0x54]
call fcn.004b2226
mov edi, dword [ebp - 0x58]
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x4b2cf2
push 0
push dword [ebp - 0x54]
push dword [esi + 0x1b4]
call eax
add esp, 0xc
cmp eax, 2
jne 0x4b2d51
mov dword [ebp - 0x64], 1
cmp dword [ebp - 0x50], 2
jne 0x4b2d64
lea eax, [ebp - 0x40]
push eax
call fcn.004a6273
push eax
push dword [ebp - 0x50]
mov ebx, edi
push dword [ebp - 0x54]
call fcn.004b2382
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [ebp - 0x5c], ebx
je 0x4b2d64
push dword [ebp - 0x54]
push edi
call fcn.004b2adf
cmp ebx, 1
pop ecx
pop ecx
jne 0x4b2d5d
push 7
pop eax
jmp 0x4b2e2c
cmp dword [esi + 0x364], 0
je 0x4b2ca8
push dword [ebp - 0x54]
mov edi, dword [ebp - 0x58]
call fcn.004b291a
pop ecx
jmp 0x4b2cab
test eax, eax
je 0x4b2cf2
push 0x2a
pop esi
jmp 0x4b2c6b
mov eax, ebx
jmp 0x4b2e2c
mov ebx, dword [ebp - 0x54]
push 1
push ebx
call fcn.004be2d4
pop ecx
pop ecx
call fcn.004b04c1
cmp dword [edi + 0x240], 1
mov dword [edi + 0x238], eax
mov dword [edi + 0x23c], edx
jle 0x4b2d99
push dword [edi + 0x244]
push esi
call fcn.004af075
pop ecx
pop ecx
cmp dword [ebp - 0x64], 0
jne 0x4b2e25
cmp dword [edi + 0x8c], 1
jne 0x4b2e25
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4b2e12
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0xb
je 0x4b2e0e
cmp ebx, 0x2732
jle 0x4b2ddc
cmp ebx, 0x2734
jle 0x4b2e0e
push ebx
push edi
call fcn.004b52fe
push eax
lea eax, [ebp + 0x40]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.004b081f
push dword [ebp - 0x54]
mov dword [esi + 0x860c], ebx
push edi
call fcn.004b2adf
add esp, 0x20
mov dword [ebp - 0x5c], 7
jmp 0x4b2e20
and dword [ebp - 0x5c], 0
cmp dword [ebp - 0x5c], 0
jne 0x4b2e20
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
mov eax, dword [ebp - 0x5c]
jmp 0x4b2e2c
mov eax, dword [ebp - 0x68]
mov dword [eax], ebx
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop esi
call fcn.00491d9b
add ebp, 0x74
leave
ret