Function at 0x140005f40
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x2100]
mov eax, 0x2200
call fcn.1403f59c0
sub rsp, rax
mov rax, qword [0x14143b040]
xor rax, rsp
mov qword [rbp + 0x20f0], rax
mov r13, r9
mov r15, rdx
mov ecx, 0x20000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x48], rax
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], 0xffffffff
mov dword [rsp + 0x5c], r14d
mov qword [rsp + 0x68], r14
call fcn.1401709f0
nop
vpxor xmm0, xmm0, xmm0
vmovups ymmword [rbp - 0x80], ymm0
vmovups xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x78], 1
mov r8d, 0x1fa3
lea rdx, [0x1413a1938]
lea rcx, [rbp + 0xd0]
vzeroupper
call fcn.140005590
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0xd0]
lea rcx, [0x1413a1f20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140006307
mov edi, r14d
mov rcx, qword [rsp + 0x40]
mov rbx, rcx
test rcx, rcx
je 0x140006068
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp eax, 0xffffffff
je 0x14000605a
movsxd rsi, eax
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140006063
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140006020
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test rbx, rbx
je 0x140006307
mov dword [rsp + 0x58], edi
lea rcx, [0x1413a1988]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x1413a1978]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x1400060b8
lea rdx, [0x1413a1998]
lea rbx, [0x1414476e0]
mov rcx, rbx
call fcn.140005590
jmp 0x1400060fb
mov dword [rbp - 0x50], 0x114
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x4c]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x50]
call rbx
mov eax, dword [rbp - 0x44]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp - 0x48]
mov r8d, dword [rbp - 0x4c]
lea rdx, [0x1413a19a0]
lea rbx, [0x1414476e0]
mov rcx, rbx
call fcn.140005590
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], recv
mov qword [rsp + 0x20], r14
lea r9, [0x1413a1f20]
mov r8, r15
lea rdx, [0x1413a19c0]
lea rcx, [rbp + 0x10f0]
call fcn.140005590
mov ebx, eax
movsxd rax, dword [rsp + 0x58]
lea rdi, [rbp + 0x10f0]
test ebx, ebx
jle 0x140006172
mov rsi, rax
nop word [rax + rax]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x140006172
sub ebx, eax
cdqe
add rdi, rax
test ebx, ebx
jg 0x140006150
mov ebx, 0x1000
movsxd rsi, dword [rsp + 0x58]
lea rdi, [rbp + 0xf0]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1400061b0
cmp eax, 0xffffffff
je 0x140006307
sub ebx, eax
add r14d, eax
cdqe
add rdi, rax
test ebx, ebx
jg 0x140006183
cmp r14d, 0xd
jl 0x140006307
movabs rax, 0x312e312f50545448
cmp qword [rbp + 0xf0], rax
jne 0x140006307
cmp dword [rbp + 0xf8], 0x30303220
jne 0x140006307
lea rbx, [rbp + 0xfd]
movabs rcx, 0x2d746e65746e6f43
movabs rdx, 0x203a6874676e654c
movzx eax, word [0x1405173e4]
cmp word [rbx], ax
je 0x140006210
inc rbx
cmp word [rbx], ax
jne 0x140006208
add rbx, 2
cmp qword [rbx], rcx
jne 0x140006203
cmp qword [rbx + 8], rdx
jne 0x140006203
add rbx, 0x10
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
movsxd r15, eax
movzx ecx, word [0x1405173e4]
cmp word [rbx], cx
je 0x140006248
nop dword [rax + rax]
inc rbx
cmp word [rbx], cx
jne 0x140006240
lea rdi, [rbx + 4]
cmp word [rbx + 2], cx
je 0x140006257
mov rbx, rdi
jmp 0x140006236
lea rcx, [rbp + 0xf0]
mov rax, rdi
sub rax, rcx
movsxd rsi, r14d
sub rsi, rax
mov rbx, r15
mov rcx, r15
call fcn.1403f4de8
mov r14, rax
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
sub rbx, rsi
test rbx, rbx
jle 0x1400062dc
lea rdi, [r14 + rsi]
test ebx, ebx
jle 0x1400062dc
nop word [rax + rax]
mov r9d, send
mov r8d, ebx
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140170e20
cmp eax, 0xffffffff
je 0x1400062c8
test eax, eax
je 0x1400062dc
sub ebx, eax
cdqe
add rdi, rax
jmp 0x1400062d8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8bb
cmp eax, 1
jbe 0x1400062dc
test ebx, ebx
jg 0x1400062a0
mov qword [rsp + 0x78], r14
mov dword [rsp + 0x40], r15d
mov rcx, qword [r13 + 0x38]
test rcx, rcx
jne 0x1400062f6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x40]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rsp + 0x58]
cmp eax, 0xffffffff
je 0x14000632e
movsxd rcx, dword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_closesocket]
mov dword [rsp + 0x58], 0xffffffff
cmp qword [rsp + 0x68], 0
je 0x14000634d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
movsxd rcx, dword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0x20f0]
xor rcx, rsp
call fcn.1403f4b10
lea r11, [rsp + 0x2200]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret