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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
and dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x40cc64
and dword [ebp - 4], 0
and dword [ebp - 8], 0
and dword [ebp - 0x18], 0
cmp dword [ebp + 8], 1
jbe 0x406ea1
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x406ea1
xor eax, eax
jmp 0x4070d9
push 0xffffffffffffffff
call fcn.0040341f
cmp dword [ebp + 8], 0
jne 0x406ed8
mov eax, dword [0x410cfc]
add eax, 0x10f8
mov dword [ebp - 0xc], eax
mov eax, dword [0x410cfc]
add eax, 0x1010
mov dword [ebp - 0x14], eax
mov eax, dword [0x410cfc]
mov eax, dword [eax + 0x100c]
mov dword [ebp - 0x18], eax
jmp 0x406f37
cmp dword [ebp + 8], 1
jne 0x406f0f
mov eax, dword [0x410cfc]
add eax, 0x1eb0
mov dword [ebp - 0xc], eax
mov eax, dword [0x410cfc]
add eax, 0x1e80
mov dword [ebp - 0x14], eax
mov eax, dword [0x410cfc]
mov eax, dword [eax + 0x1e7c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0x40cc68
jmp 0x406f37
mov eax, dword [0x410cfc]
add eax, 0x1bfc
mov dword [ebp - 0xc], eax
mov eax, dword [0x410cfc]
add eax, 0x1bcc
mov dword [ebp - 0x14], eax
mov eax, dword [0x410cfc]
mov eax, dword [eax + 0x1bc8]
mov dword [ebp - 0x18], eax
push 0x104
push 0
lea eax, [ebp - 0x128]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x1c]
call fcn.004023c0
push eax
push 0x410d10
push 0x40cc6c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push dword [ebp - 0xc]
call fcn.00406479
mov dword [ebp - 4], eax
xor eax, eax
inc eax
je 0x407031
and dword [ebp - 0x16c], 0
push 0x40
push 0
lea eax, [ebp - 0x168]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push 0x40
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.004066d4
test eax, eax
jne 0x406fbd
jmp 0x407031
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 0x168]
push eax
call fcn.004068e5
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 1
jne 0x407021
cmp dword [ebp + 8], 0
jne 0x407016
lea eax, [ebp - 0x128]
push eax
call fcn.0040636c
cmp eax, 1
jne 0x407007
mov dword [ebp - 0x10], 1
jmp 0x407031
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40701f
mov dword [ebp - 0x10], 1
jmp 0x407031
jmp 0x40702c
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406f7d
mov eax, dword [ebp - 4]
mov dword [ebp - 0x174], eax
push dword [ebp - 0x174]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x10], 0
jne 0x407057
cmp dword [ebp + 8], 1
je 0x407057
jmp 0x406e67
cmp dword [ebp + 8], 0
jne 0x407078
lea eax, [ebp - 0x128]
push eax
call fcn.00406077
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4070d7
cmp dword [ebp + 8], 1
jne 0x4070b5
and dword [ebp - 0x170], 0
call fcn.00402d02
call fcn.00406001
mov dword [ebp - 0x170], eax
push dword [ebp - 0x170]
lea eax, [ebp - 0x128]
push eax
call fcn.00405f71
push dword [ebp - 0x170]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4070d7
push 0x104
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
leave
ret 4