Function at 0x4b16f0
Capabilities:
Connect socket

Disassembly:
sub esp, 0xdc
mov eax, dword [0x563910]
xor eax, esp
mov dword [esp + 0xd8], eax
mov edx, dword [esp + 0xe8]
xor ecx, ecx
mov eax, dword [esp + 0xe4]
push ebx
push ebp
push edi
mov edi, dword [esp + 0xec]
mov dword [esp + 0x10], ecx
mov byte [esp + 0xe], cl
lea ecx, [esp + 0x18]
push ecx
mov ebp, dword [edi]
lea ecx, [esp + 0x28]
push ecx
push eax
push edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], 0xffffffff
mov dword [edx], 0xffffffff
call fcn.004b0d40
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4b176e
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004dc2d2
add esp, 0xdc
ret
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004b1660
add esp, 0xc
test al, al
jne 0x4b17bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004a07a0
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.004afa30
push dword [esp + 0x34]
push edi
call fcn.004b03f0
add esp, 0x20
jmp 0x4b19c9
lea eax, [esp + 0xb8]
push eax
push str.__Trying__s..._n
push ebp
call fcn.004afb50
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp eax, 2
je 0x4b17df
cmp eax, 0x17
jne 0x4b17ed
cmp dword [esp + 0x2c], 1
jne 0x4b17ed
mov eax, 1
jmp 0x4b17ef
xor eax, eax
mov esi, dword [esp + 0x1c]
test eax, eax
setne al
mov byte [esp + 0x13], al
test al, al
je 0x4b1813
cmp byte [ebp + 0x386], 0
je 0x4b1813
push esi
push edi
call fcn.004b0e30
add esp, 8
push esi
call fcn.004b0ca0
add esp, 4
cmp byte [esp + 0x13], 0
je 0x4b1836
cmp byte [ebp + 0x4bc], 0
je 0x4b1836
push esi
push ebp
call fcn.004b19f0
add esp, 8
mov eax, dword [ebp + 0x1b8]
test eax, eax
je 0x4b185e
push 0
push esi
push dword [ebp + 0x1bc]
call eax
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x14], ecx
cmp ecx, 2
jne 0x4b18a7
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x28]
cmp eax, 2
je 0x4b186c
cmp eax, 0x17
jne 0x4b18bf
lea eax, [esp + 0x38]
push eax
call fcn.004d15b0
push eax
push dword [esp + 0x30]
push esi
push edi
call fcn.004b1190
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4b18bf
push esi
push edi
call fcn.004b03f0
add esp, 8
mov eax, 7
cmp ebx, 1
cmove ebx, eax
mov eax, ebx
jmp 0x4b19cb
test ecx, ecx
je 0x4b185e
push esi
push edi
call fcn.004b03f0
add esp, 8
mov eax, 0x2a
jmp 0x4b19cb
push 1
push esi
call fcn.004d1630
add esp, 8
call fcn.004a56f0
cmp dword [edi + 0x3a8], 1
mov dword [edi + 0x3a0], eax
mov dword [edi + 0x3a4], edx
jle 0x4b18fb
push 3
push dword [edi + 0x3b4]
push dword [edi + 0x3b0]
push ebp
call fcn.004a0fc0
add esp, 0x10
cmp byte [esp + 0x12], 0
jne 0x4b19c3
cmp dword [edi + 0x94], 1
jne 0x4b19c3
cmp byte [edi + 0x39a], 0
jne 0x4b1935
push dword [esp + 0x34]
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x4b1943
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x4b1947
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x28], 0x17
sete al
cmp dword [esp + 0x18], 0xffffffff
mov byte [edi + 0x387], al
jne 0x4b19b5
cmp ecx, 0xb
je 0x4b19a9
cmp ecx, 0x2732
jle 0x4b1971
cmp ecx, 0x2734
jle 0x4b19a9
push ecx
push edi
call fcn.004a07a0
push eax
lea eax, [esp + 0xc4]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push ebp
call fcn.004afb50
mov ecx, dword [esp + 0x2c]
push esi
push edi
mov dword [ebp + 0x46b4], ecx
call fcn.004b03f0
mov ebx, 7
add esp, 0x20
mov eax, ebx
jmp 0x4b19cb
mov eax, dword [esp + 0x20]
xor ebx, ebx
mov dword [eax], esi
mov eax, ebx
jmp 0x4b19cb
test ebx, ebx
jne 0x4b19bf
mov eax, dword [esp + 0x20]
mov dword [eax], esi
mov eax, ebx
jmp 0x4b19cb
mov eax, dword [esp + 0x20]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [esp + 0xe8]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004dc2d2
add esp, 0xdc
ret