Function at 0x2a87c548
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push 0xa4
mov eax, 0x2a98505d
call fcn.2a8c96b3
mov edi, ecx
cmp dword [edi + 0x10004], 0xffffffff
mov esi, dword [ebp + 8]
movzx ebx, word [ebp + 0xc]
je 0x2a87c56e
call fcn.2a87c7a2
push 0x10
lea eax, [ebp - 0x20]
push 0
push eax
call sub.VCRUNTIME140.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
mov eax, esi
jb 0x2a87c59a
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x2a87c5d8
cmp dword [esi + 0x14], 0x10
jb 0x2a87c5b1
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
je 0x2a87c767
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x10004], eax
cmp eax, 0xffffffff
jne 0x2a87c61a
push 0x91
lea ecx, [ebp - 0xa0]
call fcn.2a886a5c
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.2a86a7dd
mov byte [ebp - 4], 4
jmp 0x2a87c78a
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x2a87c6ef
mov ecx, edi
call fcn.2a87c7a2
mov eax, dword [0x2a9fede8]
push dword [0x2a9fed74]
mov esi, dword [eax + 0xe4]
mov ecx, esi
call dword [0x2a9874b0]
call esi
pop ecx
test ax, ax
je 0x2a87c6f7
mov eax, dword [0x2a9fed74]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x2a9874b0]
call esi
test ax, ax
je 0x2a87c6f7
push 0
call fcn.2a886a5c
pop ecx
test al, al
je 0x2a87c6f7
mov esi, str.PortBlockedForOtherProfile
lea ecx, [ebp - 0x50]
push esi
call fcn.2a84ead3
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 6
push eax
lea ecx, [ebp - 0xa8]
call fcn.2a877cea
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 9
call fcn.2a886a5c
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.2a84ead3
push str.true
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0xa8]
call fcn.2a87b0b0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xb
call fcn.2a886a5c
lea ecx, [ebp - 0xa8]
call fcn.2a886a5c
call fcn.2a8c9691
ret 8
push 0x92
lea ecx, [ebp - 0xb0]
call fcn.2a886a5c
push ebx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xc
call fcn.2a886a5c
push eax
push str._port_
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0xd
call fcn.2a886a5c
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xc
call fcn.2a886a5c
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xb0]
call fcn.2a86a7dd
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xe
call fcn.2a886a5c
push 0x2a9f4a64
lea eax, [ebp - 0x80]
jmp 0x2a87c79b
push 0x90
lea ecx, [ebp - 0xa0]
call fcn.2a886a5c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call fcn.2a86a7dd
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x5c]
call fcn.2a886a5c
push 0x2a9f4a64
lea eax, [ebp - 0x5c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3