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

Disassembly:
push 0xffffffffffffffff
push 0x101ebad8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x58]
mov ebx, 1
push edi
mov dword [esp + 0x1c], ebx
call fcn.10119190
add esp, 4
test eax, eax
je 0x100f10aa
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push ecx
push edx
push eax
push edi
call fcn.10113b00
mov ecx, dword [0x10283af0]
mov edx, dword [0x10283af4]
add esp, 0x14
mov dword [0x10282c88], ecx
mov ecx, dword [0x10283af8]
mov dword [0x10282c8c], edx
pop edi
pop esi
pop ebp
mov dword [0x10282c90], ecx
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
call esi
test al, 0x10
mov dword [esp + 0x20], eax
jne 0x100f12d7
mov ebp, dword [esp + 0x5c]
push ebp
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100f10d6
test bl, 0x10
jne 0x100f130b
xor esi, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
call fcn.10077860
xor eax, eax
cmp ebx, 0xffffffff
setne al
cmp eax, esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x5c], esi
je 0x100f11af
lea edx, [esp + 0x24]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x28]
push edx
mov dword [esp + 0x28], esi
push esi
push ebp
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x100f119d
cmp dword [esp + 0x44], esi
jne 0x100f112f
cmp dword [esp + 0x40], esi
je 0x100f119d
mov eax, dword [0x10284030]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x1026be1c
push ebp
call fcn.100f2360
add esp, 0x10
test eax, eax
je 0x100f117e
mov edx, dword [esp + 0x10]
push 2
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x100f1168
mov dword [esp + 0x5c], 1
jmp 0x100f119d
mov dword [0x10282c88], 0x28
mov dword [0x10282c8c], 0x15dc
jmp 0x100f1192
mov dword [0x10282c88], 0x24
mov dword [0x10282c8c], 0x15e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10282c90], eax
cmp dword [esp + 0x5c], esi
jne 0x100f11ab
mov edi, dword [esp + 0x58]
xor ebx, ebx
jmp 0x100f11b4
mov edi, dword [esp + 0x58]
mov ebx, 1
test byte [esp + 0x64], 4
je 0x100f11ce
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
call fcn.100f2040
add esp, 0xc
mov edx, dword [esp + 0x68]
push edx
push 0xffffffffffffffff
push esi
push ebp
push edi
call fcn.100eddf0
add esp, 0x14
test eax, eax
je 0x100f1249
mov ebx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 1
mov dword [esp + 0x18], esi
je 0x100f11ff
mov eax, ebx
and al, 0xfe
push eax
push ebp
call edi
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x100f1216
mov ecx, dword [esp + 0x1c]
push ecx
push eax
push ebp
call fcn.100f20f0
add esp, 0xc
test byte [esp + 0x64], 2
je 0x100f1221
push ebx
push ebp
call edi
cmp dword [esp + 0x5c], esi
je 0x100f12af
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100f12af
mov eax, dword [esp + 0x10]
push eax
call fcn.100f2170
add esp, 4
jmp 0x100f12af
mov dword [0x10282c88], 0x24
mov dword [0x10282c8c], 0x15f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, esi
mov dword [0x10282c90], eax
je 0x100f1273
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x5c], esi
je 0x100f12af
mov ecx, dword [esp + 0x10]
push 3
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x100f12af
mov eax, dword [esp + 0x60]
mov dword [esp + 0x18], 0xffffffff
cmp eax, esi
je 0x100f12af
mov edx, dword [esp + 0x10]
push 0x103
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x100f12c4
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.10078300
jmp 0x100f132a
mov dword [0x10282c88], 0x1d
mov dword [0x10282c8c], 0x15b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x10282c90], eax
pop esi
mov eax, ebx
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
mov dword [0x10282c88], 0x1e
mov dword [0x10282c8c], 0x15bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10282c90], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret