Function at 0x10014b50
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1007eecb
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x10099060]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10099060]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x294]
push 0x226
xor ebx, ebx
lea ecx, [esp + 0x5a]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x24], ebp
mov word [esp + 0x60], ax
call fcn.10062cf0
add esp, 0xc
push 0x104
push ebp
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
call fcn.1003ab67
push eax
push str.._08x
lea esi, [esp + 0x40]
call fcn.1003c4c4
mov esi, 8
add esp, 8
cmp dword [eax + 0x18], esi
jb 0x10014be9
mov eax, dword [eax + 4]
jmp 0x10014bec
add eax, 4
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp dword [esp + 0x50], esi
jb 0x10014c0b
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.1005f31a
add esp, 4
xor esi, esi
mov dword [esp + 0x1c], ebx
cmp esi, ebx
jne 0x10014d4e
lea edx, [esp + 0x20]
push edx
call fcn.1004f185
add esp, 4
mov dword [esp + 0x28c], ebx
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, edi
sub ecx, eax
test ecx, 0xffffffe0
jne 0x10014cab
mov dword [esp + 0x28c], 0xffffffff
cmp eax, ebx
je 0x10014c8b
cmp eax, edi
je 0x10014c82
lea esi, [eax + 0x18]
cmp dword [esi], 0x10
jb 0x10014c68
mov edx, dword [esi - 0x14]
push edx
call fcn.1005f31a
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x20
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x10014c57
mov eax, dword [esp + 0x2c]
push eax
call fcn.1005f31a
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.1005f31a
add esp, 4
xor esi, esi
jmp 0x10014d37
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x58]
push eax
push ebp
call fcn.10059a26
mov ebp, eax
mov dword [esp + 0x298], 0xffffffff
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, ebx
je 0x10014d14
mov edi, dword [esp + 0x30]
cmp eax, edi
je 0x10014d0b
lea esi, [eax + 0x18]
mov edi, edi
cmp dword [esi], 0x10
jb 0x10014cf1
mov ecx, dword [esi - 0x14]
push ecx
call fcn.1005f31a
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x20
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x10014ce0
mov eax, dword [esp + 0x2c]
push eax
call fcn.1005f31a
add esp, 4
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.1005f31a
add esp, 4
mov esi, ebp
cmp ebp, ebx
mov ebp, dword [esp + 0x18]
jne 0x10014d4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push str._TryDecryptDirectly_failed__s__d
call fcn.1003f500
add esp, 0xc
jmp 0x10014d99
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10014d69
test al, 1
je 0x10014d69
and eax, 0xfffffffe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push ebp
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10014e25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
lea edx, [esp + 0x5c]
push edx
push str.MoveFileExW_failed_on__TryDecryptDirectly__s___s__d
call fcn.1003f500
add esp, 0x10
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0xa
mov dword [esp + 0x1c], eax
jl 0x10014c11
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x10014dd1
and eax, 0xfffffffe
push eax
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
lea esp, [esp]
lea edx, [esp + 0x54]
push edx
call edi
test eax, eax
jne 0x10014df9
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x10014de0
xor eax, eax
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.1005ebcb
add esp, 0x27c
ret 4
mov eax, 1
jmp 0x10014dfb