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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560316
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.0042c2e0
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.0042bb40
push eax
push 0
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042a2f0
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x452291
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x452276
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.0042ceb0
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.0042c6f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x4522aa
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.0042ceb0
lea ecx, [ebp - 0x5c]
call fcn.004302a0
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.0042c2e0
push str.7z.exe
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.0042dc00
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 0x452311
test al, 0x10
jne 0x452311
mov esi, 1
jmp 0x452313
xor esi, esi
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x452328
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.0042ceb0
test esi, esi
jne 0x45239d
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 0x45237e
push 0x5c9840
call fcn.00533993
add esp, 4
cmp dword [0x5c9840], 0xffffffff
jne 0x45237e
call fcn.00436720
push 0x5607c0
call fcn.00533d1d
push 0x5c9840
call fcn.00533954
add esp, 8
push esi
push 0x5b2cec
push 1
push str.97log
push 0x5c9848
call fcn.00436800
add esp, 0x14
jmp 0x45244c
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.0042c2e0
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 0x4523e1
test al, 0x10
jne 0x4523e1
mov esi, 1
jmp 0x4523e3
xor esi, esi
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x4523f8
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.0042ceb0
test esi, esi
je 0x45244c
lea edx, [ebp - 0x2c]
lea ecx, [ebp + 8]
call fcn.00454a30
test eax, eax
jne 0x45243a
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.004367b0
push eax
call fcn.00436800
add esp, 0x18
jmp 0x45244c
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 0x452461
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.0042ceb0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x452488
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.0042ceb0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
cmp eax, 0x10
jb 0x4524af
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.0042ceb0
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp eax, 0x10
jb 0x4524d6
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0042ceb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00533845
mov esp, ebp
pop ebp
ret 0x18