Function at 0x4052b2
Capabilities:
Check if file exists
Copy file
Create directory
Get common file path
Get disk size

Disassembly:
push 0x36c
mov eax, 0x41cc28
call fcn.00417909
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2bc], ebx
mov byte [ebp - 0x2d8], bl
mov dword [ebp - 0x2dc], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [ebp - 0x29c]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x206
lea eax, [ebp - 0x22a]
push ebx
mov byte [ebp - 4], 1
push eax
mov word [ebp - 0x22c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x280]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x423974
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 4
xor eax, eax
cmp dword [esi + 8], ebx
lea edi, [ebp - 0x2d0]
mov dword [ebp - 0x2d4], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x2e8]
mov dword [ebp - 0x2ec], ebx
stosd dword es:[edi], eax
je 0x405a47
call fcn.0040a088
cmp eax, 1
mov dword [ebp - 0x2e0], eax
jne 0x40539d
lea eax, [ebp - 0x2d8]
push eax
call fcn.0040a1d8
cmp eax, ebx
pop ecx
mov dword [ebp - 0x2dc], eax
je 0x405a47
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
mov dword [ebp - 0x2bc], eax
je 0x405a2b
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x29c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea edi, [ebp - 0x280]
call fcn.00405bc9
cmp eax, ebx
mov dword [ebp - 0x2bc], eax
je 0x405a2b
cmp dword [ebp - 0x268], 8
mov eax, dword [ebp - 0x27c]
jae 0x4053fe
lea eax, [ebp - 0x27c]
push ebx
lea ecx, [ebp - 0x2ec]
push ecx
lea ecx, [ebp - 0x2d4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edi, eax
cmp edi, ebx
je 0x4059fb
cmp dword [ebp - 0x2d0], ebx
ja 0x405436
cmp dword [ebp - 0x2d4], 0x3200000
jb 0x4059fb
cmp dword [ebp - 0x268], 8
mov eax, dword [ebp - 0x27c]
jae 0x40544b
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
jne 0x40547b
cmp dword [ebp - 0x268], 8
mov eax, dword [ebp - 0x27c]
jae 0x40546b
lea eax, [ebp - 0x27c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebx
je 0x405a25
mov eax, dword [esi + 4]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 0x2c8], esi
mov dword [ebp - 0x2c4], ecx
jne 0x4054b6
call fcn.0041ab80
test al, al
je 0x405a25
push str._BackupSystemFile__m_BkFileList.size____0__no_files_need_backup
push 0xb
push str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMOperateFile.cpp
call fcn.0041af50
add esp, 0xc
jmp 0x405a25
mov eax, dword [esi + 0x14]
inc eax
mov dword [ebp - 0x2bc], eax
xor eax, eax
mov word [ebp - 0x20], bx
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
push 0xa
stosd dword es:[edi], eax
push 5
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x2bc]
call dword [sym.imp.MSVCR80.dll__itow_s]
add esp, 0x10
cmp eax, ebx
jne 0x4059ca
lea edi, [esi + 0xc]
lea esi, [ebp - 0x2c8]
call fcn.00405eb4
mov ebx, eax
call fcn.00405d09
cmp eax, 1
je 0x4059b7
mov ebx, dword [sym.imp.MSVCP80.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea eax, [ebp - 0x2b8]
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x324]
push eax
call ebx
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x308]
mov byte [ebp - 4], 5
mov edi, dword [sym.imp.MSVCP80.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
push eax
call edi
add esp, 0xc
push eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0x308]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x324]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
call fcn.0041ab80
test al, al
je 0x4055cc
cmp dword [ebp - 0x230], 8
mov eax, dword [ebp - 0x244]
jae 0x405592
lea eax, [ebp - 0x244]
lea esi, [ebp - 0x2c8]
mov dword [ebp - 0x2c0], eax
call fcn.00405eb4
cmp dword [eax + 0x18], 8
jb 0x4055ae
mov eax, dword [eax + 4]
jmp 0x4055b1
add eax, 4
push dword [ebp - 0x2c0]
push eax
push str._BackupSystemFile__CopyFile_Exist_s__Dest_s
push 0xb
push str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMOperateFile.cpp
call fcn.0041ad40
add esp, 0x14
cmp dword [ebp - 0x230], 8
mov eax, dword [ebp - 0x244]
jae 0x4055e1
lea eax, [ebp - 0x244]
lea esi, [ebp - 0x2c8]
mov dword [ebp - 0x2c0], eax
call fcn.00405eb4
cmp dword [eax + 0x18], 8
jb 0x4055fd
mov eax, dword [eax + 4]
jmp 0x405600
add eax, 4
push 1
push dword [ebp - 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x405670
call fcn.0041ab80
test al, al
je 0x4059b7
cmp dword [ebp - 0x230], 8
mov edi, dword [ebp - 0x244]
jae 0x405635
lea edi, [ebp - 0x244]
lea esi, [ebp - 0x2c8]
call fcn.00405eb4
cmp dword [eax + 0x18], 8
jb 0x40564b
mov eax, dword [eax + 4]
jmp 0x40564e
add eax, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._BackupSystemFile__CopyFile_Failed_ErrorCode_d__ExistingFile_s__DestFile_s
push 0xb
push str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMOperateFile.cpp
call fcn.0041ad40
add esp, 0x18
jmp 0x4059b7
mov eax, dword [ebp - 0x2cc]
add eax, 0x18
lea esi, [ebp - 0x2c8]
mov dword [ebp - 0x2c0], eax
call fcn.00405eb4
mov ecx, dword [ebp - 0x2c0]
push eax
lea edx, [ebp - 0x248]
call fcn.004040d5
test eax, eax
jne 0x4056bd
call fcn.0041ab80
test al, al
je 0x4056bd
push str._BackupSystemFile__WriteToDosNotifyFile_failed
push 0xb
push str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMOperateFile.cpp
call fcn.0041af50
add esp, 0xc
mov eax, dword [ebp - 0x2cc]
cmp dword [eax + 0x74], 6
jge 0x4059b1
lea esi, [ebp - 0x2c8]
call fcn.00405eb4
cmp dword [eax + 0x18], 8
jb 0x4056e3
mov eax, dword [eax + 4]
jmp 0x4056e6
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
push str.dllcache_
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x308]
push eax
call edi
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x324]
push eax
mov byte [ebp - 4], 7
call edi
add esp, 0xc
push eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0x324]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x308]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str.dllcache
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x378]
push eax
call edi
add esp, 0xc
lea ecx, [ebp - 0x2b8]
push ecx
push eax
lea eax, [ebp - 0x308]
push eax
mov byte [ebp - 4], 9
call ebx
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x324]
push eax
mov byte [ebp - 4], 0xa
call edi
add esp, 0xc
push eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xb
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0x324]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x308]
mov byte [ebp - 4], 9
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x378]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x260]
push 8
pop ebx
cmp dword [ebp - 0x24c], ebx
jae 0x4057e7
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40582a
call fcn.0041ab80
test al, al
je 0x4059b1
cmp dword [ebp - 0x24c], ebx
mov eax, dword [ebp - 0x260]
jae 0x405813
lea eax, [ebp - 0x260]
push eax
push str._BackupSystemFile__System_File_not_exist__s
push 0xb
push str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMOperateFile.cpp
call fcn.0041ad40
jmp 0x4059ae
call fcn.0041ab80
test al, al
je 0x405874
cmp dword [ebp - 0x230], ebx
mov ecx, dword [ebp - 0x244]
jae 0x405847
lea ecx, [ebp - 0x244]
cmp dword [ebp - 0x24c], ebx
mov eax, dword [ebp - 0x260]
jae 0x40585b
lea eax, [ebp - 0x260]
push ecx
push eax
push str._BackupSystemFile__CopyFile_Exist_s__Dest_s
push 0xb
mov esi, str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMOperateFile.cpp
push esi
call fcn.0041ad40
add esp, 0x14
jmp 0x405879
mov esi, str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMOperateFile.cpp
cmp dword [ebp - 0x230], ebx
mov ecx, dword [ebp - 0x244]
jae 0x40588d
lea ecx, [ebp - 0x244]
cmp dword [ebp - 0x24c], ebx
mov eax, dword [ebp - 0x260]
jae 0x4058a1
lea eax, [ebp - 0x260]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4058fb
call fcn.0041ab80
test al, al
je 0x4059b1
cmp dword [ebp - 0x230], ebx
mov ecx, dword [ebp - 0x244]
jae 0x4058d0
lea ecx, [ebp - 0x244]
cmp dword [ebp - 0x24c], ebx
mov eax, dword [ebp - 0x260]
jae 0x4058e4
lea eax, [ebp - 0x260]
push ecx
push eax
push str._BackupSystemFile__copyfile_failed_wsSystemPath:_s__wsBackFilePath:_s
push 0xb
push esi
call fcn.0041ad40
add esp, 0x14
jmp 0x4059b1
cmp dword [ebp - 0x230], ebx
mov eax, dword [ebp - 0x244]
jae 0x40590f
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x340]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x24c], ebx
mov eax, dword [ebp - 0x260]
jae 0x405934
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x35c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov ecx, dword [ebp - 0x2c0]
lea eax, [ebp - 0x35c]
push eax
lea edx, [ebp - 0x340]
mov byte [ebp - 4], 0xd
call fcn.004040d5
lea ecx, [ebp - 0x35c]
mov edi, eax
mov byte [ebp - 4], 0xc
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x340]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test edi, edi
jne 0x4059b1
call fcn.0041ab80
test al, al
je 0x4059b1
cmp dword [ebp - 0x24c], ebx
mov eax, dword [ebp - 0x260]
jae 0x4059a0
lea eax, [ebp - 0x260]
push eax
push str._BackupSystemFile__WriteToDosNotifyFile_failed_wsSystemPath:_s
push 0xb
push esi
call fcn.0041af50
add esp, 0x10
inc dword [ebp - 0x2bc]
lea esi, [ebp - 0x2c8]
call fcn.00406082
mov esi, dword [ebp - 0x2cc]
xor ebx, ebx
cmp dword [ebp - 0x2c8], ebx
mov edi, dword [esi + 4]
je 0x4059dd
cmp dword [ebp - 0x2c8], esi
je 0x4059e3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [ebp - 0x2c4], edi
jne 0x4054c0
mov dword [ebp - 0x2bc], 1
jmp 0x405a2b
call fcn.0041ab80
test al, al
je 0x405a25
push dword [ebp - 0x2d0]
push dword [ebp - 0x2d4]
push edi
push str._BackupSystemFile__GetDiskFreeSpaceExW_bRet_d__lFreeSpace_ld
push 0xb
push str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMOperateFile.cpp
call fcn.0041ad40
add esp, 0x18
mov dword [ebp - 0x2bc], ebx
cmp dword [ebp - 0x2e0], ebx
je 0x405a47
cmp dword [ebp - 0x2dc], ebx
je 0x405a47
push dword [ebp - 0x2d8]
call fcn.0040a210
pop ecx
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x2bc]
call fcn.00417953
ret