Function at 0x4040d5
Capabilities:
Check if file exists

Disassembly:
push 0x80
mov eax, 0x41ca89
call fcn.00417909
mov eax, dword [ebp + 8]
xor edi, edi
push 0x40
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x5e]
mov ebx, edx
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x60], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x4221f8
lea ecx, [ebp - 0x7c]
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 dword [ebp - 4], edi
mov word [ebp - 0x1c], di
xor eax, eax
cmp dword [ebx + 0x18], 8
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebx + 4]
mov dword [ebp - 0x84], eax
jb 0x404139
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
test edi, edi
jne 0x40417b
call fcn.0041ab80
test al, al
je 0x404341
cmp dword [ebx + 0x18], 8
mov eax, dword [ebp - 0x84]
jb 0x404161
mov eax, dword [eax]
push eax
push str._WriteToDosNotifyFile__BackFileName_is_not_exist___s
push 0xb
push str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMDosNotifyFile.cpp
call fcn.0041ad40
add esp, 0x10
jmp 0x404341
mov ebx, dword [ebp - 0x88]
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
mov dword [ebp - 0x80], eax
jb 0x40418f
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
test edi, edi
jne 0x4041bc
call fcn.0041ab80
test al, al
je 0x404341
cmp dword [ebx + 0x18], 8
mov eax, dword [ebp - 0x80]
jb 0x4041b4
mov eax, dword [eax]
push eax
push str._WriteToDosNotifyFile__SystemFileName_is_not_exist___s
jmp 0x404167
cmp dword [ebx + 0x18], 8
jb 0x4041c9
mov eax, dword [ebp - 0x80]
mov ebx, dword [eax]
jmp 0x4041cc
mov ebx, dword [ebp - 0x80]
mov eax, dword [0x42d1e4]
xor edi, edi
test eax, eax
jne 0x4041eb
push str.QMGetFileMD5_2
call fcn.0040ee70
test eax, eax
pop ecx
mov dword [0x42d1e4], eax
je 0x4041f4
lea ecx, [ebp - 0x60]
push ecx
push ebx
call eax
mov edi, eax
test edi, edi
jne 0x40421e
call fcn.0041ab80
test al, al
je 0x404341
push str._WriteToDosNotifyFile__QMGetFileMD5_return_FALSE
push 0xb
push str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMDosNotifyFile.cpp
call fcn.0041ad40
add esp, 0xc
jmp 0x404341
inc dword [esi + 0x20]
push dword [esi + 0x20]
lea eax, [ebp - 0x1c]
push 0x4232e4
push 5
push eax
call dword [sym.imp.MSVCR80.dll__snwprintf]
add esp, 0x10
cmp dword [esi + 0x1c], 8
jb 0x404243
mov eax, dword [esi + 8]
jmp 0x404246
lea eax, [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.ItemCount
push str.RestoreFile
call ebx
mov edi, eax
test edi, edi
je 0x404341
push dword [esi + 0x20]
lea eax, [ebp - 0x1c]
push str._03d
push 5
push eax
call dword [sym.imp.MSVCR80.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x7c]
call dword [0x41d224]
cmp dword [esi + 0x1c], 8
jb 0x404296
mov edx, dword [esi + 8]
jmp 0x404299
lea edx, [esi + 8]
mov eax, dword [ebp - 0x88]
cmp dword [eax + 0x18], 8
jb 0x4042ac
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
jmp 0x4042af
mov ecx, dword [ebp - 0x80]
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
jae 0x4042bb
lea eax, [ebp - 0x78]
push edx
push ecx
push str.ReplacePath
push eax
call ebx
mov edi, eax
test edi, edi
je 0x404341
cmp dword [esi + 0x1c], 8
jb 0x4042d6
mov edx, dword [esi + 8]
jmp 0x4042d9
lea edx, [esi + 8]
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x18], 8
jb 0x4042ef
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
jmp 0x4042f5
mov ecx, dword [ebp - 0x84]
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
jae 0x404301
lea eax, [ebp - 0x78]
push edx
push ecx
push str.BackupPath
push eax
call ebx
mov edi, eax
test edi, edi
je 0x404341
cmp dword [esi + 0x1c], 8
jb 0x40431c
mov esi, dword [esi + 8]
jmp 0x40431f
add esi, 8
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
jae 0x40432b
lea eax, [ebp - 0x78]
push esi
lea ecx, [ebp - 0x60]
push ecx
push str.BackupPathMD5
push eax
call ebx
mov edi, eax
test edi, edi
je 0x404341
xor edi, edi
inc edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
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, edi
call fcn.00417953
ret 4