Function at 0x140085290
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x398]
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_DeleteDriverDataBaseForUpdateINF
lea rcx, [rsp + 0x48]
call fcn.1400075a0
nop
mov edx, 0x104
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0x16e], 0x5c
je 0x14008531a
lea rdx, [0x1402e5094]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r8, [rbp + 0x170]
lea rdx, str._sINFDrvData.BIN
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x60]
lea r8, str._t_t_tDelete_DataBase_File_1___s
mov edx, 7
lea rcx, [rsp + 0x48]
call fcn.140007780
mov edx, 0x20
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor edi, edi
test eax, eax
je 0x1400853ba
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14008542f
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x14008541f
lea r9, str._t_t_tDeleteFile_DRVDATA.BIN_
jmp 0x1400853fb
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x14008541f
lea r9, str._t_t_tSetFileAttributes_DRVDATA.BIN_
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x48]
call fcn.140007780
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14008542f
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r8, [rbp + 0x170]
lea rdx, str._sINFDrvIDX.BIN
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x60]
lea r8, str._t_t_tDelete_DataBase_File_2___s
mov edx, 7
lea rcx, [rsp + 0x48]
call fcn.140007780
mov edx, 0x20
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1400854cd
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140085542
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x140085532
lea r9, str._t_t_tDeleteFile_DRVIDX.BIN_
jmp 0x14008550e
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x140085532
lea r9, str._t_t_tSetFileAttributes_DRVIDX.BIN_
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x48]
call fcn.140007780
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140085542
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r8, [0x1402dc4e0]
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.140007780
nop
lea rcx, [rsp + 0x48]
call fcn.140007730
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret