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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b39c
mov eax, dword fs:[0]
push eax
sub esp, 0x8b0
mov eax, dword [0x100ad708]
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 esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x1007f98f
xor eax, eax
jmp 0x1007fcd6
cmp word [esi], 0
je 0x1007f988
test edi, edi
je 0x1007f988
cmp word [edi], 0
je 0x1007f988
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007f9a4
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x1007f988
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10059fd0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x1008db7c
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x464
lea eax, [ebp - 0x8b4]
push 0
push eax
call fcn.10059fd0
mov eax, 0x5c
mov dword [ebp - 0x458], 0
add esp, 0xc
mov word [ebp - 0x45c], ax
mov dword [ebp - 0x454], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x8b4]
call fcn.1007f5e0
test eax, eax
je 0x1007fcbb
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x454]
nop dword [eax]
test ecx, ecx
je 0x1007fab6
mov eax, dword [ebp - 0x8b4]
shr eax, 4
and eax, 1
je 0x1007fab6
cmp word [ebp - 0x888], 0x2e
jne 0x1007fab6
mov ax, word [ebp - 0x886]
test ax, ax
je 0x1007fa88
cmp ax, 0x2e
jne 0x1007fab6
cmp word [ebp - 0x884], 0
jne 0x1007fab6
cmp dword [ebp - 0x458], 0
jne 0x1007fa98
xor esi, esi
jmp 0x1007fcad
lea eax, [ebp - 0x8b4]
push eax
push dword [ebp - 0x458]
call esi
mov ecx, eax
mov dword [ebp - 0x454], ecx
mov esi, ecx
jmp 0x1007fcad
lea eax, [ebp - 0x8b8]
push eax
lea ecx, [ebp - 0x8b4]
call fcn.1001cdf0
push dword [eax]
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 1
call fcn.10005f20
mov eax, dword [ebp - 0x8b8]
mov byte [ebp - 4], 3
lea ecx, [eax - 0xc]
cmp ecx, dword [0x100ad4cc]
je 0x1007fb0f
lea ecx, [eax - 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1007fb0f
mov eax, dword [ebp - 0x8b8]
add eax, 0xfffffff4
push eax
call fcn.1002f2ab
add esp, 4
cmp dword [ebp - 0x454], 0
je 0x1007fb49
mov eax, dword [ebp - 0x8b4]
shr eax, 4
and eax, 1
je 0x1007fb49
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push edi
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.1007f950
add esp, 8
jmp 0x1007fc6b
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push edi
push eax
call fcn.1006101f
add esp, 8
test eax, eax
jne 0x1007fc6b
cmp dword [ebp - 0x424], 8
lea esi, [ebp - 0x438]
cmovae esi, dword [ebp - 0x438]
push esi
call ebx
test eax, eax
je 0x1007fb98
mov eax, 1
jmp 0x1007fbec
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1007fbaa
mov eax, 1
jmp 0x1007fbec
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1007fbc8
push esi
call ebx
test eax, eax
je 0x1007fbc8
mov eax, 1
jmp 0x1007fbec
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1007fbea
test al, 0x10
je 0x1007fbea
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1007fbea
mov eax, 1
jmp 0x1007fbec
xor eax, eax
test eax, eax
jne 0x1007fc65
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.1007f0c0
add esp, 8
push 4
push 0
test eax, eax
je 0x1007fc3f
cmp dword [ebp - 0x43c], 8
lea eax, [ebp - 0x450]
cmovae eax, dword [ebp - 0x450]
jmp 0x1007fc53
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x450]
call fcn.10003900
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [ebp - 0x458]
test eax, eax
jne 0x1007fc79
xor esi, esi
jmp 0x1007fc98
cmp dword [ebp - 0x454], 0
jne 0x1007fc86
xor esi, esi
jmp 0x1007fc98
lea ecx, [ebp - 0x8b4]
push ecx
push eax
call esi
mov esi, eax
mov dword [ebp - 0x454], esi
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0
call fcn.10003900
mov ecx, dword [ebp - 0x454]
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jne 0x1007fa50
lea ecx, [ebp - 0x8b4]
call fcn.1001c9e0
lea ecx, [ebp - 0x8b4]
call fcn.1001c9e0
mov eax, 1
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.1002ef19
mov esp, ebp
pop ebp
ret