Function at 0x405411
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push 0xffffffffffffffff
push 0x414c6d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
test byte [0x41c3ac], 1
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov ebp, 1
jne 0x40542e
or dword [0x41c3ac], ebp
mov eax, dword [esi + 0x10]
mov dword [0x41c3a8], eax
mov eax, dword [0x41c3a4]
cmp eax, 0x10
mov edi, 5
jne 0x405485
mov eax, dword [esp + 0x40]
cmp eax, 0x20
je 0x4054bd
push str._tthe_folder_may_be_moved_to_non_watched_folder._n
push 0x41c3d8
call fcn.00408720
add esp, 8
mov eax, dword [esp + 0x40]
cmp eax, 0x20
jne 0x4054bd
cmp dword [0x41c3a4], 0x10
je 0x4054e8
push str._tlast_action_is_directory_moved._convert_to_add._n
push 0x41c3d8
mov dword [esp + 0x48], ebp
call fcn.00408720
add esp, 8
jmp 0x40588a
cmp eax, 4
mov eax, dword [esp + 0x40]
jne 0x405499
cmp eax, edi
je 0x405458
push str._tdetected_file_renamed_but_new_name_not_detect._n
jmp 0x40544b
cmp eax, edi
jne 0x405458
push str._tcatch_new_name_but_old_name_not_encountered._n
push 0x41c3d8
call fcn.00408720
mov ecx, dword [esi + 0x10]
add esp, 8
mov dword [0x41c3a8], ecx
jmp 0x405ba6
cmp eax, 0x10
jne 0x4054df
mov eax, dword [esp + 0x3c]
mov edx, 0x41c2a0
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4054d0
jmp 0x40601b
cmp eax, 0x20
jne 0x405882
lea eax, [esi + 0x1c]
xor ebx, ebx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xc]
cmp eax, ebx
lea ebp, [esi + 8]
jne 0x405506
xor eax, eax
jmp 0x40551c
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
mov dword [esp + 0x1c], eax
jle 0x405834
mov dword [esp + 0x44], ebx
lea esp, [esp]
mov eax, 0x41c2a0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405538
mov esi, dword [ebp + 4]
sub eax, edx
test esi, esi
mov edi, eax
mov dword [esp + 0x18], edi
je 0x405864
mov ecx, dword [ebp + 8]
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x405864
test esi, esi
mov edx, dword [esp + 0x44]
mov eax, dword [edx + esi]
mov cl, byte [edi + eax]
mov byte [esp + 0x38], cl
je 0x405864
mov ecx, dword [ebp + 8]
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x405864
mov edx, dword [esp + 0x44]
mov esi, dword [edx + esi + 0x10]
test esi, esi
je 0x4055b9
cmp esi, 3
jne 0x405818
mov esi, dword [ebp + 4]
test esi, esi
je 0x405864
mov ecx, dword [ebp + 8]
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x405864
mov eax, dword [esp + 0x44]
mov esi, dword [eax + esi]
push edi
push esi
push 0x41c2a0
call dword [sym.imp.MSVCR71.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x405818
mov edi, dword [ebp + 4]
test edi, edi
je 0x405864
mov ecx, dword [ebp + 8]
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x405864
mov esi, edi
test esi, esi
je 0x405864
mov ecx, dword [ebp + 8]
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x405864
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + edi]
add ecx, dword [esp + 0x18]
mov edx, dword [eax + esi]
push ecx
push edx
call fcn.004101f0
add esp, 8
test eax, eax
jne 0x40567a
mov al, byte [esp + 0x38]
test al, al
jne 0x405818
mov esi, dword [ebp + 4]
test esi, esi
je 0x405864
mov ecx, dword [ebp + 8]
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x405864
mov edi, dword [esp + 0x44]
mov eax, dword [edi + esi]
add eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call dword [0x416138]
mov esi, dword [ebp + 4]
test esi, esi
mov dword [esp + 0x30], 0
je 0x405864
mov ecx, dword [ebp + 8]
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x405864
cmp dword [edi + esi], 0
je 0x405703
push ebx
mov ecx, ebp
call fcn.00402a30
mov eax, dword [eax]
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov eax, dword [esp + 0x3c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405710
sub eax, edx
lea ecx, [esp + 0x14]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
lea ecx, [eax + esi + 1]
push ecx
call sub.MFC71.DLL_operator_new
mov ecx, dword [ebp + 4]
add esp, 4
test ecx, ecx
mov esi, eax
je 0x405864
mov edx, dword [ebp + 8]
sub edx, ecx
mov eax, 0x66666667
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x405864
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
mov dword [edx + ecx], esi
mov esi, dword [ebp + 4]
test esi, esi
je 0x405864
mov ecx, dword [ebp + 8]
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x405864
mov eax, dword [esp + 0x44]
mov esi, dword [eax + esi]
mov al, byte [edi]
inc edi
mov byte [esi], al
inc esi
test al, al
jne 0x405798
mov edi, dword [ebp + 4]
test edi, edi
je 0x405864
mov ecx, dword [ebp + 8]
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x405864
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4057d7
mov ecx, dword [esp + 0x44]
mov edi, dword [ecx + edi]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4057e8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 1
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
inc ebx
add ecx, 0x28
cmp ebx, eax
mov dword [esp + 0x44], ecx
jl 0x405530
mov esi, dword [esp + 0x10]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40586b
push str._tDirectory_Move_succeeded._n
push 0x41c3d8
call fcn.00408720
add esp, 8
mov ecx, esi
call fcn.00402000
jmp 0x40601b
mov ecx, ebp
call fcn.00402560
push str._tDirectory_Move_failed._n
push 0x41c3d8
call fcn.00408720
add esp, 8
jmp 0x40601b
cmp eax, ebp
jne 0x405937
mov ebx, dword [esp + 0x3c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4058c2
test al, 0x10
je 0x4058c2
mov edx, dword [esp + 0x38]
push edx
push ebx
mov ecx, esi
call fcn.004050b0
push str._tDrectory_Added._register_inner_files_n
push 0x41c3d8
call fcn.00408720
add esp, 8
jmp 0x40601b
push ebx
push 0
mov ecx, esi
call fcn.00404f20
push str._tFile_Added._n
push 0x41c3d8
call fcn.00408720
add esp, 8
push 0
push 0
push 0x3e8
lea ecx, [esi + 0x3c]
call fcn.004110d0
mov eax, dword [esi + 0x4c]
test eax, eax
mov eax, dword [esi + 0x50]
je 0x40590b
inc eax
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x54], eax
jmp 0x40601b
test eax, eax
jle 0x40591e
mov ecx, esi
call fcn.00403f30
dec dword [esi + 0x50]
jmp 0x40601b
push 0
push 0x32
push 0x1388
lea ecx, [esi + 0x44]
call fcn.004110d0
mov dword [esi + 0x4c], ebp
jmp 0x40601b
cmp eax, 2
jne 0x405ae9
lea ebp, [esi + 0x1c]
push ebp
mov dword [esp + 0x3c], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x3c]
push edi
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.00402ae0
mov eax, dword [esi + 0x10]
mov ebx, dword [esp + 0x3c]
cmp ebx, eax
jne 0x40598c
test byte [esi + 0x68], 2
je 0x4059ee
push edi
mov ecx, esi
call fcn.00404e60
push str._tFile_removed._but_the_file_not_in_cache._try_to_delete_from_bin_n
push 0x41c3d8
call fcn.00408720
add esp, 8
jmp 0x4059ee
mov ebp, dword [ebx + 0x10]
push ebx
mov ecx, esi
call fcn.004024b0
push ebx
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esi + 8]
call fcn.00403e70
test ebp, ebp
je 0x4059d0
cmp ebp, 2
je 0x4059d0
test byte [esi + 0x68], 2
je 0x4059e3
push edi
mov ecx, esi
call fcn.00404e60
push str._tFile_removed._and_the_file_in_cache._but_already_registered._try_to_delete_from_bin_n
push 0x41c3d8
call fcn.00408720
add esp, 8
jmp 0x4059e3
push ebp
push str._tFile_removed._and_the_file_in_cache._dwFileStatus___x_n
push 0x41c3d8
call fcn.00408720
add esp, 0xc
mov ecx, esi
call fcn.004027e0
mov ebp, dword [esp + 0x38]
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x405add
push edi
call fcn.00408930
add esp, 4
test eax, eax
je 0x405add
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x405a85
push edi
lea ecx, [esp + 0x40]
call dword [0x416138]
push str..ese
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call ebx
push edi
lea ecx, [esp + 0x40]
call dword [0x416154]
push str..ese2
lea ecx, [esp + 0x40]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ebx, dword [esi + 0x8c]
add esi, 0x80
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
cmp esi, esi
jne 0x405a9f
cmp ebx, eax
je 0x405add
mov eax, ebx
shr eax, 2
lea edx, [eax*4]
mov ecx, ebx
sub ecx, edx
mov edx, dword [esi + 8]
cmp edx, eax
ja 0x405ab8
sub eax, edx
mov edx, dword [esi + 4]
mov eax, dword [edx + eax*4]
lea ecx, [eax + ecx*4]
push edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x405acf
inc ebx
jmp 0x405a91
push ebx
push esi
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00403ab0
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40601b
cmp eax, 4
jne 0x405b9e
lea ebp, [esi + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x3c]
push ebx
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.00402ae0
mov edi, dword [esp + 0x3c]
mov eax, dword [esi + 0x10]
mov edx, 0x41c2a0
sub edx, ebx
cmp edi, eax
jne 0x405b80
mov eax, dword [esp + 0x44]
test eax, eax
mov eax, ebx
je 0x405b58
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405b30
mov eax, dword [esi + 0x10]
push ebp
mov dword [0x41c29c], 1
mov dword [0x41c3a8], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40601b
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405b58
mov eax, dword [esi + 0x10]
push ebp
mov dword [0x41c29c], 0
mov dword [0x41c3a8], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40601b
mov eax, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405b82
push ebp
mov dword [0x41c3a8], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40601b
cmp eax, edi
jne 0x40601b
mov ecx, dword [0x41c3a8]
cmp ecx, dword [esi + 0x10]
jne 0x405dee
mov eax, dword [0x41c29c]
test eax, eax
je 0x405dc6
mov edi, dword [esp + 0x10]
lea eax, [edi + 0x1c]
xor ebp, ebp
push eax
mov dword [esp + 0x48], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [edi + 8]
mov ecx, ebx
call fcn.00402540
cmp eax, ebp
mov dword [esp + 0x20], eax
jle 0x405d85
lea esp, [esp]
mov eax, 0x41c2a0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405bf8
sub eax, edx
push ebp
mov ecx, ebx
mov esi, eax
call fcn.00402a30
mov edx, dword [eax]
mov al, byte [esi + edx]
push ebp
mov ecx, ebx
mov byte [esp + 0x3c], al
call fcn.00402a30
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.004024f0
test eax, eax
je 0x405d74
push ebp
mov ecx, ebx
call fcn.00402a30
mov eax, dword [eax]
push esi
push eax
push 0x41c2a0
call dword [sym.imp.MSVCR71.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x405d74
push ebp
mov ecx, ebx
call fcn.00402a30
push ebp
mov ecx, ebx
mov edi, eax
call fcn.00402a30
mov edx, dword [edi]
mov eax, dword [eax]
add edx, esi
push edx
push eax
call fcn.004101f0
add esp, 8
test eax, eax
jne 0x405c83
mov al, byte [esp + 0x38]
test al, al
jne 0x405d74
push ebp
mov ecx, ebx
call fcn.00402a30
mov ecx, dword [eax]
add ecx, esi
push ecx
lea ecx, [esp + 0x18]
call dword [0x416138]
push ebp
mov ecx, ebx
mov dword [esp + 0x34], 2
call fcn.00402a30
cmp dword [eax], 0
je 0x405cc2
push ebp
mov ecx, ebx
call fcn.00402a30
mov eax, dword [eax]
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov eax, dword [esp + 0x3c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405cd0
sub eax, edx
lea ecx, [esp + 0x14]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ce8
sub eax, edi
lea edx, [eax + esi + 1]
push edx
call sub.MFC71.DLL_operator_new
add esp, 4
push ebp
mov ecx, ebx
mov esi, eax
call fcn.00402a30
mov dword [eax], esi
mov esi, dword [esp + 0x3c]
push ebp
mov ecx, ebx
call fcn.00402a30
mov eax, dword [eax]
mov cl, byte [esi]
inc esi
mov byte [eax], cl
inc eax
test cl, cl
jne 0x405d18
push ebp
mov ecx, ebx
call fcn.00402a30
lea ecx, [esp + 0x14]
mov edi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405d38
mov edi, dword [edi]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405d44
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 1
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jl 0x405bf0
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x405da5
mov ecx, edi
call fcn.00402000
push str._tFolder_renamed._and_the_target_files_in_cache_renamed._n
jmp 0x405daa
push str._tFolder_renamed._but_no_target_file_in_the_directory._n
push 0x41c3d8
call fcn.00408720
add esp, 8
mov dword [0x41c29c], 0
jmp 0x406008
mov eax, dword [esp + 0x3c]
push eax
push 0x41c2a0
mov ecx, esi
call fcn.00404f20
push str._tFile_renamed._but_the_old_file_is_not_target_file._n
push 0x41c3d8
call fcn.00408720
add esp, 8
jmp 0x406008
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x405f49
mov ecx, dword [0x41c3a8]
mov edx, dword [ecx]
push edx
call fcn.00408930
add esp, 4
test eax, eax
je 0x405f49
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x405f07
mov eax, dword [0x41c3a8]
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x14]
call dword [0x416138]
push str..ese
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
mov edi, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x48]
call dword [0x416138]
push str..ese
lea ecx, [esp + 0x48]
mov byte [esp + 0x34], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x44]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileA]
push eax
call ebx
mov edx, dword [0x41c3a8]
mov eax, dword [edx]
push eax
lea ecx, [esp + 0x14]
call dword [0x416154]
push str..ese2
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
push edi
lea ecx, [esp + 0x48]
call dword [0x416154]
push str..ese2
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x44]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call ebx
lea ecx, [esp + 0x44]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov edi, dword [esi + 0x90]
xor ebp, ebp
test edi, edi
jbe 0x405f49
push ebp
lea ecx, [esi + 0x80]
call fcn.00402a70
mov ecx, dword [0x41c3a8]
mov edx, dword [ecx]
mov ebx, eax
push edx
push ebx
call fcn.00402520
add esp, 8
test al, al
je 0x405f44
mov eax, dword [esp + 0x3c]
push eax
mov ecx, ebx
call dword [0x416154]
inc ebp
cmp ebp, edi
jb 0x405f13
mov ecx, dword [0x41c3a8]
mov eax, dword [ecx]
test eax, eax
je 0x405f5e
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov edi, dword [esp + 0x3c]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405f67
sub eax, edx
inc eax
push eax
call sub.MFC71.DLL_operator_new
mov edx, dword [0x41c3a8]
mov dword [edx], eax
mov eax, dword [0x41c3a8]
mov edx, dword [eax]
add esp, 4
mov ecx, edi
jmp 0x405f90
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x405f90
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x41c3a8]
cmp dword [ecx + 0x10], 1
je 0x405fbd
test byte [esi + 0x68], 8
jne 0x405fbd
push str._tFile_renamed._but_not_changed_to_bin_n
jmp 0x405fda
push edi
push 0x41c2a0
mov ecx, esi
call fcn.00404f20
test eax, eax
jne 0x405fd5
push str._tFile_renamed_and_failed_to_add_renamed_file_list_n
jmp 0x405fda
push str._tFile_renamed_and_add_renamed_file_list_n
push 0x41c3d8
call fcn.00408720
add esp, 8
push 0
push 0
push 0x1388
lea ecx, [esi + 0x3c]
call fcn.004110d0
mov ecx, esi
call fcn.004027e0
mov edx, dword [esi + 0x10]
mov dword [0x41c3a8], edx
mov eax, dword [0x41c298]
test eax, eax
je 0x40601b
mov dword [0x41c298], 0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword [0x41c3a4], eax
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10