Function at 0x140016150
Capabilities:
Delete file
Shutdown system

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1402c8768]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x40004
lea r8, str.Asmedia_4242_Firmware_Upgrade_Tool
lea rdx, str.Update_or_erase_successfully._Reboot_now_
mov rcx, rdi
mov rsi, rax
call fcn.14002542c
test eax, eax
je 0x140016430
mov dl, 1
mov qword [rsp + 0xa8], rbx
call fcn.140019c20
test eax, eax
jne 0x1400161c3
xor r8d, r8d
lea rcx, str.ENABLE_PowerSaving_fail.
xor edx, edx
call fcn.140032c64
call qword [0x1402c9459]
mov rcx, qword [0x1402c9449]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add rdi, 0x26f0
mov qword [0x1402c9449], 0
mov rdx, rdi
mov byte [0x1402c9448], 0
lea r8, [0x14027f748]
lea rcx, [rsp + 0x38]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001622d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x14027f758]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rsp + 0x40]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140016268
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, str.asmfilter64.cat
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rsp + 0x48]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400162a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, str.ASMXu424FW.rom
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rsp + 0x50]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400162de
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x14027eed8]
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rsp + 0x58]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140016319
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, str.devconAMD64.exe
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rsp + 0x60]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140016354
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x14027f798]
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
mov rbx, qword [rsp + 0xa8]
jg 0x140016395
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140016425
lea r8, [rsp + 0x70]
xor ecx, ecx
lea rdx, [0x140280dc0]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rax, qword [rsp + 0x70]
lea r8, [rsp + 0x78]
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor edx, edx
mov qword [rsp + 0x7c], rax
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x84], 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov r9d, 4
mov dword [rsp + 0x20], 0x40000
lea rdx, str.Please_wait_to_restart_your_computer....
xor ecx, ecx
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_InitiateShutdownA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401d66f0
mov rsi, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret