Function at 0x42aaf0
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4579eb
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x47f060]
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 byte [ebp - 0x279], cl
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x45ec1c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00406c00
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], 8
mov ecx, dword [ebp + 0x18]
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x42abca
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp + 8]
call fcn.00405030
mov esi, eax
lea eax, [ebp + 8]
cmp eax, esi
je 0x42abb6
cmp dword [ebp + 0x1c], 8
jb 0x42ab99
push dword [ebp + 8]
call edi
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.004066d0
cmp dword [ebp - 0x284], 8
jb 0x42abca
push dword [ebp - 0x298]
call edi
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406870
push 2
push 0x462b40
lea ecx, [ebp - 0x28]
call fcn.00405270
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x278]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x280], ebx
cmp ebx, 0xffffffff
jne 0x42ac16
xor bl, bl
jmp 0x42ae58
push 0x45ebf0
lea edx, [ebp + 8]
lea ecx, [ebp - 0x298]
call fcn.00411480
mov esi, eax
lea eax, [ebp - 0x28]
add esp, 4
cmp eax, esi
je 0x42ac60
cmp dword [ebp - 0x14], 8
jb 0x42ac43
push dword [ebp - 0x28]
call edi
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004066d0
cmp dword [ebp - 0x284], 8
jb 0x42ac74
push dword [ebp - 0x298]
call edi
add esp, 4
lea edx, [ebp - 0x278]
mov ecx, ebx
call fcn.0042aa60
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x42ad76
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x42aca0
mov ecx, 0x45efa4
lea eax, [ebp - 0x24c]
jmp 0x42acb0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42acd6
test dx, dx
je 0x42acd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42acd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42acb0
xor eax, eax
jmp 0x42acdb
sbb eax, eax
or eax, 1
test eax, eax
je 0x42ad51
mov ecx, 0x46cd1c
lea eax, [ebp - 0x24c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42ad16
test dx, dx
je 0x42ad12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42ad16
add eax, 4
add ecx, 4
test dx, dx
jne 0x42acf0
xor eax, eax
jmp 0x42ad1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x42ad51
test byte [ebp - 0x278], 0x10
lea eax, [ebp - 0x24c]
lea edx, [ebp - 0x28]
je 0x42adbb
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00411480
mov cl, byte [ebp - 0x279]
add esp, 4
call fcn.0042aaf0
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x280]
lea edx, [ebp - 0x278]
call fcn.0042aa60
test eax, eax
jne 0x42aca0
mov ebx, dword [ebp - 0x280]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 0x279], 0
lea eax, [ebp + 8]
je 0x42ae47
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x42ae56
cmp dword [ebp + 0x1c], 8
push 1
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
call esi
jmp 0x42ae56
push eax
lea ecx, [ebp - 0x298]
call fcn.00411480
add esp, 4
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x42add4
mov esi, dword [esi]
cmp byte [ebp - 0x279], 0
je 0x42ae11
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42ae20
push 0x80
push esi
call ebx
push 0x80
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42ae20
push 4
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
jmp 0x42ae26
push 0x80
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x284], 8
jb 0x42ad57
push dword [ebp - 0x298]
call edi
add esp, 4
jmp 0x42ad57
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov bl, 1
cmp dword [ebp - 0x14], 8
jb 0x42ae66
push dword [ebp - 0x28]
call edi
add esp, 4
xor eax, eax
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x42ae88
push dword [ebp + 8]
call edi
add esp, 4
mov al, bl
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.00452076
mov esp, ebp
pop ebp
ret