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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x14004c018]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
lea rcx, [rsp + 0x50]
mov rdi, r9
mov rsi, r8
mov r12, rdx
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
mov rax, qword [rsp + 0x60]
xor r14d, r14d
cmp dword [rsp + 0x50], r14d
jne 0x14000befc
cmp qword [rsp + 0x58], r14
jne 0x14000befc
mov r13d, 1
test rax, rax
mov edx, 3
mov ebx, r13d
cmove edx, r13d
jmp 0x14000bf08
mov r13d, 1
mov ebx, r14d
mov edx, r13d
test ebx, ebx
mov dword [rsp + 0x20], r14d
mov r8, r14
lea rcx, str.WinHTTP_1.0
mov r9, r14
cmovne r8, rax
cmovne r9, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14000bf51
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WinHttpOpen_failed_with_error_:_0x_x_n
call fcn.140001070
xor eax, eax
jmp 0x14000c0cb
mov r8d, 0x1bb
lea rdx, str.msdl.microsoft.com
xor r9d, r9d
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x14000bf8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WinHttpConnect_failed_with_error_:_0x_x_n
call fcn.140001070
xor eax, eax
jmp 0x14000c0cb
mov dword [rsp + 0x30], 0x800000
lea rdx, [0x140046f00]
mov qword [rsp + 0x28], r14
xor r9d, r9d
mov r8, r12
mov qword [rsp + 0x20], r14
mov rcx, rax
mov qword [rsp + 0x320], r15
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
test rax, rax
je 0x14000c0c1
test ebx, ebx
jne 0x14000c07f
mov rcx, qword [rsp + 0x58]
mov eax, r14d
test rcx, rcx
mov dword [rsp + 0x74], 3
mov r8d, 0x208
mov dword [rbp - 0x74], r13d
setne al
inc eax
mov dword [rsp + 0x70], eax
test rcx, rcx
mov rax, qword [rsp + 0x78]
cmovne rax, rcx
xor edx, edx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x78], rax
call fcn.14000ddf0
lea r9, str.msdl.microsoft.com
mov qword [rsp + 0x20], r12
lea r8, str.https:___ws_ws
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.140005850
mov r12, qword [rsp + 0x40]
lea r9, [rbp - 0x60]
mov rcx, r12
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
lea r9d, [rbx + 0x18]
mov rcx, r15
lea r8, [rbp - 0x60]
lea edx, [rbx + 0x26]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea r9d, [rbx + 4]
mov dword [rbp - 0x68], r13d
lea r8, [rbp - 0x68]
mov rcx, r15
lea edx, [rbx + 0x4d]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jmp 0x14000c090
mov r12, qword [rsp + 0x40]
nop dword [rax]
nop dword [rax + rax]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], r14d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x14000c0ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
je 0x14000c090
xor eax, eax
mov r15, qword [rsp + 0x320]
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14000cb50
add rsp, 0x2e0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14000c0c1
lea rdx, [rbp - 0x70]
mov dword [rbp - 0x70], r14d
mov rcx, r15
mov dword [rbp - 0x6c], r14d
mov ebx, 0x1000
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14000c0c1
mov ecx, ebx
call fcn.1400141a8
mov r8d, dword [rbp - 0x70]
mov qword [rsi], rax
mov qword [rdi], r14
test r8d, r8d
je 0x14000c1a2
nop
mov rdx, qword [rdi]
mov eax, r8d
add rax, rdx
cmp rax, rbx
mov rax, qword [rsi]
jbe 0x14000c16b
add rbx, rbx
mov rcx, rax
mov rdx, rbx
call fcn.1400144d8
test rax, rax
je 0x14000c0c1
mov r8d, dword [rbp - 0x70]
mov qword [rsi], rax
mov rdx, qword [rdi]
lea rcx, [rdx + r8]
cmp rcx, rbx
ja 0x14000c141
add rdx, rax
lea r9, [rbp - 0x6c]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000c0c1
mov eax, dword [rbp - 0x6c]
lea rdx, [rbp - 0x70]
add qword [rdi], rax
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov r8d, dword [rbp - 0x70]
test r8d, r8d
jne 0x14000c130
mov r14, qword [rdi]
mov rcx, qword [rsi]
mov rdx, r14
call fcn.1400144d8
test rax, rax
je 0x14000c0c1
mov rcx, r15
mov qword [rsi], rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, r13d
jmp 0x14000c0c3