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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
movzx ebx, cl
lea rax, [0x140522270]
lea r14, [0x140522258]
test cl, cl
cmovne r14, rax
lea rax, [0x140521fe0]
lea r13, [0x140522008]
cmovne r13, rax
cmp byte [r13], 0
je 0x1400a7e9b
mov al, 1
jmp 0x1400a8129
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.NotificationSound_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r12, rax
test rax, rax
je 0x1400a7ef0
mov r8d, 0x1bb
xor r9d, r9d
lea rdx, str.vauth.top
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rdi, rax
mov qword [rsp + 0xb0], rax
test rax, rax
jne 0x1400a7ef7
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
jmp 0x1400a8129
lea rax, str._updates_sounds_error_sound.wav
lea r8, str._updates_sounds_notification_sound.wav
test bl, bl
cmovne r8, rax
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
lea rdx, [0x140369848]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
xor bl, bl
test rax, rax
je 0x1400a8114
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1400a810b
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400a810b
mov dword [rsp + 0xa8], ebp
mov rax, qword [r14]
mov qword [r14 + 8], rax
nop word [rax + rax]
mov dword [rsp + 0xa0], ebp
lea rdx, [rsp + 0xa0]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400a80f0
mov r8d, dword [rsp + 0xa0]
test r8d, r8d
je 0x1400a80f0
mov esi, r8d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov rdi, rbp
mov qword [rsp + 0x50], rbp
mov rbx, rbp
cmp r8, 0x1000
jb 0x1400a800a
lea rcx, [r8 + 0x27]
cmp rcx, r8
jbe 0x1400a8147
call fcn.1402714fc
test rax, rax
je 0x1400a8141
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1400a8015
mov rcx, rsi
call fcn.1402714fc
mov rbx, rax
mov rbp, rbx
mov qword [rsp + 0x40], rbx
lea rdi, [rbx + rsi]
mov qword [rsp + 0x50], rdi
mov r8, rsi
xor edx, edx
mov rcx, rbx
call fcn.140275d90
mov qword [rsp + 0x48], rdi
mov r8d, dword [rsp + 0xa0]
lea r9, [rsp + 0xa8]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400a80bc
mov r9d, dword [rsp + 0xa8]
add r9, rbx
mov rdx, qword [r14 + 8]
mov r8, rbx
mov rcx, r14
call fcn.1400a02e0
nop
test rbx, rbx
je 0x1400a80ab
sub rdi, rbx
cmp rdi, 0x1000
jb 0x1400a80a0
add rdi, 0x27
mov rax, qword [rbx - 8]
sub rbx, rax
add rbx, 0xfffffffffffffff8
cmp rbx, 0x1f
ja 0x1400a8141
mov rbx, rax
mov rdx, rdi
mov rcx, rbx
call fcn.1402711ec
cmp dword [rsp + 0xa0], 0
jbe 0x1400a80f0
xor ebp, ebp
jmp 0x1400a7f90
test rbx, rbx
je 0x1400a80f0
sub rdi, rbx
cmp rdi, 0x1000
jb 0x1400a80e5
add rdi, 0x27
mov rax, qword [rbx - 8]
sub rbx, rax
add rbx, 0xfffffffffffffff8
cmp rbx, 0x1f
ja 0x1400a8141
mov rbx, rax
mov rdx, rdi
mov rcx, rbx
call fcn.1402711ec
mov rax, qword [r14 + 8]
mov rdi, qword [rsp + 0xb0]
cmp qword [r14], rax
je 0x1400a8109
mov bl, 1
mov byte [r13], bl
jmp 0x1400a810b
xor bl, bl
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
movzx eax, bl
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140290dbc
int3
call fcn.1400955c0
int3