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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428180
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.00401800
push 1
mov eax, 0x42953c
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00401990
mov eax, esi
lea edx, [eax + 2]
jmp 0x401260
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401260
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x4c]
call fcn.00401990
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x401286
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 0x401297
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x30]
call fcn.00401ac0
mov eax, dword [ebp - 0x30]
mov esi, 8
cmp dword [ebp - 0x1c], esi
jae 0x4012bf
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4012e7
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x4012d5
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4012e7
mov eax, 1
jmp 0x4012e9
xor eax, eax
cmp eax, edi
sete bl
cmp dword [ebp - 0x1c], esi
jb 0x401300
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 0x40139b
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], esi
jae 0x401313
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 0x401330
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x401330
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x30]
call fcn.00401ac0
mov edx, esi
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.004192f0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 8
jb 0x40136d
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 0x40137d
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
cmp dword [ebp - 0x54], esi
jb 0x401396
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 0x4013b7
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], esi
jae 0x4013ae
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4013bf
lea ecx, [ebp - 0x4c]
call fcn.00405a20
cmp dword [ebp - 0x38], esi
jb 0x4013d1
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.00424ffa
mov esp, ebp
pop ebp
ret 4