Function at 0x14001f450
Capabilities:
Check if file exists
Delete file
Enumerate processes
Get common file path
Get file attributes
Get file size
Move file
Query or enumerate registry value
Terminate process

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1270]
mov eax, 0x1370
call fcn.140024c20
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x13c8], rbx
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rbp + 0x1260], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
lea r9, str.downloadAgent
lea r8, str.ServiceControl
lea rdx, str.__hs___hs__Begin.__..._
lea rcx, [0x140077e88]
call fcn.1400042c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x810]
call fcn.140026cc0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3f0]
call fcn.140026cc0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xe40]
call fcn.140026cc0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xa20]
call fcn.140026cc0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x600]
call fcn.140026cc0
lea r12, str.pub_ASUS_LiveUpdate_Services_Motherboard_DwnldAgent_AsusDownloadAgent.dat
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1050]
call fcn.140026cc0
lea r8, str.agentdebug
call fcn.140013ac0
test eax, eax
jle 0x14001f574
lea r9, str.downloadAgent
lea r8, str.ServiceControl
lea rdx, str.__hs___hs__Use_Agent_Beta_to_test.
lea rcx, [0x140077e88]
call fcn.1400042c0
lea r12, str.pub_ASUS_LiveUpdate_Services_Motherboard_DwnldAgent_AsusDownloadAgent_Beta_AsusDownloadAgent.dat
mov r8, rbx
lea rdx, str._sDownloadAgent2357.dat
lea rcx, [rbp + 0x3f0]
call fcn.140001d70
mov r9, rbx
lea r8, str._sAsusDownloadAgent.exe
mov edx, 0x104
lea rcx, [rbp + 0x810]
call fcn.1400012b0
mov r8, rbx
lea rdx, str._sDownloadAgent2357.tmp
lea rcx, [rbp + 0xe40]
call fcn.140001d70
lea rdx, [rbp + 0x810]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [rbp + 0x1a0], 0x104
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USERENV.dll_GetAllUsersProfileDirectoryW]
test eax, eax
jne 0x14001f600
lea rdx, str.error_dont_read_slog_config
lea rcx, [0x140077e88]
call fcn.140004170
jmp 0x14001f629
lea rax, [0x1400640e8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, str._sASUS_s
mov edx, 0x104
lea rcx, [rbp + 0xa20]
call fcn.1400012b0
lea rcx, [rbp + 0xa20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001f63f
test al, 0x10
jne 0x14001f64b
lea rcx, [rbp + 0xa20]
call fcn.140013600
lea r8, [rbp + 0xa20]
lea rdx, str._sdla.dat
lea rcx, [rbp + 0x600]
call fcn.140001d70
lea rcx, [rbp + 0x810]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001f688
test al, 0x10
jne 0x14001f688
lea rcx, [rbp + 0x810]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xc30]
call fcn.140026cc0
xor r13d, r13d
mov r14d, r13d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call fcn.140026cc0
lea rcx, [rbp + 0x600]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001f798
test al, 0x10
jne 0x14001f798
lea r8, [0x140066710]
call fcn.140013ac0
movsxd r14, eax
mov qword [rsp + 0x58], r13
mov dword [rbp + 0x1d8], r13d
mov dword [rbp + 0x1a0], 0x208
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9d, [r13 + 1]
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlcfgAdll
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14001f73f
cmp eax, 2
je 0x14001f798
mov r8d, eax
lea rdx, str.RegOpenKeyEx_error
lea rcx, [0x140077e88]
call fcn.1400042c0
jmp 0x14001f798
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1d8]
xor r8d, r8d
lea rdx, str.aglm
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001f78d
mov r8d, eax
lea rdx, str.RegQueryValueEx_error
lea rcx, [0x140077e88]
call fcn.1400042c0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15d, r13d
mov rdi, 0xffffffffffffffff
mov dword [rsp + 0x20], r15d
lea r9, str.downloadAgent
lea r8, str.ServiceControl
lea rdx, str.__hs___hs__retryCounter___d.
lea rcx, [0x140077e88]
call fcn.1400042c0
lea r9, str.downloadAgent
lea r8, str.ServiceControl
lea rcx, [0x140077e88]
cmp dword [rsi + 0x270], 0
jne 0x14001fdfb
lea rdx, str.__hs___hs__Start_download
call fcn.1400042c0
test r14, r14
je 0x14001f852
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x14001f852
lea r9, str.downloadAgent
lea r8, str.ServiceControl
lea rdx, str.__hs___hs__lenLocalFile___0__lstrlenW_...____0.
lea rcx, [0x140077e88]
call fcn.1400042c0
lea r8, [rbp + 0x3f0]
mov rdx, r12
lea rcx, str.liveupdate01s.asus.com
call fcn.140010160
mov qword [rsi + 0x280], rax
mov rdx, rax
jmp 0x14001f933
mov r9, r12
lea r8, str.liveupdate01s.asus.com
lea rdx, str.getDownLoadFullHandle_szService___s__szRelativeUrl___s
lea rcx, [0x140077e88]
call fcn.140004610
lea rcx, [0x140077ea0]
mov rax, qword [0x140073c88]
test rax, rax
cmovne rcx, rax
mov qword [0x140073c88], rcx
mov dword [rsp + 0x40], 0x1bb
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 1
lea r9, [rbp + 0x3f0]
mov r8, r12
lea rdx, str.liveupdate01s.asus.com
call fcn.14000db50
mov qword [rsi + 0x280], rax
lea rcx, [0x14001f3c0]
mov qword [rax + 0x8a8], rcx
mov qword [rax + 0x8b0], rsi
mov rdx, qword [rsi + 0x280]
cmp dword [rdx + 0x860], 0
jne 0x14001f927
lea rax, [0x14001f3d0]
mov qword [rdx + 0x8c8], rax
mov qword [rdx + 0x8d0], rsi
mov rdx, qword [rsi + 0x280]
cmp dword [rdx + 0x860], 0
jne 0x14001f927
mov qword [rdx + 0x888], r13
mov qword [rdx + 0x890], 5
mov rdx, qword [rsi + 0x280]
call fcn.14000dfe0
mov rdx, qword [rsi + 0x280]
lea r9, [rbp + 0xc30]
lea r8, [rsp + 0x58]
call fcn.14000d1c0
lea rdx, [rsi + 0x280]
call fcn.14000ddb0
mov qword [rsi + 0x280], r13
lea r9, str.downloadAgent
lea r8, str.ServiceControl
lea rcx, [0x140077e88]
cmp dword [rsi + 0x270], 0
jne 0x14001fdf2
lea rdx, str.__hs___hs__finish_network_connect
call fcn.1400042c0
test r14, r14
je 0x14001fab2
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x14001fab2
lea r9, str.downloadAgent
lea r8, str.ServiceControl
lea rdx, str.__hs___hs__lenLocalFile___0__lstrlenW_...____0.
lea rcx, [0x140077e88]
call fcn.1400042c0
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
lea rcx, [rbp + 0x600]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001fa14
lea rdx, [rbp + 0x1d8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, str.downloadAgent
lea r8, str.ServiceControl
lea rdx, str.__hs___hs__not_match_clear
lea rcx, [0x140077e88]
call fcn.1400042c0
lea r8, str.aglm
call fcn.1400139f0
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x14001fa7f
lea r8, [0x140066710]
call fcn.1400139f0
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r8, eax
add r8, r8
xor edx, edx
lea rcx, [rbp + 0x1e0]
call fcn.140026cc0
mov r14, r13
lea rcx, [rbp + 0x600]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001fc12
test al, 0x10
jne 0x14001fc12
lea rcx, [rbp + 0x600]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14001fc12
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001fbf1
test al, 0x10
jne 0x14001fbf1
lea r9, str.downloadAgent
lea r8, str.ServiceControl
lea rdx, str.__hs___hs__Encoded_file_exists.
lea rcx, [0x140077e88]
call fcn.1400042c0
xor eax, eax
mov qword [rbp + 0x1a8], rax
mov qword [rbp + 0x1d0], rax
mov byte [rbp + 0x1a8], al
mov qword [rbp + 0x1c0], r13
mov qword [rbp + 0x1b8], r13
mov qword [rbp + 0x1b0], r13
mov qword [rbp + 0x1c8], r13
mov dword [rbp + 0x1d0], 1
lea r9, [rbp + 0x810]
lea rdx, [rbp + 0x3f0]
lea rcx, [rbp + 0x1a8]
call fcn.140011950
test eax, eax
jne 0x14001fb6c
lea r9, str.downloadAgent
lea r8, str.ServiceControl
lea rdx, str.__hs___hs__decrypt_File_fail____
lea rcx, [0x140077e88]
call fcn.1400042c0
lea rcx, [rbp + 0x810]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001fb86
test al, 0x10
je 0x14001fc21
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r9, str.downloadAgent
lea r8, str.ServiceControl
lea rdx, str.__hs___hs__target_file_unexit
lea rcx, [0x140077e88]
call fcn.1400042c0
inc r15d
mov rcx, qword [rbp + 0x1b8]
test rcx, rcx
je 0x14001fbc9
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp + 0x1b0]
test rcx, rcx
je 0x14001fbdd
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rbp + 0x1c8]
test rcx, rcx
je 0x14001fc12
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x14001fc12
lea r9, str.downloadAgent
lea r8, str.ServiceControl
lea rdx, str.__hs___hs__download_file_unexit
lea rcx, [0x140077e88]
call fcn.1400042c0
cmp r15d, 3
jge 0x14001fe07
jmp 0x14001f7a2
lea r9, str.downloadAgent
lea r8, str.ServiceControl
lea rdx, str.__hs___hs__success_make_file
lea rcx, [0x140077e88]
call fcn.1400042c0
mov edx, 5
mov rcx, rsi
call fcn.14001f180
test r14, r14
je 0x14001fd4b
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x14001fd4b
lea r9, str.downloadAgent
lea r8, str.ServiceControl
lea rdx, str.__hs___hs__lenLocal___0__lstrlenW_...____0.
lea rcx, [0x140077e88]
call fcn.1400042c0
lea rdx, [rbp + 0x600]
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14001fd58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.downloadAgent
lea r8, str.ServiceControl
lea rdx, str.__hs___hs__move_temp_file_fail___lu_
lea rcx, [0x140077e88]
call fcn.1400042c0
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, str.aglm
call fcn.1400139f0
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x14001fd2c
lea r8, [0x140066710]
call fcn.1400139f0
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r8, eax
add r8, r8
xor edx, edx
lea rcx, [rbp + 0x1e0]
call fcn.140026cc0
lea rcx, [rbp + 0x600]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001fd58
test al, 0x10
jne 0x14001fd58
lea rcx, [rbp + 0x600]
jmp 0x14001fd52
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rbp + 0x1a0], 0x646e65
cmp qword [rsi + 0x258], 0
je 0x14001fdb8
mov rax, qword [rsi + 0x290]
test rax, rax
je 0x14001fdb8
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001fdb8
lea rax, [rbp + 0x1a0]
nop dword [rax + rax]
lea rdi, [rdi + 1]
cmp byte [rax + rdi], 0
jne 0x14001fd90
lea r8, [rdi + 1]
lea rdx, [rbp + 0x1a0]
call fcn.140026770
mov rcx, qword [rsi + 0x258]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov rcx, qword [rbp + 0x1b8]
test rcx, rcx
je 0x14001fdca
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp + 0x1b0]
test rcx, rcx
je 0x14001fdde
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rbp + 0x1c8]
test rcx, rcx
je 0x14001fe07
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x14001fe07
lea rdx, str.__hs___hs__Break_loop.
jmp 0x14001fe02
lea rdx, str.__hs___hs__Stop_and_break.
call fcn.1400042c0
mov esi, r13d
cmp r15d, 3
setl sil
jl 0x14001fefc
mov dword [rsp + 0x20], r15d
lea r9, str.downloadAgent
lea r8, str.ServiceControl
lea rdx, str.__hs___hs__Retry_failed___d_._Force_to_kill_UI_process.
lea rcx, [0x140077e88]
call fcn.1400042c0
xor edx, edx
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14001fef3
lea r14, [0x140066e78]
nop dword [rax]
nop word [rax + rax]
lea rdx, [rbp - 0x74]
mov rax, r13
nop word [rax + rax]
movzx ecx, word [rdx + rax*2]
cmp cx, word [r14 + rax*2]
jne 0x14001fee1
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r14 + rax*2 + 2]
jne 0x14001fee1
add rax, 2
cmp rax, 0x18
jne 0x14001fe90
mov r8d, dword [rsp + 0x68]
xor edx, edx
lea ecx, [rax - 0x17]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14001fee1
mov edx, 9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14001fe80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x20], esi
lea r9, str.downloadAgent
lea r8, str.ServiceControl
lea rdx, str.__hs___hs__End.___d_
lea rcx, [0x140077e88]
call fcn.1400042c0
mov eax, esi
mov rcx, qword [rbp + 0x1260]
xor rcx, rsp
call fcn.140023e40
mov rbx, qword [rsp + 0x13c8]
add rsp, 0x1370
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret