Function at 0x1400091d0
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 [section..data]
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 0x14000923c
cmp qword [rsp + 0x50], r14
jne 0x14000923c
mov r15d, 1
test rax, rax
mov edx, 3
mov ebx, r15d
cmove edx, r15d
jmp 0x140009248
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 0x14000928e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WinHttpOpen_failed_with_error_:_0x_x_n
call fcn.140001010
xor eax, eax
jmp 0x1400092d5
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 0x1400092f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WinHttpConnect_failed_with_error_:_0x_x_n
call fcn.140001010
xor eax, eax
mov r13, qword [rsp + 0x310]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140009ae0
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, [0x14001ba78]
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 0x1400092cb
test ebx, ebx
jne 0x1400093db
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 sub.VCRUNTIME140.dll_memset
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.140002310
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 0x1400093f0
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 0x140009424
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
je 0x1400093f0
jmp 0x1400092cb
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400092cb
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 0x1400092cb
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [rbp - 0x78]
mov qword [rdi], rax
mov qword [rsi], 0
test ecx, ecx
je 0x1400094df
mov rdx, qword [rsi]
mov eax, ecx
add rax, rdx
cmp rax, rbx
jbe 0x1400094aa
nop dword [rax]
mov rcx, qword [rdi]
add rbx, rbx
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x1400092cb
mov ecx, dword [rbp - 0x78]
mov qword [rdi], rax
mov rdx, qword [rsi]
lea rax, [rdx + rcx]
cmp rax, rbx
ja 0x140009480
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 0x1400092cb
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 0x140009470
mov rdx, qword [rsi]
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x1400092cb
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 0x1400092cd