Function at 0x41dd0a
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [eax]
mov edi, ecx
sub eax, 0x10
mov dword [ebp - 0xc], edi
push eax
call fcn.00402f5d
push 0x5c
lea esi, [eax + 0x10]
push esi
mov dword [ebp - 8], esi
call sub.msvcrt.dll_wcsrchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x41dd59
sub ecx, esi
sar ecx, 1
cmp ecx, 0xffffffff
je 0x41dd59
mov eax, dword [esi - 0xc]
sub eax, ecx
dec eax
push eax
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 8]
call fcn.00403457
call fcn.00403a64
push eax
lea ecx, [ebp - 0x18]
call fcn.00402a6b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x18]
push str.con__d.ini
push eax
call fcn.00415254
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 8]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.00402d75
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41dda3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 4
push 0
push 5
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41ddcd
mov ebx, 0x802
jmp 0x41dfd0
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 2
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0xfeff
push eax
push ebx
mov ecx, edi
call fcn.0041e081
test eax, eax
jne 0x41de15
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, 0x805
jmp 0x41dfd0
push 0x527fb4
lea ecx, [ebp - 4]
call fcn.00402af5
mov ecx, dword [edi]
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
cmp eax, ecx
je 0x41df58
mov esi, eax
call fcn.00403a64
push eax
lea ecx, [ebp - 0x14]
call fcn.00402a6b
push dword [esi + 0x10]
lea eax, [ebp - 0x14]
push str.__s__r_n
push eax
call fcn.00415254
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 4]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.00402d75
mov eax, dword [esi + 0x14]
mov edi, dword [eax]
mov dword [ebp - 0x1c], edi
cmp edi, eax
je 0x41df1c
call fcn.00403a64
push eax
lea ecx, [ebp - 0x10]
call fcn.00402a6b
mov eax, dword [edi + 0x14]
cmp dword [eax - 0xc], 0
jne 0x41dea4
push dword [edi + 0x10]
lea eax, [ebp - 0x10]
push 0x52b294
push eax
call fcn.00415254
add esp, 0xc
jmp 0x41deb9
push eax
push dword [edi + 0x10]
lea eax, [ebp - 0x10]
push str._s_s_r_n
push eax
call fcn.00415254
add esp, 0x10
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push dword [edi - 0xc]
push edi
call fcn.00402d75
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x1000
jl 0x41df00
add ecx, ecx
push ecx
mov ecx, dword [ebp - 0xc]
push eax
push ebx
call fcn.0041e081
test eax, eax
je 0x41df00
push 0x527fb4
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push 0x527fb4
lea ecx, [ebp - 4]
call fcn.00404550
lea ecx, [edi - 0x10]
call fcn.004042e9
lea ecx, [ebp - 0x1c]
call fcn.0040d404
mov edi, dword [ebp - 0x1c]
cmp edi, dword [esi + 0x14]
jne 0x41de77
mov esi, 0x52b264
push esi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push esi
lea ecx, [ebp - 4]
call fcn.00402d75
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004042e9
lea ecx, [ebp - 0x20]
call fcn.0040d404
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x20]
cmp esi, dword [ecx]
jne 0x41de36
mov esi, dword [ebp - 8]
jmp 0x41df5a
mov ecx, edi
mov edi, dword [ebp - 4]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x41df8b
add eax, eax
push eax
push edi
push ebx
call fcn.0041e081
test eax, eax
je 0x41df8b
mov edi, 0x527fb4
push edi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push edi
lea ecx, [ebp - 4]
call fcn.00404550
mov edi, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
xor ebx, ebx
inc ebx
push ebx
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41dfc8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
push dword [eax]
push esi
call fcn.0041dc0a
push esi
mov ebx, eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41dfc8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [edi - 0x10]
call fcn.004042e9
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004042e9
lea ecx, [esi - 0x10]
call fcn.004042e9
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4