Function at 0x14006bb10
Capabilities:
Connect 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
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1300]
mov eax, 0x1400
call fcn.140089c20
sub rsp, rax
mov rax, qword [0x1400ad010]
xor rax, rsp
mov qword [rbp + 0x12f0], rax
mov rbx, rcx
mov qword [rbp - 0x20], rcx
mov rcx, qword [rcx + 0x10]
movabs rdi, 0x7fffffffffffffff
mov rax, rdi
sub rax, rcx
cmp rax, 1
jb 0x14006c2c8
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14006bb7a
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 1
lea r9, [0x140097930]
lea rcx, [rbp + 8]
call fcn.14005f5e0
nop
mov ecx, 0x202
lea rdx, [rbp + 0x150]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
xor r15d, r15d
test eax, eax
je 0x14006bbdf
lea rdx, str.Failed_to_initialize_Winsock
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140068aa0
mov rcx, rax
lea rdx, [0x14006c2d0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14006c012
xor r8d, r8d
lea edx, [r8 + 1]
mov r12d, 2
mov ecx, r12d
call qword [sym.imp.WSOCK32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14006bc2c
lea rdx, str.Failed_to_create_socket
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140068aa0
mov rcx, rax
lea rdx, [0x14006c2d0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call qword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x14006c012
mov rcx, rsi
call fcn.14006aa50
test al, al
jne 0x14006bc4c
mov rcx, rsi
call qword [sym.imp.WSOCK32.dll_closesocket]
call qword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x14006c012
mov word [rbp + 0x28], r12w
mov ecx, 0x50
call qword [sym.imp.WSOCK32.dll_htons]
mov word [rbp + 0x2a], ax
lea rcx, str.1.117.225.11
call qword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [rbp + 0x2c], eax
mov r8d, reloc.WSOCK32.dll_recv
lea rdx, [rbp + 0x28]
mov rcx, rsi
call qword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x14006bcbf
lea rdx, str.Failed_to_connect_to_server
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140068aa0
mov rcx, rax
lea rdx, [0x14006c2d0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rsi
call qword [sym.imp.WSOCK32.dll_closesocket]
call qword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x14006c012
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], send
mov byte [rsp + 0x60], r15b
mov r8d, recv
lea rdx, str.1.117.225.11
lea rcx, [rsp + 0x60]
call fcn.140054ea0
nop
mov rcx, qword [rbp + 0x18]
sub rdi, rcx
cmp rdi, 4
jb 0x14006c2c2
lea rax, [rbp + 8]
cmp qword [rbp + 0x20], 0x10
cmovae rax, qword [rbp + 8]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 4
lea r9, str.GET
lea rcx, [rbp - 0x60]
call fcn.14005f5e0
nop
mov r8d, recv
lea rdx, str._HTTP_1.1_r_n
lea rcx, [rbp - 0x60]
call fcn.14005f280
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], send
mov byte [rax], 0
mov r8d, 6
lea rdx, str.Host:
lea rcx, [rsp + 0x40]
call fcn.14005f280
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], send
mov byte [rax], 0
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.140064680
nop
mov r8d, 4
lea rdx, str._r_n_r_n
lea rcx, [rbp - 0x80]
call fcn.14005f280
mov qword [rbp - 0x18], r15
mov qword [rbp - 8], r15
mov qword [rbp], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x18], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 8], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], send
mov byte [rax], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14006be3d
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006be38
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006be38
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140088cac
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], send
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x14006be8c
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006be86
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006be86
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140088cac
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14006becc
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006bec7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006bec7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140088cac
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], send
mov byte [rsp + 0x40], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x14006bf1d
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006bf18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006bf18
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140088cac
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], send
mov byte [rbp - 0x60], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14006bf6d
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006bf68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006bf68
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140088cac
lea rdx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rdx, qword [rbp - 0x18]
xor r9d, r9d
mov r8d, dword [rbp - 8]
mov rcx, rsi
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
jne 0x14006c08f
lea rdx, str.Failed_to_send_request
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140068aa0
mov rcx, rax
lea rdx, [0x14006c2d0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rsi
call qword [sym.imp.WSOCK32.dll_closesocket]
call qword [sym.imp.WSOCK32.dll_WSACleanup]
nop
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x14006c002
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006bffd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006c1ee
call fcn.140088cac
mov qword [rbp - 8], r15
mov qword [rbp], send
mov byte [rbp - 0x18], 0
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x14006c04e
mov rcx, qword [rbp + 8]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c048
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006c23c
call fcn.140088cac
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14006c088
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14006c083
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14006c2bb
mov rcx, r8
call fcn.140088cac
xor al, al
jmp 0x14006c281
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x22
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.1400686a0
nop
xor r14b, r14b
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x2f0]
mov rcx, rsi
call qword [sym.imp.WSOCK32.dll_recv]
mov edi, eax
test eax, eax
jle 0x14006c13c
test r14b, r14b
jne 0x14006c109
lea rdx, str._r_n_r_n
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x14006c11d
mov r14b, 1
mov ecx, edi
sub rcx, rax
lea r8, [rbp + rcx + 0x2ec]
lea rdx, [rax + 4]
jmp 0x14006c113
mov r8d, edi
lea rdx, [rbp + 0x2f0]
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x2f0]
mov rcx, rsi
call qword [sym.imp.WSOCK32.dll_recv]
mov edi, eax
test eax, eax
jg 0x14006c0d5
lea rcx, [rbp + 0x48]
call fcn.140054bf0
test rax, rax
jne 0x14006c165
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x40]
add rcx, rax
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rsi
call qword [sym.imp.WSOCK32.dll_closesocket]
call qword [sym.imp.WSOCK32.dll_WSACleanup]
nop
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x40], rax
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x3c], edx
lea rcx, [rbp + 0x48]
call fcn.1400544d0
lea rcx, [rbp + 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xe8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x14006c1fa
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c1f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c1f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140088cac
mov qword [rbp - 8], r15
mov qword [rbp], send
mov byte [rbp - 0x18], 0
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x14006c249
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c243
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c243
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140088cac
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14006c27f
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14006c27a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14006c2bb
mov rcx, r8
call fcn.140088cac
mov al, 1
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], send
mov byte [rbx], 0
mov rcx, qword [rbp + 0x12f0]
xor rcx, rsp
call fcn.1400888c0
lea r11, [rsp + 0x1400]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140005c50
nop
call fcn.140005c50
int3