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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657ac2
mov eax, dword fs:[0]
push eax
sub esp, 0x6a4
mov eax, dword [0x6dc0b8]
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 dword [ebp - 0x5e8], ecx
imul ebx, dword [0x6f3eec], 0x168
add ebx, 0x6f3f54
mov dword [ebp - 0x5fc], ebx
cmp dword [ebx + 0xd4], 0
jbe 0x4cefa9
push 2
mov edx, 0x6adfe8
mov ecx, 0x6b3ed4
call fcn.0042f0f0
jmp 0x4cf6bb
push 8
call fcn.00545b74
mov edi, eax
mov dword [ebp - 0x610], 0
xor eax, eax
mov dword [ebp - 0x614], edi
add esp, 4
mov dword [ebp - 0x60c], 3
mov word [edi], ax
push 8
mov dword [ebp - 4], eax
call fcn.00545b74
xor ecx, ecx
mov dword [ebp - 0x62c], eax
add esp, 4
mov dword [ebp - 0x628], 0
mov dword [ebp - 0x624], 3
mov word [eax], cx
push 8
mov byte [ebp - 4], 1
call fcn.00545b74
mov esi, eax
mov dword [ebp - 0x5f4], 0
xor eax, eax
mov dword [ebp - 0x5f8], esi
add esp, 4
mov dword [ebp - 0x5f0], 3
mov word [esi], ax
mov dword [ebp - 0x5ec], 0xffffffff
mov dword [ebp - 0x644], eax
mov dword [ebp - 0x640], eax
mov dword [ebp - 0x63c], eax
lea eax, [ebp - 0x644]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.00481830
mov eax, dword [ebp - 0x640]
test eax, eax
jne 0x4cf1ad
push 0x58
push eax
lea eax, [ebp - 0x6b0]
push eax
call fcn.005e0dd0
mov ebx, dword [ebp - 0x5e8]
add esp, 0xc
mov dword [ebp - 0x6b0], 0x58
mov dword [ebp - 0x690], 0x208
mov dword [ebp - 0x6a4], 0x6b3f08
mov eax, dword [ebx + 0x248]
mov dword [ebp - 0x6ac], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x694], eax
xor eax, eax
mov word [ebp - 0x218], ax
mov dword [ebp - 0x68c], eax
mov dword [ebp - 0x688], eax
mov dword [ebp - 0x684], eax
lea eax, [ebp - 0x6b0]
push eax
mov dword [ebp - 0x698], 1
mov dword [ebp - 0x67c], 0x1800
mov dword [ebp - 0x680], 0x6b3f54
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x4cf690
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x614]
call fcn.0049f520
lea ecx, [ebp - 0x614]
call fcn.0049f980
mov edi, eax
test edi, edi
jle 0x4cf453
lea esi, [edi + 1]
push esi
lea eax, [ebp - 0x608]
push eax
lea ecx, [ebp - 0x614]
call fcn.00426300
push eax
lea ecx, [ebp - 0x62c]
mov byte [ebp - 4], 4
call fcn.0049f5a0
mov byte [ebp - 4], 3
push dword [ebp - 0x608]
call fcn.00545b61
mov eax, dword [ebp - 0x610]
lea ecx, [ebp - 0x614]
add esp, 4
sub eax, edi
dec eax
push eax
push esi
lea eax, [ebp - 0x608]
push eax
call fcn.00416c00
push eax
lea ecx, [ebp - 0x5f8]
mov byte [ebp - 4], 5
call fcn.0049f5a0
mov byte [ebp - 4], 3
push dword [ebp - 0x608]
call fcn.00545b61
mov ebx, dword [ebp - 0x5f4]
jmp 0x4cf3b8
cmp eax, 1
jbe 0x4cf1cb
push 2
mov edx, 0x6adfe8
mov ecx, 0x6b3ed4
call fcn.0042f0f0
add esp, 4
jmp 0x4cf690
mov eax, dword [ebp - 0x644]
mov ecx, ebx
push dword [eax]
lea eax, [ebp - 0x608]
push eax
call fcn.00481cd0
push eax
lea ecx, [ebp - 0x5f8]
mov byte [ebp - 4], 6
call fcn.0049f5a0
mov byte [ebp - 4], 3
push dword [ebp - 0x608]
call fcn.00545b61
add esp, 4
lea eax, [ebp - 0x608]
mov ecx, ebx
push eax
call fcn.00470380
lea ecx, [ebp - 0x5f8]
mov byte [ebp - 4], 7
push ecx
mov edx, eax
lea ecx, [ebp - 0x620]
call fcn.0049f1c0
add esp, 4
mov byte [ebp - 4], 9
push dword [ebp - 0x608]
call fcn.00545b61
add esp, 4
lea ecx, [ebp - 0x690]
call fcn.00415d50
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x690]
push dword [ebp - 0x620]
call fcn.004a4300
test al, al
je 0x4cf282
mov eax, dword [ebp - 0x670]
shr eax, 4
test al, 1
je 0x4cf282
push 2
mov edx, 0x6adfe8
mov ecx, 0x6b3ed4
call fcn.0042f0f0
jmp 0x4cf2f9
lea ecx, [ebp - 0x5f8]
call fcn.00403d70
mov ecx, eax
test ecx, ecx
js 0x4cf26f
mov ebx, dword [ebp - 0x5f4]
mov eax, ebx
sub eax, ecx
dec eax
push eax
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x608]
push eax
lea ecx, [ebp - 0x5f8]
call fcn.00416c00
mov byte [ebp - 4], 0xb
mov edx, 0x6b3f70
mov esi, dword [ebp - 0x608]
mov ecx, esi
call fcn.0049ea70
test al, al
jne 0x4cf324
mov edx, 0x6ac1bc
mov ecx, esi
call fcn.0049ea70
test al, al
jne 0x4cf324
push 2
mov edx, 0x6adfe8
mov ecx, 0x6b3ed4
call fcn.0042f0f0
add esp, 4
push esi
call fcn.00545b61
add esp, 4
push dword [ebp - 0x668]
call fcn.00545b61
mov eax, dword [ebp - 0x620]
add esp, 4
push eax
call fcn.00545b61
mov esi, dword [ebp - 0x5f8]
add esp, 4
jmp 0x4cf690
mov ecx, dword [ebp - 0x5fc]
lea eax, [ebp - 0x638]
push eax
call fcn.00470380
push eax
lea ecx, [ebp - 0x62c]
mov byte [ebp - 4], 0xc
call fcn.0049f5a0
mov byte [ebp - 4], 0xb
push dword [ebp - 0x638]
call fcn.00545b61
add esp, 4
lea eax, [ebp - 0x5f8]
lea edx, [ebp - 0x62c]
lea ecx, [ebp - 0x638]
push eax
call fcn.0049f1c0
add esp, 4
push eax
lea ecx, [ebp - 0x614]
mov byte [ebp - 4], 0xd
call fcn.0049f5a0
push dword [ebp - 0x638]
call fcn.00545b61
add esp, 4
push esi
call fcn.00545b61
add esp, 4
push dword [ebp - 0x668]
call fcn.00545b61
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x620]
push eax
call fcn.00545b61
mov esi, dword [ebp - 0x5f8]
add esp, 4
test ebx, ebx
je 0x4cf44d
lea eax, [esi - 2]
cmp word [eax + ebx*2], 0x2e
lea eax, [eax + ebx*2]
je 0x4cf3e3
cmp eax, esi
je 0x4cf44d
sub eax, 2
cmp word [eax], 0x2e
jne 0x4cf3d6
sub eax, esi
sar eax, 1
test eax, eax
jle 0x4cf44d
sub ebx, eax
lea ecx, [ebp - 0x5f8]
dec ebx
inc eax
push ebx
push eax
lea eax, [ebp - 0x638]
push eax
call fcn.00416c00
mov edi, dword [ebp - 0x638]
mov edx, 0x6b3f70
mov ecx, edi
call fcn.0049ea70
test al, al
je 0x4cf425
mov dword [ebp - 0x5ec], 0
jmp 0x4cf444
mov edx, 0x6ac1bc
mov ecx, edi
call fcn.0049ea70
or ebx, 0xffffffff
mov ecx, 1
test al, al
cmovne ebx, ecx
mov dword [ebp - 0x5ec], ebx
push edi
call fcn.00545b61
add esp, 4
mov ebx, dword [ebp - 0x5e8]
lea ecx, [ebp - 0x5e0]
call fcn.004d6d40
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x5e0]
mov eax, dword [ebp - 0x5ec]
push 0
mov dword [ebp - 0x230], eax
call fcn.0054e4aa
mov edi, dword [ebp - 0x614]
cmp eax, 1
jne 0x4cf685
cmp dword [ebp - 0x22c], 0
je 0x4cf685
lea eax, [ebp - 0x620]
push eax
call fcn.004cfc90
lea eax, [ebp - 0x5e1]
mov byte [ebp - 4], 0xf
push eax
sub esp, 0xc
mov byte [ebp - 0x5e1], 0
lea eax, [ebp - 0x620]
mov dword [ebp - 0x5fc], esp
mov ecx, esp
push eax
call fcn.0049f470
sub esp, 0xc
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x614]
mov ecx, esp
push eax
call fcn.0049f470
mov byte [ebp - 4], 0xf
call fcn.004ccc20
lea eax, [ebp - 0x620]
push eax
lea ecx, [ebx + 0x59c]
call fcn.00406580
cmp byte [ebp - 0x5e1], 0
je 0x4cf677
push 0x6b3f78
lea edx, [ebp - 0x614]
lea ecx, [ebp - 0x638]
call fcn.0049f250
add esp, 4
mov byte [ebp - 4], 0x11
mov ecx, edi
mov ebx, dword [ebp - 0x638]
mov edx, ebx
call fcn.004a29b0
test al, al
jne 0x4cf54f
push 0
xor edx, edx
mov ecx, 0x6b3f7c
call fcn.0042f0f0
add esp, 4
jmp 0x4cf66e
sub esp, 0xc
lea eax, [ebp - 0x620]
mov ecx, esp
push eax
call fcn.0049f470
lea eax, [ebp - 0x608]
push eax
call fcn.004cff20
lea ecx, [ebp - 0x654]
mov byte [ebp - 4], 0x12
call fcn.004cbf30
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x22c], 2
jne 0x4cf5a3
cmp dword [ebp - 0x224], 0
je 0x4cf5a3
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x654]
call fcn.0049f5a0
mov al, byte [ebp - 0x21c]
sub esp, 0x10
mov byte [ebp - 0x648], al
mov ecx, esp
lea eax, [ebp - 0x654]
mov dword [ebp - 0x5fc], esp
mov byte [ebp - 0x5e1], 0
push eax
call fcn.0046f000
lea eax, [ebp - 0x5e1]
mov byte [ebp - 4], 0x14
push eax
sub esp, 0xc
lea eax, [ebp - 0x5f8]
mov ecx, esp
mov dword [ebp - 0x5ec], esp
push eax
call fcn.0049f470
sub esp, 0xc
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x5e8], esp
mov ecx, esp
push eax
call fcn.0049f470
sub esp, 0xc
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x608]
mov ecx, esp
push eax
call fcn.0040e210
mov byte [ebp - 4], 0x13
call fcn.004ccab0
cmp byte [ebp - 0x5e1], 0
je 0x4cf63a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4cf655
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4cf64c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, edi
mov ecx, ebx
call fcn.004a29b0
push dword [ebp - 0x654]
call fcn.00545b61
add esp, 4
lea ecx, [ebp - 0x608]
call fcn.00406650
push ebx
call fcn.00545b61
add esp, 4
push dword [ebp - 0x620]
call fcn.00545b61
add esp, 4
lea ecx, [ebp - 0x5e0]
call fcn.004d6e70
push dword [ebp - 0x644]
call fcn.00545b61
add esp, 4
push esi
call fcn.00545b61
add esp, 4
push dword [ebp - 0x62c]
call fcn.00545b61
add esp, 4
push edi
call fcn.00545b61
add esp, 4
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.00545b50
mov esp, ebp
pop ebp
ret