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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x14004c018]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
lea rcx, [rsp + 0x48]
mov rsi, r9
mov rdi, r8
mov r12, rdx
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
mov rax, qword [rsp + 0x58]
xor r14d, r14d
cmp dword [rsp + 0x48], r14d
jne 0x14000a9ac
cmp qword [rsp + 0x50], r14
jne 0x14000a9ac
mov r15d, 1
test rax, rax
mov edx, 3
mov ebx, r15d
cmove edx, r15d
jmp 0x14000a9b8
mov r15d, 1
mov ebx, r14d
mov edx, r15d
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 + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14000a9fe
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 0x14000aa45
mov r8d, 0x1bb
mov qword [rsp + 0x310], r13
xor r9d, r9d
lea rdx, str.msdl.microsoft.com
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r13, rax
test rax, rax
jne 0x14000aa66
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
mov r13, qword [rsp + 0x310]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14000b2e0
add rsp, 0x2d0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov dword [rsp + 0x30], 0x800000
lea rdx, [0x1400476f0]
mov qword [rsp + 0x28], r14
xor r9d, r9d
mov r8, r12
mov qword [rsp + 0x20], r14
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
je 0x14000aa3b
test ebx, ebx
jne 0x14000ab4b
mov rcx, qword [rsp + 0x50]
xor ebx, ebx
test rcx, rcx
mov dword [rsp + 0x6c], 3
mov eax, ebx
mov dword [rbp - 0x7c], r15d
setne al
mov r8d, 0x208
inc eax
mov dword [rsp + 0x68], eax
test rcx, rcx
mov rax, qword [rsp + 0x70]
cmovne rax, rcx
xor edx, edx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x70], rax
call fcn.14000c5f0
lea r9, str.msdl.microsoft.com
mov qword [rsp + 0x20], r12
lea r8, str.https:___ws_ws
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.140004830
mov r12, qword [rsp + 0x40]
lea r9, [rbp - 0x68]
mov rcx, r12
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
lea r9d, [rbx + 0x18]
mov rcx, r14
lea r8, [rbp - 0x68]
lea edx, [rbx + 0x26]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea r9d, [rbx + 4]
mov dword [rbp - 0x70], r15d
lea r8, [rbp - 0x70]
mov rcx, r14
lea edx, [rbx + 0x4d]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jmp 0x14000ab60
mov r12, qword [rsp + 0x40]
xor ebx, ebx
nop dword [rax]
nop word [rax + rax]
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, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x14000ab94
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
je 0x14000ab60
jmp 0x14000aa3b
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14000aa3b
mov dword [rbp - 0x78], ebx
lea rdx, [rbp - 0x78]
mov dword [rbp - 0x74], ebx
mov rcx, r14
mov ebx, 0x1000
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14000aa3b
mov ecx, ebx
call fcn.140016914
mov ecx, dword [rbp - 0x78]
mov qword [rdi], rax
mov qword [rsi], 0
test ecx, ecx
je 0x14000ac4e
nop
mov rdx, qword [rsi]
mov eax, ecx
add rax, rdx
cmp rax, rbx
jbe 0x14000ac19
nop dword [rax]
mov rcx, qword [rdi]
add rbx, rbx
mov rdx, rbx
call fcn.140016c44
test rax, rax
je 0x14000aa3b
mov ecx, dword [rbp - 0x78]
mov qword [rdi], rax
mov rdx, qword [rsi]
lea rax, [rdx + rcx]
cmp rax, rbx
ja 0x14000abf0
add rdx, qword [rdi]
lea r9, [rbp - 0x74]
mov r8d, ecx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000aa3b
mov eax, dword [rbp - 0x74]
lea rdx, [rbp - 0x78]
add qword [rsi], rax
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov ecx, dword [rbp - 0x78]
test ecx, ecx
jne 0x14000abe0
mov rdx, qword [rsi]
mov rcx, qword [rdi]
call fcn.140016c44
test rax, rax
je 0x14000aa3b
mov rcx, r14
mov qword [rdi], rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, r15d
jmp 0x14000aa3d