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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
and dword [ebp - 4], 0
and dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 0x40dc40
and dword [ebp - 0x24], 0
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 1
cmp dword [ebp + 8], 2
jne 0x406f6c
push 0x413630
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x406f6c
xor eax, eax
jmp 0x4071b0
push 0xffffffffffffffff
call fcn.004033ca
cmp dword [ebp + 8], 0
jne 0x406fa6
mov eax, dword [0x412fa8]
add eax, 0x10f8
mov dword [ebp - 4], eax
mov eax, dword [0x412fa8]
add eax, 0x1010
mov dword [ebp - 0x28], eax
mov eax, dword [0x412fa8]
mov eax, dword [eax + 0x100c]
mov dword [ebp - 0x2c], eax
jmp 0x40704d
cmp dword [ebp + 8], 1
jne 0x406fe1
mov eax, dword [0x412fa8]
add eax, 0x1eb0
mov dword [ebp - 4], eax
mov eax, dword [0x412fa8]
add eax, 0x1e80
mov dword [ebp - 0x28], eax
mov eax, dword [0x412fa8]
mov eax, dword [eax + 0x1e7c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], 0x40dbec
and dword [ebp - 0x30], 0
jmp 0x40704d
cmp dword [ebp + 8], 2
jne 0x407018
mov eax, dword [0x412fa8]
add eax, 0x1bfc
mov dword [ebp - 4], eax
mov eax, dword [0x412fa8]
add eax, 0x1bcc
mov dword [ebp - 0x28], eax
mov eax, dword [0x412fa8]
mov eax, dword [eax + 0x1bc8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x413630
jmp 0x40704d
cmp dword [ebp + 8], 3
jne 0x40704d
mov eax, dword [0x412fa8]
add eax, 0x2164
mov dword [ebp - 4], eax
mov eax, dword [0x412fa8]
add eax, 0x2134
mov dword [ebp - 0x28], eax
mov eax, dword [0x412fa8]
mov eax, dword [eax + 0x2130]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x413840
push 0x104
push 0
lea eax, [ebp - 0x140]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x34]
call fcn.00402415
push eax
push 0x412fc0
push 0x40dbf0
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x1c
push 0
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40
push 0
lea eax, [ebp - 0x180]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x30]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x180]
push eax
push dword [ebp - 4]
call fcn.00406c6f
cmp eax, 1
jne 0x4070cb
xor eax, eax
jmp 0x4071b0
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x180]
push eax
call fcn.004066d1
cmp eax, 1
jne 0x407117
cmp dword [ebp + 8], 0
jne 0x407113
lea eax, [ebp - 0x140]
push eax
call fcn.0040653d
cmp eax, 1
jne 0x407104
jmp 0x407127
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x407115
jmp 0x407127
jmp 0x407122
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407096
cmp dword [ebp + 8], 0
jne 0x407148
lea eax, [ebp - 0x140]
push eax
call fcn.00406216
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4071ae
cmp dword [ebp + 8], 1
jne 0x407180
and dword [ebp - 0x184], 0
call fcn.00406175
mov dword [ebp - 0x184], eax
push dword [ebp - 0x184]
lea eax, [ebp - 0x140]
push eax
call fcn.004060e5
push dword [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4071ae
cmp dword [ebp + 8], 2
je 0x40718c
cmp dword [ebp + 8], 3
jne 0x4071ae
push 0x104
push 0
push dword [ebp - 0x24]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
leave
ret 4