Function at 0x401000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x5bc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x5b8], eax
push esi
push 0x400
lea eax, [esp + 0x1bc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40106e
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.WSAStartup_failed._n
call fcn.004011d0
mov eax, 1
pop esi
mov ecx, dword [esp + 0x5b8]
xor ecx, esp
call fcn.004014aa
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4010af
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Socket_creation_failed._n
call fcn.004011d0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x5b8]
xor ecx, esp
call fcn.004014aa
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov eax, 2
movaps xmmword [esp + 0x10], xmm0
push 0x50
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x14]
push eax
push str.172.100.15.43
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x4010fe
mov edx, str.Failed_to_convert_IP_address._n
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004011d0
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x401091
push 0x10
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401118
mov edx, str.Failed_to_connect_to_server._n
jmp 0x4010ea
push 0
push 0x3a
push str.GET___HTTP_1.1_r_nHost:_172.100.15.43_r_nConnection:_close_r_n_r_n
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x401134
mov edx, str.Failed_to_send_HTTP_request._n
jmp 0x4010ea
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.HTTP_request_sent_successfully._n
call fcn.004011d0
push 0
push 0x3ff
lea eax, [esp + 0x1c0]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x40116c
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_receive_HTTP_response._n
jmp 0x4011a0
cmp eax, 0x400
jae 0x4011c7
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Received_HTTP_response:_n
mov byte [esp + eax + 0x1b8], 0
call fcn.004011d0
lea edx, [esp + 0x1b8]
mov ecx, eax
call fcn.004011d0
mov edx, 0x403274
mov ecx, eax
call fcn.004011d0
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x5bc]
xor eax, eax
pop esi
xor ecx, esp
call fcn.004014aa
mov esp, ebp
pop ebp
ret
call fcn.004015da
int3