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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f559
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x4d33a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x144], ecx
mov eax, dword [ebp - 0x144]
movzx ecx, byte [eax + 0x2c]
test ecx, ecx
jne 0x46a118
mov ecx, dword [ebp - 0x144]
add ecx, 0x10
call fcn.0042ab8b
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46a118
mov ecx, dword [ebp - 0x144]
add ecx, 0x10
call fcn.0042ab8b
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x46a118
mov al, 1
jmp 0x46a62a
mov edx, dword [ebp - 0x144]
add edx, 0x10
push edx
lea eax, [ebp - 0x100]
push eax
call fcn.00478000
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x100]
call fcn.0042ab8b
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x46a185
lea ecx, [ebp - 0x100]
push ecx
call fcn.00476210
add esp, 4
test eax, eax
jne 0x46a185
mov byte [ebp - 0x125], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x100]
call fcn.0042aec4
mov al, byte [ebp - 0x125]
jmp 0x46a62a
push 0x4b722f
lea ecx, [ebp - 0xd4]
call fcn.0045e760
mov byte [ebp - 4], 1
lea edx, [ebp - 0xe0]
push edx
mov ecx, dword [ebp - 0x144]
call fcn.0046b240
jmp 0x46a1b8
lea ecx, [ebp - 0xe0]
call fcn.0046b5a0
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x144]
call fcn.0046b2a0
push eax
lea ecx, [ebp - 0xe0]
call fcn.0046af10
movzx ecx, al
test ecx, ecx
je 0x46a27c
lea edx, [ebp - 0x104]
push edx
lea ecx, [ebp - 0xe0]
call fcn.0046b580
add eax, 0x1c
mov ecx, eax
call fcn.0046b240
jmp 0x46a20a
lea ecx, [ebp - 0x104]
call fcn.0046b5e0
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0xe0]
call fcn.0046b580
add eax, 0x1c
mov ecx, eax
call fcn.0046b2a0
push eax
lea ecx, [ebp - 0x104]
call fcn.0046af10
movzx ecx, al
test ecx, ecx
je 0x46a277
mov edx, dword [0x4b7260]
push edx
lea ecx, [ebp - 0x104]
call fcn.0046b580
push eax
call fcn.0046e550
add esp, 8
movzx eax, al
test eax, eax
je 0x46a275
lea ecx, [ebp - 0x104]
call fcn.0046b580
add eax, 0x1c
push eax
lea ecx, [ebp - 0xd4]
call fcn.004692f0
jmp 0x46a1ff
jmp 0x46a1ad
lea ecx, [ebp - 0xd4]
call fcn.00464f60
movzx ecx, al
test ecx, ecx
jne 0x46a316
lea edx, [ebp - 0xd4]
push edx
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x144]
call fcn.0046a650
mov byte [ebp - 4], 2
mov ecx, dword [0x4b7260]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0045e760
mov byte [ebp - 4], 3
mov edx, dword [0x4b7220]
push edx
lea ecx, [ebp - 0x48]
call fcn.0045e760
mov byte [ebp - 4], 4
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x144]
call fcn.00469630
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.0042aeba
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0042aeba
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.0042aeba
mov dword [ebp - 0xe4], 0
lea ecx, [ebp - 0xd8]
call fcn.0046aaa0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x144]
add eax, 0x10
push eax
lea ecx, [ebp - 0xd8]
call fcn.004787a0
test eax, eax
jne 0x46a3ba
lea ecx, [ebp - 0xd8]
call fcn.00478880
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0xe4]
add ecx, 1
mov dword [ebp - 0xe4], ecx
cmp dword [ebp - 0xe4], 5
jl 0x46a3b5
mov byte [ebp - 0x131], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd8]
call fcn.004788b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd4]
call fcn.0042aeba
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x100]
call fcn.0042aec4
mov al, byte [ebp - 0x131]
jmp 0x46a62a
jmp 0x46a32f
mov ecx, dword [ebp - 0x144]
add ecx, 0x10
call fcn.0042ab8b
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46a438
mov ecx, dword [ebp - 0x144]
add ecx, 0x10
call fcn.0042ab8b
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x46a423
mov ecx, dword [ebp - 0x144]
add ecx, 0x10
call fcn.0042ab8b
push eax
lea ecx, [ebp - 0x64]
call fcn.0042b44e
mov byte [ebp - 4], 6
push 1
lea edx, [ebp - 0x64]
push edx
call fcn.004770e0
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x64]
call fcn.0042aec4
jmp 0x46a438
mov ecx, dword [ebp - 0x144]
add ecx, 0x10
call fcn.0042ab8b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xdc]
push eax
mov ecx, dword [ebp - 0x144]
call fcn.0046b240
jmp 0x46a457
lea ecx, [ebp - 0xdc]
call fcn.0046b5a0
lea ecx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp - 0x144]
call fcn.0046b2a0
push eax
lea ecx, [ebp - 0xdc]
call fcn.0046af10
movzx edx, al
test edx, edx
je 0x46a5e2
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0xdc]
call fcn.0046b580
add eax, 0x1c
mov ecx, eax
call fcn.0046b240
jmp 0x46a4a9
lea ecx, [ebp - 0x124]
call fcn.0046b5e0
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0xdc]
call fcn.0046b580
add eax, 0x1c
mov ecx, eax
call fcn.0046b2a0
push eax
lea ecx, [ebp - 0x124]
call fcn.0046af10
movzx edx, al
test edx, edx
je 0x46a5dd
mov ecx, dword [ebp - 0x144]
add ecx, 0x10
call fcn.0042ab8b
push eax
push 0
lea ecx, [ebp - 0x124]
call fcn.0046b580
add eax, 0x1c
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00475ee0
add esp, 0xc
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x14c], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x14c]
call fcn.0042ab8b
push eax
push 0
lea ecx, [ebp - 0x124]
call fcn.0046b580
push eax
lea edx, [ebp - 0x9c]
push edx
call fcn.00475ee0
add esp, 0xc
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x154]
call fcn.0042ab8b
push eax
push 0
lea ecx, [ebp - 0xdc]
call fcn.0046b580
push eax
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00475ee0
add esp, 0xc
mov dword [ebp - 0x158], eax
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x15c], edx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x15c]
call fcn.0042ab8b
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xb8]
call fcn.0042aec4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x9c]
call fcn.0042aec4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x80]
call fcn.0042aec4
jmp 0x46a49e
jmp 0x46a44c
lea ecx, [ebp - 0xd8]
call fcn.00478880
mov byte [ebp - 0x13d], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd8]
call fcn.004788b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd4]
call fcn.0042aeba
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x100]
call fcn.0042aec4
mov al, byte [ebp - 0x13d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048638c
mov esp, ebp
pop ebp
ret