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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov ebx, ecx
jne 0x100ffece
push 0x10037c7c
mov edx, 0x1170
mov ecx, 0x10035994
call fcn.100e970f
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
push 0x10039064
call fcn.100a9500
mov esi, eax
test esi, esi
jns 0x100fff06
push 0x10039070
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x101000cb
push dword [ebp - 4]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.100a9500
mov edi, dword [ebp - 0xc]
mov esi, eax
test esi, esi
jns 0x100fff37
push 0x10039094
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x101000bd
mov ecx, dword [ebp - 8]
push dword [ebp - 4]
test ebx, ebx
je 0x100fff5c
mov edx, ebx
call fcn.1011e45e
mov esi, eax
test esi, esi
jns 0x100fff6c
push ebx
push 0x100390b8
push 1
push esi
jmp 0x101000b0
mov edx, edi
call fcn.1011e45e
mov esi, eax
test esi, esi
jns 0x100fff6c
push edi
jmp 0x100fff4f
cmp dword [ebp - 8], 0
jne 0x100fff94
mov ecx, dword [ebp - 4]
call fcn.100ff071
mov esi, eax
test esi, esi
jns 0x100fff94
cmp esi, 0x80070002
je 0x100fff92
push dword [ebp - 4]
push 0x100390e8
jmp 0x100fff54
xor esi, esi
test ebx, ebx
je 0x101000bd
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100fffff
push 0x80
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
push edi
push 0x10039118
push 0
push 0
push 0x4000000
call fcn.100ab973
add esp, 0x14
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x100fffff
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100fffed
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100ffff4
mov esi, 0x80004005
push edi
push 0x10039148
jmp 0x100fff54
push 0
push edi
push ebx
call dword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
test eax, eax
jne 0x10100098
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x10100025
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x1010003e
push edi
push ebx
push 0x10039178
push 1
push eax
push 0x4000000
call fcn.100ab973
add esp, 0x18
push 0x3e8
xor esi, esi
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
push 0x100
xor eax, eax
push eax
push eax
push eax
push edi
push ebx
call dword [sym.imp.api_ms_win_core_kernel32_private_l1_1_1.dll_PrivCopyFileExW]
test eax, eax
jne 0x10100098
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10100078
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1010007f
mov esi, 0x80004005
push edi
push ebx
push 0x100391ac
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x18
jmp 0x101000bd
push 0
xor edx, edx
mov ecx, edi
call fcn.100ec3a3
test eax, eax
jns 0x101000bd
push edi
push 0x100384c8
push 1
push eax
push 0x4000000
call fcn.100ab973
add esp, 0x14
test edi, edi
je 0x101000cb
lea eax, [edi - 4]
push eax
call fcn.100b84f9
pop ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x101000dc
add eax, 0xfffffffc
push eax
call fcn.100b84f9
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8