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

Disassembly:
push 0x114
mov eax, 0x648f7c
call fcn.004e70a5
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x120], eax
xor eax, eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
push dword [edi]
lea eax, [ebp - 0x88]
mov dword [ebp - 4], ecx
push eax
call fcn.004b6f1e
pop ecx
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x58]
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.0041552c
mov ecx, eax
call fcn.004c63e8
push str.image
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0040b45b
push 0x6c8bb4
lea ecx, [ebp - 0x58]
call fcn.0040b45b
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4be5ed
and dword [ebp - 0x8c], eax
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0xb0]
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call fcn.004c5963
pop ecx
pop ecx
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00412bc6
cmp dword [edi + 8], ebx
jne 0x4be763
lea eax, [edi + 0x10]
cmp dword [eax + 0x14], 8
jb 0x4be601
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae ecx, dword [ebp - 0x58]
mov esi, eax
push ecx
lea ecx, [ebp - 0x70]
call fcn.0040b3fd
push 0x6c8bb4
lea ecx, [ebp - 0x70]
call fcn.0040b45b
test esi, esi
lea ecx, [ebp - 0x70]
mov eax, 0x65d548
cmovne eax, esi
push eax
call fcn.0040b45b
mov ecx, dword [ebp - 0x114]
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
cmovae eax, dword [ebp - 0x70]
push dword [ecx + 4]
push dword [ecx + 8]
push eax
call fcn.004c45f0
add esp, 0xc
test esi, esi
jne 0x4be68b
and dword [ebp - 0x18], esi
lea ecx, [ebp - 0x28]
push 4
push str.aaaa
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040eedd
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 4
jmp 0x4be6b6
push 0x3a8
sub esp, 0x18
mov ecx, esp
push esi
call fcn.0040b74f
lea eax, [ebp - 0xa0]
push eax
call fcn.004b75cb
add esp, 0x20
mov esi, eax
push 2
mov dword [ebp - 4], 5
pop ebx
and dword [ebp - 0xb8], 0
lea ecx, [ebp - 0xc8]
push 2
push 0x65d554
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0xb4], 0xf
mov byte [ebp - 0xc8], 0
call fcn.0040eedd
mov ecx, dword [ebp - 0x120]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 6
push eax
call fcn.004ba22c
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x118]
add ecx, 0x28
push eax
call fcn.004ba373
mov ecx, dword [ebp - 0x118]
push esi
lea ecx, [ecx + 0x28]
call fcn.00415a21
lea ecx, [ebp - 0xc8]
call fcn.0040ee34
test bl, 2
je 0x4be74f
lea ecx, [ebp - 0xa0]
and ebx, 0xfffffffd
call fcn.0040ee34
mov dword [ebp - 4], 2
test bl, 1
je 0x4be763
lea ecx, [ebp - 0x28]
call fcn.0040ee34
xor ebx, ebx
push ebx
call fcn.00515491
push edx
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004b6f05
add esp, 0x10
push 0xf
pop esi
push 2
push 0x65d530
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], bl
call fcn.0040eedd
mov ebx, dword [ebp - 0x120]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 8
push eax
mov ecx, ebx
call fcn.004ba22c
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x118]
add ecx, 0x28
push eax
call fcn.004ba373
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ecx + 0x28]
call fcn.00415a21
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.0040ee34
push dword [edi + 0x40]
lea eax, [ebp - 0xf8]
push eax
call fcn.004b6f1e
pop ecx
pop ecx
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
push 6
push str.intert
mov byte [ebp - 4], 9
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], 0
call fcn.0040eedd
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x118]
mov ecx, ebx
push eax
call fcn.004ba22c
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x118]
add ecx, 0x28
push eax
call fcn.004ba373
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ecx + 0x28]
call fcn.00415a21
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.0040ee34
push dword [edi + 4]
lea eax, [ebp - 0xe0]
push eax
call fcn.004b6f1e
pop ecx
pop ecx
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
push 2
push 0x65d524
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], 0
call fcn.0040eedd
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x118]
mov ecx, ebx
push eax
call fcn.004ba22c
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x118]
add ecx, 0x28
push eax
call fcn.004ba373
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ecx + 0x28]
call fcn.00415a21
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.0040ee34
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
push 3
push 0x65d534
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], 0
call fcn.0040eedd
push 0x3a8
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
lea eax, [edi + 0x28]
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.0040b482
lea eax, [ebp - 0xa0]
push eax
call fcn.004b75cb
add esp, 0x20
mov esi, eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x118]
mov ecx, ebx
push eax
call fcn.004ba22c
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x118]
add ecx, 0x28
push eax
call fcn.004ba373
mov ecx, dword [ebp - 0x118]
push esi
lea ecx, [ecx + 0x28]
call fcn.00415a21
lea ecx, [ebp - 0xa0]
call fcn.0040ee34
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.0040ee34
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x58]
and dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x40]
push eax
call fcn.0040b482
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xf
push edi
push eax
call fcn.004bddc4
pop ecx
pop ecx
push 8
pop edi
mov ecx, eax
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], edi
jb 0x4be9d1
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0040b3fd
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xf
call fcn.0040b4f9
cmp dword [ebp - 0x2c], edi
lea eax, [ebp - 0x40]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
test eax, eax
je 0x4bea14
cmp dword [ebp - 0x2c], edi
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x3a8
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.0040b482
lea eax, [ebp - 0xa0]
push eax
call fcn.004b75cb
add esp, 0x20
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x11
call fcn.004bfb1f
lea ecx, [ebp - 0xa0]
call fcn.0040ee34
cmp dword [ebp - 0x2c], edi
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
test eax, eax
lea ecx, [ebp - 0x40]
setne bl
call fcn.0040b4f9
lea ecx, [ebp - 0xe0]
call fcn.0040ee34
lea ecx, [ebp - 0xf8]
call fcn.0040ee34
lea ecx, [ebp - 0x110]
call fcn.0040ee34
lea ecx, [ebp - 0x58]
call fcn.0040b4f9
lea ecx, [ebp - 0x88]
call fcn.0040ee34
lea ecx, [ebp - 0x70]
call fcn.0040b4f9
mov al, bl
call fcn.004e704f
ret 8