Function at 0x2a879961
Capabilities:
Connect socket
Resolve dns

Disassembly:
push 0xa4
mov eax, 0x2a950587
call fcn.2a8b882c
mov edi, ecx
cmp dword [edi + 0x10004], 0xffffffff
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
movzx ebx, ax
je 0x2a879989
call fcn.2a879bfe
push 0x10
lea eax, [ebp - 0x20]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
push 2
pop eax
push ebx
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0x14], 0x10
mov word [ebp - 0x1e], ax
jb 0x2a8799b5
mov eax, dword [esi]
jmp 0x2a8799b7
mov eax, esi
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x2a879a43
cmp dword [esi + 0x14], 0x10
jb 0x2a8799ce
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x2a879a2d
xor edi, edi
lea ecx, [ebp - 0xa0]
push 0x90
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], edi
call fcn.2a885f04
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0xa0]
call fcn.2a868470
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x44]
call fcn.2a867c62
mov dword [ebp - 0x44], vtable.Exceptions::SocketException.0
lea eax, [ebp - 0x44]
push 0x2a9a76f0
push eax
call sub.MSVCR120.dll__CxxThrowException
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
xor esi, esi
push esi
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x10004], eax
cmp eax, 0xffffffff
jne 0x2a879a96
push 0x91
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x9c], esi
call fcn.2a885f04
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0xa0]
call fcn.2a868470
mov byte [ebp - 4], 3
jmp 0x2a879a0f
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x2a879b5e
mov ecx, edi
call fcn.2a879bfe
mov eax, dword [0x2a9b609c]
push dword [0x2a9b5fe8]
call dword [eax + 0xe4]
pop ecx
test ax, ax
je 0x2a879b66
mov eax, dword [0x2a9b5fe8]
call dword [eax + 0x14]
test ax, ax
je 0x2a879b66
push esi
call fcn.2a885f04
pop ecx
test al, al
je 0x2a879b66
mov esi, str.PortBlockedForOtherProfile
lea ecx, [ebp - 0x38]
push esi
call fcn.2a885f04
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0xa8]
call fcn.2a8759c5
xor edi, edi
mov byte [ebp - 4], 6
push edi
push 1
lea ecx, [ebp - 0x38]
call fcn.2a885f04
push esi
lea ecx, [ebp - 0x5c]
call fcn.2a885f04
push str.true
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0xa8]
call fcn.2a8784e9
push edi
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.2a885f04
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.2a875c16
call fcn.2a8b880e
ret 8
push 0x92
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xac], esi
call fcn.2a885f04
push ebx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 8
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x9c], esi
call fcn.2a885f04
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 9
push eax
push str._port_
lea ecx, [ebp - 0xb0]
call fcn.2a885f04
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 8
call fcn.2a84d382
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xb0]
call fcn.2a868470
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xa
call fcn.2a867c62
mov dword [ebp - 0x80], vtable.Exceptions::SocketException.0
lea eax, [ebp - 0x80]
push 0x2a9a76f0
jmp 0x2a879a27