Function at 0x401260
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428610
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x433018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor edi, edi
add eax, 8
push edi
mov esi, edx
mov dword [ebp - 4], edi
mov dword [ebp - 0x70], ecx
xor edx, edx
push eax
mov ebx, 7
or eax, 0xffffffff
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x69], 1
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], dx
call fcn.00401880
push 1
mov eax, 0x42953c
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00401a10
mov eax, esi
lea edx, [eax + 2]
jmp 0x4012e0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4012e0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x4c]
call fcn.00401a10
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x401306
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov word [ebp - 0x30], cx
mov ecx, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x401317
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x30]
call fcn.00401b40
mov eax, dword [ebp - 0x30]
mov esi, 8
cmp dword [ebp - 0x1c], esi
jae 0x40133f
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401367
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x401355
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x401367
mov eax, 1
jmp 0x401369
xor eax, eax
cmp eax, edi
sete bl
cmp dword [ebp - 0x1c], esi
jb 0x401380
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test bl, bl
je 0x40141b
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], esi
jae 0x401393
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov word [ebp - 0x30], cx
mov ecx, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
lea esi, [ecx + 2]
jmp 0x4013b0
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x4013b0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x30]
call fcn.00401b40
mov edx, esi
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00419740
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 8
jb 0x4013ed
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x68]
mov esi, 0x10
cmp dword [ebp - 0x54], esi
jae 0x4013fd
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
cmp dword [ebp - 0x54], esi
jb 0x401416
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 8
mov edx, dword [ebp - 0x70]
cmp dword [edx + 8], edi
jne 0x401437
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], esi
jae 0x40142e
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40143f
lea ecx, [ebp - 0x4c]
call fcn.00405de0
cmp dword [ebp - 0x38], esi
jb 0x401451
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, byte [ebp - 0x69]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042543a
mov esp, ebp
pop ebp
ret 4