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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x402464
push ecx
push ebx
push esi
push edi
mov eax, 0x402404
call fcn.00401a54
xor eax, eax
push ebp
push 0x40272f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x402740
call fcn.00401b40
lea eax, [ebp - 0x14]
call fcn.004023ac
lea eax, [ebp - 0x18]
call 0x4023cc
lea eax, [ebp - 0x1c]
call fcn.004023ac
lea eax, [ebp - 0x20]
call 0x4023cc
mov eax, 0x40307c
call fcn.00401cd0
mov eax, 0x40307c
call fcn.00401810
add eax, 0x3e
push eax
call fcn.00401b38
push 0x105
push 0x404144
push 0
call sub.KERNEL32.DLL_GetProcessHeap
lea edx, [ebp - 0x24]
mov eax, 0x404144
call fcn.00401fb0
mov edx, dword [ebp - 0x24]
mov eax, 0x404254
call fcn.0040162c
cmp dword [0x404254], 0
je 0x402714
lea eax, [ebp - 0x28]
call fcn.00401ed8
mov edx, dword [ebp - 0x28]
mov eax, 0x40307c
call fcn.0040162c
mov eax, dword [0x403080]
mov eax, dword [eax]
call fcn.004017c4
push eax
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.00401300
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00401db8
mov eax, dword [ebp - 0x2c]
call fcn.004017c4
push eax
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
je 0x4025b4
mov ecx, dword [0x403080]
mov ecx, dword [ecx]
mov eax, dword [0x403080]
mov edx, dword [0x40307c]
call fcn.00401750
mov eax, dword [0x403080]
mov eax, dword [eax]
call fcn.004017c4
push eax
call fcn.00401b38
push 0
mov eax, dword [0x403080]
mov eax, dword [eax]
call fcn.004017c4
push eax
lea edx, [ebp - 0x34]
xor eax, eax
call fcn.00401300
mov eax, dword [ebp - 0x34]
call fcn.004017c4
push eax
call fcn.00401b28
push 6
mov eax, dword [0x403080]
mov eax, dword [eax]
call fcn.004017c4
push eax
call sub.KERNEL32.DLL_ExitProcess
mov eax, 0x404250
mov ecx, 0x40274c
mov edx, dword [0x40307c]
call fcn.00401750
mov eax, 0x40424c
mov ecx, 0x402760
mov edx, dword [0x40307c]
call fcn.00401750
mov eax, dword [0x40424c]
call fcn.004017c4
mov ebx, eax
push ebx
call fcn.00401b38
push ebx
call sub.shlwapi.dll_PathFileExistsA
test eax, eax
je 0x40262d
mov eax, dword [0x404254]
push eax
mov eax, dword [0x404250]
call fcn.004017c4
mov ecx, eax
mov edx, 0x40276c
mov eax, 0xa
call fcn.00401e00
mov edx, dword [0x404250]
mov eax, dword [0x40424c]
call fcn.00402278
jmp 0x402644
mov eax, dword [0x404254]
push eax
mov ecx, ebx
mov edx, 0x40276c
mov eax, 0xa
call fcn.00401e00
push 0x402778
push 0x402780
call fcn.00401c08
push eax
call fcn.00401c20
test eax, eax
jne 0x402705
push 0x402788
push 0x402780
call fcn.00401c08
push eax
call fcn.00401c20
test eax, eax
jne 0x402705
mov eax, dword [0x40424c]
call fcn.004017c4
push eax
call sub.KERNEL32.DLL_LocalAlloc
mov ebx, eax
test ebx, ebx
je 0x402705
push 0x402790
push ebx
call sub.KERNEL32.DLL_HeapAlloc
mov esi, eax
push 0x40279c
push ebx
call sub.KERNEL32.DLL_HeapAlloc
mov edi, eax
test esi, esi
je 0x402705
test edi, edi
je 0x402705
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x404114]
push eax
push 0
mov edx, 0x402788
mov eax, 0x402780
xor ecx, ecx
call fcn.00401c2c
call edi
jmp 0x4026e9
push 0x404258
call fcn.00401c00
push 0
push 0
push 0
push 0x404258
call fcn.00401c10
test eax, eax
jne 0x4026df
call esi
push ebx
call fcn.00401b50
mov eax, dword [0x40424c]
call fcn.004017c4
call fcn.004020b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402736
lea eax, [ebp - 0x34]
mov edx, 9
call fcn.004015fc
ret