Function at 0x140012650
Capabilities:
Check internet connectivity via wininet
Execute command

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rsi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov qword [rsp + 0x40], 0
mov eax, ecx
mov rbx, r8
mov rcx, rdx
mov rdx, qword [rsi]
mov qword [rsp + 0x68], rdx
xor edx, edx
test al, al
je 0x140012740
test rcx, rcx
js 0x140012710
movabs rax, 0xa3d70a3d70a3d70b
lea rdi, [rsp + 0x50]
imul rcx
movabs rax, 0x19db1ded53e8000
add rdx, rcx
sar rcx, 0x3f
sar rdx, 6
sub rdx, rcx
lea rcx, [rsp + 0x48]
add rdx, rax
mov qword [rsp + 0x48], rdx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1400127e0
lea rdx, [rsp + 0x40]
lea rcx, str.SeSystemtimePrivilege
call dbg.acquire_privilege
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140012870
mov rcx, rbx
call sym.error_propagate
mov rax, qword [rsp + 0x68]
sub rax, qword [rsi]
jne 0x140012985
add rsp, 0x70
pop rbx
pop rsi
pop rdi
ret
lea rax, str.Time__lldis_invalid
mov qword [rsp + 0x28], rcx
mov rcx, rbx
lea r9, global___func__.161
mov qword [rsp + 0x20], rax
mov r8d, 0x729
lea rdx, str..._qga_commands_win32.c
call dbg.error_setg_internal
jmp 0x1400126f9
lea rcx, str.w32tm__resync__nowait
call sym.system
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140012820
test edi, edi
je 0x140012910
cmp edi, 0x80070426
je 0x140012958
lea rax, [rsp + 0x50]
xor edx, edx
mov r9d, 0x400
mov r8d, edi
mov qword [rsp + 0x30], 0
mov ecx, 0x1300
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x1400128c0
lea rax, str.w32tm_failed_with_error__0x_lx___couldnt_retrieve_error_message
mov dword [rsp + 0x28], edi
mov rcx, rbx
lea r9, global___func__.161
mov qword [rsp + 0x20], rax
mov r8d, 0x718
lea rdx, str..._qga_commands_win32.c
call dbg.error_setg_internal
jmp 0x1400126f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, global___func__.161
mov r8d, 0x733
mov rcx, rbx
mov dword [rsp + 0x28], eax
lea rax, str.Failed_to_convert_system_time__d
lea rdx, str..._qga_commands_win32.c
mov qword [rsp + 0x20], rax
call dbg.error_setg_internal
jmp 0x1400126f9
call qword [sym.imp.msvcrt.dll__errno]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, dword [rax]
call qword [sym._stub]
mov rax, qword [rsp + 0x50]
mov rcx, rbx
lea r9, global___func__.161
mov r8d, 0x70c
lea rdx, str..._qga_commands_win32.c
mov qword [rsp + 0x28], rax
lea rax, str.system_...__failed:__s
mov qword [rsp + 0x20], rax
call dbg.error_setg_internal
jmp 0x1400126f9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetSystemTime]
test eax, eax
jne 0x1400126f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, global___func__.161
mov r8d, 0x73f
mov rcx, rbx
mov dword [rsp + 0x28], eax
lea rax, str.Failed_to_set_time_to_guest:__d
lea rdx, str..._qga_commands_win32.c
mov qword [rsp + 0x20], rax
call dbg.error_setg_internal
jmp 0x1400126f9
mov rax, qword [rsp + 0x50]
mov dword [rsp + 0x28], edi
mov rcx, rbx
lea r9, global___func__.161
mov r8d, 0x71b
lea rdx, str..._qga_commands_win32.c
mov qword [rsp + 0x30], rax
lea rax, str.w32tm_failed_with_error__0x_lx_:__s
mov qword [rsp + 0x20], rax
call dbg.error_setg_internal
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400126f9
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x1400126f9
lea rax, str.No_internet_connection_on_guest__sync_not_accurate
mov r8d, 0x721
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea r9, global___func__.161
lea rdx, str..._qga_commands_win32.c
call dbg.error_setg_internal
jmp 0x1400126f9
lea rax, str.Windows_Time_service_not_running_on_the_guest
mov r8d, 0x70f
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea r9, global___func__.161
lea rdx, str..._qga_commands_win32.c
call dbg.error_setg_internal
jmp 0x1400126f9
call sym.__stack_chk_fail
nop
nop dword [rax + rax]