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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c0aa
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4ad658]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x120], eax
mov eax, dword [eax + 0x11c]
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x128], edx
cmp eax, 1
je 0x405ffd
cmp eax, 2
je 0x405ffd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.icon__d.
lea edx, [ebp - 0x90]
call fcn.004123e0
push esi
lea ecx, [ebp - 0xc8]
call fcn.00457f90
add esp, 0xc
mov edi, eax
xor esi, esi
mov dword [ebp - 4], esi
xor eax, eax
mov word [ebp - 0xac], ax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x9c], esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405b20
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x90]
lea esi, [ebp - 0xac]
call fcn.00412480
lea ecx, [ebp - 0x11c]
push ecx
mov eax, edi
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040ea40
add esp, 4
mov ebx, 8
cmp dword [ebp - 0x98], ebx
jb 0x405b74
mov edx, dword [ebp - 0xac]
push edx
call fcn.00464d3e
add esp, 4
mov edi, 7
xor esi, esi
xor eax, eax
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x9c], esi
mov word [ebp - 0xac], ax
mov byte [ebp - 4], 4
cmp dword [ebp - 0xb4], ebx
jb 0x405bab
mov ecx, dword [ebp - 0xc8]
push ecx
call fcn.00464d3e
add esp, 4
lea eax, [ebp - 0x11c]
xor edx, edx
push eax
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb8], esi
mov word [ebp - 0xc8], dx
call fcn.00402110
add esp, 4
mov esi, dword [ebp - 0x120]
add esi, 0x100
mov edi, eax
mov byte [ebp - 4], 5
call fcn.0040c6c0
cmp dword [ebp - 0xd0], ebx
jb 0x405c03
mov ecx, dword [ebp - 0xe4]
push ecx
call fcn.00464d3e
add esp, 4
cmp dword [esi + 0x14], ebx
jb 0x405c0c
mov eax, dword [esi]
jmp 0x405c0e
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405c2b
cmp dword [esi + 0x14], ebx
jb 0x405c22
mov eax, dword [esi]
jmp 0x405c24
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x128]
mov eax, esi
call fcn.004023a0
cmp dword [esi + 0x14], ebx
jb 0x405c3f
mov esi, dword [esi]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
test edi, edi
je 0x405c69
lea eax, [edi + 4]
push eax
push esi
mov dword [edi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromFile]
mov dword [edi + 8], eax
jmp 0x405c6b
xor edi, edi
mov eax, dword [ebp - 0x120]
cmp dword [eax + 0x14c], 0
mov dword [eax + 0x150], edi
jne 0x405c86
mov dword [eax + 0x14c], edi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x108], ebx
jb 0x405ca4
mov edx, dword [ebp - 0x11c]
push edx
call fcn.00464d3e
add esp, 4
mov eax, dword [ebp - 0x124]
push eax
lea ecx, [ebp - 0x100]
call fcn.00457f90
add esp, 4
mov dword [ebp - 4], 6
cmp dword [ebp - 0xf0], ebx
jbe 0x405d97
mov eax, 0x498a78
lea ecx, [ebp - 0x11c]
call fcn.00412570
mov edi, eax
push ebx
lea esi, [ebp - 0xe4]
lea edx, [ebp - 0x100]
mov byte [ebp - 4], 7
call fcn.0040bb30
mov ecx, eax
lea edx, [ebp - 0xc8]
push edx
mov eax, edi
mov byte [ebp - 4], bl
call fcn.0040ea40
add esp, 4
mov edi, eax
lea esi, [ebp - 0x100]
mov byte [ebp - 4], 9
call fcn.0040c6c0
cmp dword [ebp - 0xb4], ebx
jb 0x405d32
mov eax, dword [ebp - 0xc8]
push eax
call fcn.00464d3e
add esp, 4
xor esi, esi
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb8], esi
mov word [ebp - 0xc8], cx
cmp dword [ebp - 0xd0], ebx
jb 0x405d65
mov edx, dword [ebp - 0xe4]
push edx
call fcn.00464d3e
add esp, 4
xor eax, eax
mov byte [ebp - 4], 6
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xd4], esi
mov word [ebp - 0xe4], ax
cmp dword [ebp - 0x108], ebx
jb 0x405d9e
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.00464d3e
add esp, 4
jmp 0x405d9e
mov edi, 7
xor esi, esi
mov dword [ebp - 0x9c], esi
xor edx, edx
push 4
mov eax, 0x498434
lea esi, [ebp - 0xac]
mov dword [ebp - 0x98], edi
mov word [ebp - 0xac], dx
call fcn.00412480
lea eax, [ebp - 0x100]
mov ecx, esi
lea ebx, [ebp - 0xe4]
mov byte [ebp - 4], 0xa
call fcn.0040eac0
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0xb
call fcn.0040eb00
mov esi, dword [ebp - 0x120]
add esi, 0x58
mov edi, eax
mov byte [ebp - 4], 0xc
call fcn.0040c6c0
mov esi, 8
cmp dword [ebp - 0xb4], esi
jb 0x405e1b
mov eax, dword [ebp - 0xc8]
push eax
call fcn.00464d3e
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb8], ebx
mov word [ebp - 0xc8], cx
cmp dword [ebp - 0xd0], esi
jb 0x405e4e
mov edx, dword [ebp - 0xe4]
push edx
call fcn.00464d3e
add esp, 4
xor eax, eax
mov byte [ebp - 4], 6
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xd4], ebx
mov word [ebp - 0xe4], ax
cmp dword [ebp - 0x98], esi
jb 0x405e7e
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.00464d3e
add esp, 4
xor edx, edx
push 4
mov eax, 0x498434
lea esi, [ebp - 0xac]
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x9c], ebx
mov word [ebp - 0xac], dx
call fcn.00412480
lea eax, [ebp - 0x100]
mov ecx, esi
lea ebx, [ebp - 0xc8]
mov byte [ebp - 4], 0xd
call fcn.0040eac0
mov ebx, dword [ebp - 0x120]
lea esi, [ebx + 0x90]
mov edi, eax
mov byte [ebp - 4], 0xe
call fcn.0040c6c0
mov edi, 8
cmp dword [ebp - 0xb4], edi
jb 0x405eef
mov eax, dword [ebp - 0xc8]
push eax
call fcn.00464d3e
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 6
mov dword [ebp - 0xb4], 7
mov dword [ebp - 0xb8], 0
mov word [ebp - 0xc8], cx
cmp dword [ebp - 0x98], edi
jb 0x405f27
mov edx, dword [ebp - 0xac]
push edx
call fcn.00464d3e
add esp, 4
cmp dword [ebx + 0x4c], 0
jne 0x405f3b
push 0
push esi
lea ecx, [ebx + 0x3c]
or eax, 0xffffffff
call fcn.00412800
xor eax, eax
mov word [ebp - 0xe4], ax
push edi
mov eax, 0x498440
lea esi, [ebp - 0xe4]
mov dword [ebp - 0xd0], 7
mov dword [ebp - 0xd4], 0
call fcn.00412480
mov ecx, esi
push 0
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x100]
mov byte [ebp - 4], 0xf
call fcn.0040d350
cmp dword [ebp - 0xd0], edi
jb 0x405f97
mov edx, dword [ebp - 0xe4]
push edx
call fcn.00464d3e
add esp, 4
mov eax, dword [ebp - 0x100]
cmp dword [ebp - 0xec], edi
jae 0x405fab
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [0x4b5c9c], 0
je 0x405fd8
cmp dword [ebp - 0xec], edi
jb 0x405ffd
mov ecx, dword [ebp - 0x100]
push ecx
call fcn.00464d3e
add esp, 4
jmp 0x405ffd
cmp dword [ebp - 0xec], edi
jb 0x405fef
mov edx, dword [ebp - 0x100]
push edx
call fcn.00464d3e
add esp, 4
mov eax, dword [ebx + 4]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464d49
mov esp, ebp
pop ebp
ret 8