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

Disassembly:
push 0xac
mov eax, 0x2a9866b1
call fcn.2a8ca9a7
mov edi, ecx
cmp dword [edi + 0x10004], 0xffffffff
mov esi, dword [ebp + 8]
movzx ebx, word [ebp + 0xc]
je 0x2a87dc6e
call fcn.2a87df50
push 0x10
lea eax, [ebp - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 2
pop eax
push ebx
mov word [ebp - 0x44], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0x14], 0x10
mov word [ebp - 0x42], ax
mov eax, esi
jb 0x2a87dc9a
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
jne 0x2a87dcd8
cmp dword [esi + 0x14], 0x10
jb 0x2a87dcb1
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
je 0x2a87df15
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0x40]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0
push 1
push 2
pop esi
push esi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x10004], eax
cmp eax, 0xffffffff
jne 0x2a87dd18
push 0x91
lea ecx, [ebp - 0xa0]
call fcn.2a880b62
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], esi
push ecx
mov ecx, eax
call fcn.2a86a7ea
mov byte [ebp - 4], 3
jmp 0x2a87df38
push 0x10
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x2a87de9d
mov ecx, edi
call fcn.2a87df50
mov eax, dword [0x2a9ffc88]
push dword [0x2a9ffc3c]
mov esi, dword [eax + 0xe4]
mov ecx, esi
call dword [0x2a9884bc]
call esi
pop ecx
test ax, ax
je 0x2a87dea5
mov eax, dword [0x2a9ffc3c]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x2a9884bc]
call esi
test ax, ax
je 0x2a87dea5
push 0
call fcn.2a880b62
pop ecx
test al, al
je 0x2a87dea5
push 0xf
pop esi
xor ebx, ebx
mov dword [ebp - 0x14], esi
push str.PortBlockedForOtherProfile
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.2a84ef99
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0xb8]
call fcn.2a86b744
mov eax, dword [ebp - 0x14]
mov edi, 0x1000
mov byte [ebp - 4], 6
cmp eax, 0x10
jb 0x2a87de0d
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa4], ecx
mov byte [ebp - 4], 7
cmp eax, edi
jb 0x2a87de00
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.2a880b62
mov eax, dword [ebp - 0x9c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xa4]
push eax
push ecx
call fcn.2a880b62
pop ecx
pop ecx
mov byte [ebp - 4], 6
push str.PortBlockedForOtherProfile
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], esi
mov byte [ebp - 0x5c], bl
call fcn.2a84ef99
push 0x2a98abe4
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0xb8]
call fcn.2a870ab0
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 6
cmp eax, 0x10
jb 0x2a87de92
mov ecx, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 9
cmp eax, edi
jb 0x2a87de89
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.2a880b62
mov eax, dword [ebp - 0xa4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x9c]
push eax
push ecx
call fcn.2a880b62
pop ecx
pop ecx
lea ecx, [ebp - 0xb8]
call fcn.2a880b62
call fcn.2a8ca985
ret 8
push 0x92
lea ecx, [ebp - 0xa8]
call fcn.2a880b62
push ebx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xa
call fcn.2a880b62
push eax
push str._port_
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0xb
call fcn.2a880b62
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xa
call fcn.2a880b62
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xa8]
call fcn.2a86a7ea
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xc
call fcn.2a880b62
push 0x2a9f531c
lea eax, [ebp - 0x80]
jmp 0x2a87df49
push 0x90
lea ecx, [ebp - 0xa0]
call fcn.2a880b62
and dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, eax
call fcn.2a86a7ea
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x34]
call fcn.2a880b62
push 0x2a9f531c
lea eax, [ebp - 0x34]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3