Function at 0x14000a440
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 [0x14003a018]
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 0x14000a4ac
cmp qword [rsp + 0x58], r14
jne 0x14000a4ac
mov r13d, 1
test rax, rax
mov edx, 3
mov ebx, r13d
cmove edx, r13d
jmp 0x14000a4b8
mov r13d, 1
mov ebx, r14d
mov edx, r13d
test ebx, ebx
mov qword [rsp + 0x320], r15
mov r8, r14
mov dword [rsp + 0x20], r14d
mov r9, r14
lea rcx, str.WinHTTP_1.0
cmovne r9, qword [rsp + 0x68]
cmovne r8, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000a641
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
je 0x14000a641
mov dword [rsp + 0x30], 0x800000
lea rdx, [0x140035868]
mov qword [rsp + 0x28], r14
xor r9d, r9d
mov r8, r12
mov qword [rsp + 0x20], r14
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
test rax, rax
je 0x14000a641
test ebx, ebx
jne 0x14000a601
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.14000c2a0
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.1400045d0
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 0x14000a610
mov r12, qword [rsp + 0x40]
nop word [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 0x14000a66c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
je 0x14000a610
xor eax, eax
mov r15, qword [rsp + 0x320]
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14000b000
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 0x14000a641
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 0x14000a641
mov ecx, ebx
call fcn.14000eb48
mov r8d, dword [rbp - 0x70]
mov qword [rsi], rax
mov qword [rdi], r14
test r8d, r8d
je 0x14000a722
nop
mov rdx, qword [rdi]
mov eax, r8d
add rax, rdx
cmp rax, rbx
mov rax, qword [rsi]
jbe 0x14000a6eb
add rbx, rbx
mov rcx, rax
mov rdx, rbx
call fcn.14000ed28
test rax, rax
je 0x14000a641
mov r8d, dword [rbp - 0x70]
mov qword [rsi], rax
mov rdx, qword [rdi]
lea rcx, [rdx + r8]
cmp rcx, rbx
ja 0x14000a6c1
add rdx, rax
lea r9, [rbp - 0x6c]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000a641
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 0x14000a6b0
mov r14, qword [rdi]
mov rcx, qword [rsi]
mov rdx, r14
call fcn.14000ed28
test rax, rax
je 0x14000a641
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 0x14000a643