Function at 0x4521b0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55feb6
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5c49f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xffffffffffffffff
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.0042c2b0
sub esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x5c
lea ecx, [ebp - 0x2c]
push eax
call fcn.0042bb00
push eax
push 0
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042a2b0
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x452261
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x452246
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.0042ce80
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.0042c6c0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x45227a
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.0042ce80
lea ecx, [ebp - 0x5c]
call fcn.00430270
push 0xffffffffffffffff
mov byte [ebp - 4], 3
lea eax, [ebp - 0x5c]
push 0
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.0042c2b0
push str.7z.exe
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.0042dbd0
add esp, 4
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 0x10
cmovae eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4522e1
test al, 0x10
jne 0x4522e1
mov esi, 1
jmp 0x4522e3
xor esi, esi
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x4522f8
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.0042ce80
test esi, esi
jne 0x45236d
mov eax, dword fs:[0x2c]
lea esi, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
cmovae esi, dword [ebp - 0x44]
mov ecx, dword [eax]
mov eax, dword [0x5c9840]
cmp eax, dword [ecx + 4]
jle 0x45234e
push 0x5c9840
call fcn.0053357d
add esp, 4
cmp dword [0x5c9840], 0xffffffff
jne 0x45234e
call fcn.004366f0
push 0x560310
call fcn.00533907
push 0x5c9840
call fcn.0053353e
add esp, 8
push esi
push 0x5b2cec
push 1
push str.97log
push 0x5c9848
call fcn.004367d0
add esp, 0x14
jmp 0x45241c
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
mov dword [ebp - 0x60], 0xf
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
call fcn.0042c2b0
cmp dword [ebp - 0x60], 0x10
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4523b1
test al, 0x10
jne 0x4523b1
mov esi, 1
jmp 0x4523b3
xor esi, esi
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x4523c8
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.0042ce80
test esi, esi
je 0x45241c
lea edx, [ebp - 0x2c]
lea ecx, [ebp + 8]
call fcn.00454590
test eax, eax
jne 0x45240a
cmp dword [ebp - 0x30], 0x10
lea esi, [ebp - 0x44]
cmovae esi, dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x5b2d10
push 1
push str.97log
call fcn.00436780
push eax
call fcn.004367d0
add esp, 0x18
jmp 0x45241c
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x452431
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.0042ce80
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x452458
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.0042ce80
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
cmp eax, 0x10
jb 0x45247f
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.0042ce80
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp eax, 0x10
jb 0x4524a6
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0042ce80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053342f
mov esp, ebp
pop ebp
ret 0x18