Function at 0x409d50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411ac0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x1d4
mov eax, dword [0x41a014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1d8], ecx
mov dword [ebp - 0x1bc], 0
cmp dword [ebp + 8], 0
je 0x409d9e
cmp dword [ebp + 0x10], 0
jne 0x409db3
mov dword [ebp - 0x1bc], 0x57
mov eax, dword [ebp - 0x1bc]
jmp 0x409fe0
mov byte [ebp - 0x1b5], 1
mov dword [ebp - 0x1c0], 0xffffffff
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x1b4], ax
push 0x18e
push 0
lea ecx, [ebp - 0x1b2]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea edx, [ebp - 0x1b4]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1c4], eax
cmp dword [ebp - 0x1c4], 0
je 0x409e65
push 0x4156ac
mov eax, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
call fcn.0040a210
add esp, 8
mov dword [ebp - 0x1c8], eax
push 0x40a540
mov ecx, dword [ebp - 0x1c8]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1bc], eax
mov byte [ebp - 0x1b5], 0
mov ecx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1cc], ecx
push 0x418038
lea edx, [ebp - 0x1cc]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0xffffffff
jne 0x409eda
push str.socket
mov eax, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
call fcn.0040a210
add esp, 8
mov dword [ebp - 0x1d0], eax
push 0x40a540
mov ecx, dword [ebp - 0x1d0]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1bc], eax
mov byte [ebp - 0x1b5], 0
mov ecx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1d4], ecx
push 0x418038
lea edx, [ebp - 0x1d4]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
mov eax, 2
mov word [ebp - 0x24], ax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x1d8]
movzx eax, word [edx]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
push 0x10
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c0]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x1c4], eax
cmp dword [ebp - 0x1c4], 0xffffffff
jne 0x409f82
push 0x4156d8
mov eax, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
call fcn.0040a210
add esp, 8
mov dword [ebp - 0x1dc], eax
push 0x40a540
mov ecx, dword [ebp - 0x1dc]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1bc], eax
mov byte [ebp - 0x1b5], 0
mov ecx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1e0], ecx
push 0x418038
lea edx, [ebp - 0x1e0]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x409fb7
push 0x4156ec
mov eax, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
call fcn.0040a210
add esp, 8
mov dword [ebp - 0x1e4], eax
push 0x40a540
mov ecx, dword [ebp - 0x1e4]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c0]
mov dword [ecx], edx
jmp 0x409fbf
mov dword [ebp - 4], 0xffffffff
jmp 0x409fcf
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 0x1b5]
mov byte [eax], cl
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004102f6
mov esp, ebp
pop ebp
ret 0xc