Function at 0x445706
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x14cc]
mov eax, 0x154c
call fcn.00468c00
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp + 0x14c8], eax
mov eax, dword [ebp + 0x14d8]
push ebx
mov ebx, dword [ebp + 0x14d4]
mov dword [ebp - 0x44], eax
push esi
add eax, 0x50
lea edx, [ebp + 0x12c0]
push edi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x445742
cmp dword [ebp + 0x14dc], 0
mov eax, str.TRECContinuous_rename
jne 0x445763
mov eax, str.TRENRename
push eax
call dword [sym.imp.PPLIB32W.DLL__MessageText_4]
lea edx, [ebp - 0x40]
mov dword [ebp - 0x54], eax
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x445772
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x80], eax
mov eax, 0x1000
mov word [ebp - 0x7a], ax
mov eax, 0x3300
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x12c0]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], 0x104
mov dword [ebp - 0x60], ebx
xor edi, edi
mov dword [ebp - 0x6c], 0x10685
cmp dword [0x489590], edi
jne 0x4457d2
mov eax, dword [ebp - 0x44]
test byte [eax + 0x24], 0x10
je 0x4457d2
mov dword [ebp - 0x6c], 0x10285
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.PPLIB32W.DLL__tInputEx_4]
cmp eax, edi
mov dword [ebp - 0x48], eax
jle 0x445bb0
mov eax, dword [ebp - 0x44]
lea esi, [ebx + 0xa34]
add eax, 0x50
cmp word [esi], 0x3f
push eax
jne 0x44588a
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebx + 0x584]
push eax
call dword [sym.imp.PPLIB32W.DLL__VFSMakeIDL_16]
test eax, eax
je 0x445a8c
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
lea edx, [ebp - 0x58]
push edx
push edi
lea edx, [ebp + 0x12c0]
push edx
push dword [ebp - 0x50]
push dword [ebx + 0xc]
push eax
call dword [ecx + 0x30]
test eax, eax
jl 0x445845
push dword [ebp - 0x58]
call dword [sym.imp.PPLIB32W.DLL__FreePIDL_4]
jmp 0x445848
mov dword [ebp - 0x48], edi
push dword [ebp - 0x50]
call dword [sym.imp.PPLIB32W.DLL__FreePIDL_4]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x48], edi
jne 0x445b92
push dword [ebp - 0x54]
lea eax, [ebp - 0x40]
push str._s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp + eax*2 - 0x40]
push 5
push eax
call dword [sym.imp.PPLIB32W.DLL__PPErrorMsg_8]
jmp 0x4457b1
call dword [sym.imp.PPLIB32W.DLL__VFSFindLastEntry_4]
mov edi, eax
mov eax, dword [ebp - 0x44]
add eax, 0x50
lea edx, [ebp - 0x40]
cmp edi, eax
je 0x4458de
mov eax, dword [ebp - 0x44]
add eax, 0x50
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x4458a7
mov eax, edi
sub eax, dword [ebp - 0x44]
xor ecx, ecx
sub eax, 0x50
sar eax, 1
push 0x50
mov word [ebp + eax*2 - 0x40], cx
push esi
lea eax, [ebp - 0x40]
push eax
push ecx
call dword [sym.imp.PPLIB32W.DLL__VFSFixPath_16]
cmp word [edi], 0x5c
jne 0x4458f0
inc edi
inc edi
jmp 0x4458f0
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x4458e2
mov ecx, edi
lea eax, [ebp + 0x12c0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44591e
test dx, dx
je 0x44591a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44591e
add eax, 4
add ecx, 4
test dx, dx
jne 0x4458f8
xor eax, eax
jmp 0x445923
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x445b92
push 0x10
xor esi, esi
push esi
lea eax, [ebp + 0x12c0]
push eax
push esi
call dword [sym.imp.PPLIB32W.DLL__VFSFixPath_16]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 0x12c0]
push eax
lea eax, [ebp + 0xe10]
push eax
call dword [sym.imp.PPLIB32W.DLL__VFSFullPath_12]
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp + 0x920]
push eax
call dword [sym.imp.PPLIB32W.DLL__VFSFullPath_12]
cmp dword [ebx + 0x1d24], 0x17
jne 0x4459a5
lea eax, [ebp + 0x920]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x44597a
push dword [ebx + 0xc]
sub eax, edx
sar eax, 1
lea esi, [ebp + eax*2 + 0x920]
lea eax, [ebx + 0x40]
push eax
push str.r_s_w_d
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp + 0xe10]
push eax
lea eax, [ebp + 0x920]
push eax
call dword [sym.imp.PPLIB32W.DLL__MoveFileWithProgressL_20]
test eax, eax
jne 0x445a94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
jne 0x445a2a
cmp dword [ebx + 0x1d24], 0x17
je 0x445a2e
cmp dword [ebx + 0x1d20], 1
jne 0x445a2e
mov eax, dword [ebp - 0x44]
add eax, 0x258
cmp word [eax], 0
je 0x445a2e
lea ecx, [ebp - 0x40]
push ecx
push eax
lea eax, [ebp + 0x920]
push eax
call dword [sym.imp.PPLIB32W.DLL__VFSFullPath_12]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp + 0xe10]
push eax
lea eax, [ebp + 0x920]
push eax
call dword [sym.imp.PPLIB32W.DLL__MoveFileWithProgressL_20]
test eax, eax
jne 0x445a94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x445a94
push str.TRENRename
call dword [sym.imp.PPLIB32W.DLL__MessageText_4]
push eax
lea eax, [ebp - 0x40]
push str._s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea esi, [ebp + eax*2 - 0x40]
cmp edi, 5
je 0x445a5a
cmp edi, 0x20
jne 0x445a68
push esi
lea eax, [ebp + 0x920]
push eax
call dword [sym.imp.PPLIB32W.DLL__GetAccessApplications_8]
cmp edi, 0x7b
jne 0x445a7b
push 1
lea eax, [ebp + 0x12c0]
push eax
call fcn.0044566f
cmp word [esi], 0
jne 0x4457b1
push edi
push esi
jmp 0x44587f
or eax, 0xffffffff
jmp 0x445bb3
test esi, esi
je 0x445a9d
xor eax, eax
mov word [esi], ax
mov edi, dword [ebp - 0x44]
push 0
lea eax, [edi + 0x50]
push eax
push str.Rename_t
call fcn.004249c8
push 0
lea eax, [ebp + 0x12c0]
push eax
push str.____t
call fcn.004249c8
lea eax, [ebp + 0xe10]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x445acc
sub eax, edx
sar eax, 1
cmp eax, 0x104
jl 0x445b13
push eax
push str.WLLPLong_path_directory
call dword [sym.imp.PPLIB32W.DLL__MessageText_4]
push eax
lea eax, [ebp + 0xe10]
push str._s__d_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp + 0xe10]
push eax
xor edx, edx
mov ecx, ebx
call fcn.00427caa
mov esi, dword [ebx + 0x1d20]
cmp esi, 4
je 0x445b24
cmp dword [ebp - 0x48], 1
jle 0x445b56
lea eax, [ebp + 0xe10]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x445b2d
sub eax, edx
sar eax, 1
cmp eax, 0x258
jae 0x445b56
cmp esi, 4
jne 0x445b56
cmp dword [ebx + 0x1d24], 0x17
lea eax, [ebp + 0xe10]
jne 0x445b5c
lea eax, [ebp + 0x12c0]
push eax
push edi
push ebx
call fcn.0044553c
cmp dword [0x4871b0], 0
jne 0x445b71
mov byte [edi + 0xf], 4
test byte [edi + 0x24], 0x10
je 0x445b92
lea eax, [ebp + 0xe10]
push eax
lea eax, [ebp + 0x920]
push eax
push 5
push 0x20000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea eax, [ebp + 0x12c0]
mov ecx, eax
sub ebx, ecx
lea edx, [ebx + 0x3328]
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x445ba2
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 0x14c8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046890b
add ebp, 0x14cc
leave
ret 0xc