Function at 0x45ac70
Capabilities:
Check if file exists
Copy file
Delete file
Enumerate files on windows
Get common file path
Manipulate boot configuration

Disassembly:
push 0xffffffffffffffff
push 0x486ab4
mov eax, dword fs:[0]
push eax
mov eax, 0x10c4
mov dword fs:[0], esp
call fcn.0040f8c0
mov eax, dword [0x4ce19c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10d0], eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_5]
mov edi, dword [sym.imp.MSVCR71.dll__wgetenv]
xor ebp, ebp
push 0x48cf08
mov dword [esp + 0x10e0], ebp
call edi
push eax
call fcn.00459d50
add esp, 8
push eax
push 0x48cf08
call edi
add esp, 4
push eax
lea eax, [esp + 0x1c]
push 0x48be08
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x10
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_5]
push str.common
lea ecx, [esp + 0x18]
mov byte [esp + 0x10e0], 1
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
lea ecx, [esp + 0x18]
push 0x48be08
push ecx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
push ebp
push 1
push 1
call fcn.00463560
add esp, 0x1c
push 1
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
call fcn.00463f40
mov bl, byte [esp + 0x10f4]
add esp, 8
test bl, bl
mov dword [esp + 0x34], ebp
je 0x45adff
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
push str.copysam_destination__s_
lea edx, [esp + 0x8b8]
push 0x208
push edx
call fcn.00403fa3
add esp, 0x10
push ebp
push ebp
push 0x48ae58
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0x20
push 0x40
push ebp
push ecx
lea eax, [esp + 0x8d4]
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
mov byte [esp + 0x1104], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push str._br_funcs.exe
lea edx, [esi + 4]
push edx
push ecx
mov byte [esp + 0x1110], 3
call fcn.00401441
add esp, 0xc
mov byte [esp + 0x1104], 1
call fcn.00460ca0
add esp, 0x28
cmp eax, ebp
mov dword [esp + 0x34], eax
je 0x45adff
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
push ebp
push 1
push eax
push ecx
call fcn.00463030
add esp, 0x10
push ebp
push 1
push 1
call fcn.00463560
push str.SystemRoot
call edi
push eax
push str._s_system32_reg.exe
lea edx, [esp + 0xad0]
push 0x208
push edx
call fcn.00403fa3
add esp, 0x20
lea eax, [esp + 0xab8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45ae65
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push str.hints.dat
push str.SOFTWAREMicrosoftWindowsCurrentVersionHints
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.0045aae0
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push str.system.dat
push str.SYSTEMCurrentControlSetControlLsa
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.0045aae0
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push str.regcerts.dat
push str.SOFTWAREMicrosoftSystemCertificatesMy
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.0045aae0
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push str.seccache.dat
push str.SECURITYCache
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.0045aae0
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push str.secpolicy.dat
push str.SECURITYPolicy
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.0045aae0
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push str.backups.dat
push str.SOFTWARELenovoRescue_and_RecoveryBackups
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.0045aae0
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push str.settings.dat
push str.SOFTWARELenovoRescue_and_RecoverySettings
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.0045aae0
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push str.mnd.dat
push str.SOFTWARELenovoMNDRescue_and_Recovery
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.0045aae0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push str.css.dat
push str.SOFTWARELenovoClient_Security_Solution
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.0045aae0
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push str.tvtcmn.dat
push str.SOFTWARELenovoTVT_Common
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.0045aae0
call fcn.00457b70
test al, al
je 0x45b301
test bl, bl
je 0x45b301
lea ecx, [esp + 0x48]
push ecx
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x45b014
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SaveImportantFiles_GetTempPath___failed._Error__d
push 0x48ae58
call fcn.004572b0
add esp, 0xc
jmp 0x45b301
push 0x48b000
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push str.CommonFiles
push str.SOFTWARELenovoRescue_and_Recovery
mov byte [esp + 0x10e4], 4
call fcn.00459d90
push eax
lea edx, [esp + 0x3c]
push str._s_bmgr_bmgr32.exe
push edx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x14
push 0x48b000
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push str.bmgrmode.dat
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x28]
push 0x48be08
push ecx
mov byte [esp + 0x10ec], 5
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x10
push 0x48b000
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x3c]
push str._export:_s
mov bl, 6
push eax
mov byte [esp + 0x10e8], bl
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0xc
push ebp
push 1
push 0x48ae58
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0x20
push 1
push ebp
push ecx
lea edx, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
mov byte [esp + 0x1104], 7
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push ecx
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
mov byte [esp + 0x1108], 8
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
mov byte [esp + 0x1104], bl
call fcn.00460ca0
add esp, 0x28
push 0x48b000
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
mov ecx, dword [esp + 0x10]
push str.bmgrmode.dat
push ecx
mov byte [esp + 0x10e4], 9
push 0x48be08
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
add esp, 0x10
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
push ecx
call ebp
test eax, eax
jne 0x45b183
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
push edx
push eax
push str.SaveImportantFiles_CopyFile__s___s__failed._Error__d
push 0x48ae58
call fcn.004572b0
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
call ebx
push 0x48b000
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push str.rr_bcdenum.dat
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x24]
push 0x48be08
push eax
mov byte [esp + 0x10ec], 0xa
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov ecx, 0x4e3118
call fcn.004577f0
mov eax, dword [esp + 0x18]
test eax, eax
mov eax, str.Sysnative
jne 0x45b1f4
mov eax, str.System32
push eax
push str.SystemRoot
call edi
add esp, 4
push eax
push str._s_s_bcdedit.exe
lea edx, [esp + 0x6b4]
push 0x208
push edx
call fcn.00403fa3
mov eax, dword [esp + 0x30]
push eax
push str._enum_all____s
lea ecx, [esp + 0x8cc]
push 0x208
push ecx
call fcn.00403fa3
push 1
lea edx, [esp + 0x8d8]
push edx
lea eax, [esp + 0x6d4]
push eax
call fcn.00458f40
add esp, 0x30
push 0x48b000
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
mov ecx, dword [esp + 0x10]
push str.rr_bcdenum.dat
push ecx
lea edx, [esp + 0x34]
push 0x48be08
push edx
mov byte [esp + 0x10ec], 0xb
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
add esp, 0x10
push 0
push eax
push ecx
call ebp
test eax, eax
jne 0x45b2b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
push str.SaveImportantFiles_CopyFile__s___s__failed._Error__d
push 0x48ae58
call fcn.004572b0
add esp, 0x14
mov ecx, dword [esp + 0x1c]
push ecx
call ebx
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x30]
mov byte [esp + 0x10dc], 1
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea edx, [esi + 8]
push edx
push str._s
lea eax, [esp + 0xed0]
push 0x208
push eax
call fcn.00403fa3
add esp, 0x10
lea ecx, [esp + 0x458]
push ecx
lea edx, [esp + 0xecc]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45b4fd
mov ebp, dword [sym.imp.MSVCR71.dll__wcsicmp]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea esp, [esp]
lea eax, [esp + 0x484]
push 0x490b58
push eax
call ebp
add esp, 8
test eax, eax
je 0x45b48e
lea ecx, [esp + 0x484]
push 0x493694
push ecx
call ebp
add esp, 8
test eax, eax
je 0x45b48e
test byte [esp + 0x458], 0x10
je 0x45b48e
mov edx, dword [esi + 0x210]
push edx
push str._sMicrosoftProtect
lea eax, [esp + 0x258]
push 0x208
push eax
call fcn.00403fa3
mov eax, dword [esp + 0x24]
add esp, 0x10
push 1
lea ecx, [esp + 0x254]
push ecx
lea edx, [esp + 0x48c]
push edx
push eax
mov ecx, esi
call fcn.0045a870
mov ecx, dword [esi + 0x210]
push ecx
push str._sLenovoClient_Security_Solution
lea edx, [esp + 0x258]
push 0x208
push edx
call fcn.00403fa3
mov edx, dword [esp + 0x24]
add esp, 0x10
push 1
lea eax, [esp + 0x254]
push eax
lea ecx, [esp + 0x48c]
push ecx
push edx
mov ecx, esi
call fcn.0045a870
mov eax, dword [esi + 0x210]
push eax
push str._sMicrosoftCryptoRSA
lea ecx, [esp + 0x258]
push 0x208
push ecx
call fcn.00403fa3
mov ecx, dword [esp + 0x24]
add esp, 0x10
push 1
lea edx, [esp + 0x254]
push edx
lea eax, [esp + 0x48c]
push eax
push ecx
mov ecx, esi
call fcn.0045a870
mov edx, dword [esi + 0x210]
push edx
push str._sMicrosoftSystemCertificates
lea eax, [esp + 0x258]
push 0x208
push eax
call fcn.00403fa3
mov eax, dword [esp + 0x24]
add esp, 0x10
push 1
lea ecx, [esp + 0x254]
push ecx
lea edx, [esp + 0x48c]
push edx
push eax
mov ecx, esi
call fcn.0045a870
lea ecx, [esp + 0x458]
push ecx
push edi
call ebx
test eax, eax
jne 0x45b350
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.00457b70
test al, al
je 0x45b4fd
mov edx, dword [esp + 0x14]
push 1
push str._sMicrosoftProtect
push edx
mov ecx, esi
call fcn.0045a9a0
mov eax, dword [esp + 0x14]
push 1
push str._sLenovoClient_Security_Solution
push eax
mov ecx, esi
call fcn.0045a9a0
mov ecx, dword [esp + 0x14]
push 1
push str._sMicrosoftCryptoRSA
push ecx
mov ecx, esi
call fcn.0045a9a0
mov edx, dword [esp + 0x14]
push 1
push str._sMicrosoftSystemCertificates
push edx
mov ecx, esi
call fcn.0045a9a0
lea eax, [esp + 0x40]
push eax
push 0x57
mov ecx, 0x4e31b8
call fcn.00465800
cmp dword [esp + 0x40], 1
jne 0x45b555
push str.pu.dat
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
push 0x48be08
lea ecx, [esp + 0x54]
push 0x208
push ecx
call fcn.00403fa3
add esp, 0x10
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
call fcn.00401e93
add esp, 4
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
push 1
call fcn.00473f40
add esp, 4
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
call fcn.00458710
mov esi, dword [esp + 0x10e8]
add esp, 4
push 0x48b000
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_CWinThread::CommonConstruct]
test eax, eax
je 0x45b737
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_CWinThread::CommonConstruct]
test eax, eax
je 0x45b737
mov ecx, dword [esi]
push str.common
push ecx
push 0x48be08
lea edx, [esp + 0xccc]
push 0x208
push edx
call fcn.00403fa3
add esp, 0x14
push 1
push 0
push 1
push 0
push ecx
lea eax, [esp + 0xcd4]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov byte [esp + 0x10f8], 0xc
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
mov byte [esp + 0x10f4], 1
call fcn.00459a10
mov al, byte [esp + 0x1100]
add esp, 0x18
test al, al
je 0x45b737
mov eax, dword [esp + 0x14]
push str.Documents_and_Settings
push eax
push 0x48be08
lea ecx, [esp + 0x54]
push 0x208
push ecx
call fcn.00403fa3
mov edx, dword [esi]
push str.Documents_and_Settings
push edx
push 0x48be08
lea eax, [esp + 0x6c8]
push 0x208
push eax
call fcn.00403fa3
add esp, 0x28
push 1
push 0
push 1
push 1
push ecx
lea edx, [esp + 0x6bc]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
lea eax, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
mov byte [esp + 0x10f8], 0xd
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
mov byte [esp + 0x10f4], 1
call fcn.00459a10
mov ecx, dword [esp + 0x2c]
push str.ProgramData
push ecx
push 0x48be08
lea edx, [esp + 0x6c]
push 0x208
push edx
call fcn.00403fa3
mov eax, dword [esi]
push str.ProgramData
push eax
push 0x48be08
lea ecx, [esp + 0x6e0]
push 0x208
push ecx
call fcn.00403fa3
add esp, 0x40
push 1
push 0
push 1
push 1
push ecx
lea edx, [esp + 0x6bc]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
lea eax, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
mov byte [esp + 0x10f8], 0xe
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
mov byte [esp + 0x10f4], 1
call fcn.00459a10
add esp, 0x18
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x10d4]
mov eax, dword [esp + 0x34]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x10d0]
call fcn.00475533
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d0
ret 0xc