Function at 0x140001f90
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
xor ebx, ebx
xor r8d, r8d
mov dword [rsp + 0x20], ebx
xor edx, edx
lea rcx, str.WinHTTP_1.0
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r14, rax
test rax, rax
jne 0x140002000
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_initialize_WinHTTP
call fcn.140005120
mov rcx, rax
lea rdx, [0x1400052f0]
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]
xor eax, eax
jmp 0x1400022af
mov r8d, 0x1bb
mov qword [rsp + 0xa8], r15
xor r9d, r9d
lea rdx, str.faacebook.fr
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [rsp + 0x30], 0x800000
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x28], rbx
mov r8, rbp
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov r15, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r9d, 4
mov dword [rsp + 0x48], 0x3300
lea r8, [rsp + 0x48]
mov rcx, rax
mov rbp, rax
lea edx, [r9 + 0x1b]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test rbp, rbp
jne 0x1400020a3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_open_connection
call fcn.140005120
mov rcx, rax
lea rdx, [0x1400052f0]
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, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x1400022a7
mov rcx, rbx
lea rdx, [0x1400156c8]
nop dword [rax]
movzx eax, word [rdi + rcx*2]
inc rcx
cmp ax, word [rdx + rcx*2 - 2]
jne 0x140002168
cmp rcx, 4
jne 0x1400020b0
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14000215c
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140002150
nop dword [rax]
mov edx, 1
mov ecx, 0x800
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
lea r9, [rsp + 0x40]
mov r8d, 0x800
mov rdx, rax
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140002139
cmp dword [rsp + 0x40], ebx
ja 0x140002100
jmp 0x14000226a
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14000226a
mov byte [rax + rdi], bl
mov rbx, rdi
jmp 0x14000226a
lea rdx, str.Failed_to_receive_response
jmp 0x14000224e
lea rdx, str.Failed_to_send_request
jmp 0x14000224e
mov rcx, rbx
lea rdx, str.POST
movzx eax, word [rdi + rcx*2]
inc rcx
cmp ax, word [rdx + rcx*2 - 2]
jne 0x140002188
cmp rcx, 5
jne 0x140002172
jmp 0x1400021aa
mov rcx, rbx
lea rdx, [0x1400156e0]
movzx eax, word [rdi + rcx*2]
inc rcx
cmp ax, word [rdx + rcx*2 - 2]
jne 0x140002247
cmp rcx, 4
jne 0x140002192
mov rax, 0xffffffffffffffff
mov rcx, rax
inc rcx
cmp byte [rsi + rcx], bl
jne 0x1400021b4
nop dword [rax]
inc rax
cmp byte [rsi + rax], bl
jne 0x1400021c0
mov qword [rsp + 0x30], rbx
lea rdx, str.Content_Type:_application_json_r_n
mov dword [rsp + 0x28], ecx
mov r9, rsi
mov rcx, rbp
mov dword [rsp + 0x20], eax
mov r8d, 0x20
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14000215c
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140002150
mov edx, 1
mov ecx, 0x800
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
lea r9, [rsp + 0x44]
mov r8d, 0x800
mov rdx, rax
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000226a
mov ecx, dword [rsp + 0x44]
test ecx, ecx
je 0x14000226a
mov byte [rcx + rdi], bl
mov rbx, rdi
jmp 0x14000226a
lea rdx, str.Invalid_method
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140005120
lea rdx, [0x1400052f0]
mov rcx, rax
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, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rdx, rbx
call fcn.140005120
mov rcx, rax
lea rdx, [0x1400052f0]
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 rax, rbx
mov r15, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140012cc0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret