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

Disassembly:
jmp 0x140012840
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x238
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x258]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x1e0], rax
lea rcx, [0x1400260f4]
call fcn.14001150f
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x48], 0
mov dword [rbp + 0x64], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xc8], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.WinHTTP_Example___1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
je 0x140012927
xor r9d, r9d
movzx r8d, word [rbp + 0x218]
mov rdx, qword [rbp + 0x210]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x140012970
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x220]
lea rdx, [0x14001d3a0]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
je 0x1400129ab
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
je 0x1400129c3
xor edx, edx
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
je 0x140012b05
mov dword [rbp + 4], 0
lea rdx, [rbp + 4]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140012b05
cmp dword [rbp + 4], 0
jbe 0x140012b05
mov eax, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
lea eax, [rax + rcx + 1]
mov eax, eax
mov ecx, eax
call fcn.14001121c
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x1a8]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x140012a4b
lea rdx, str.Memory_allocation_error
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001109b
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 0x140012b05
mov eax, dword [rbp + 4]
inc eax
mov eax, eax
mov ecx, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x48]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
xor edx, edx
call fcn.1400113f7
mov eax, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 4]
mov rdx, rax
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140012b00
lea rdx, str.Error_reading_data
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001109b
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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, qword [rbp + 0x48]
mov qword [rbp + 0x1c8], rax
mov rcx, qword [rbp + 0x1c8]
call fcn.1400115b9
cmp qword [rbp + 0x1c8], 0
jne 0x140012ae3
mov qword [rbp + 0x1d8], 0
jmp 0x140012af6
mov qword [rbp + 0x48], 0x8123
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x1d8], rax
mov qword [rbp + 0x48], 0
jmp 0x140012b05
jmp 0x1400129d4
cmp qword [rbp + 0xc8], 0
je 0x140012b1c
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rbp + 0xa8], 0
je 0x140012b33
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rbp + 0x88], 0
je 0x140012b4a
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, qword [rbp + 0x48]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001cef0]
call fcn.140011451
mov rax, rdi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rbp
call fcn.14001126c
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret