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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b5c4
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x100ad708]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x164], eax
test eax, eax
je 0x1008196d
push 0x108
lea eax, [ebp - 0x154]
push 0
push eax
call fcn.10059fd0
add esp, 0xc
lea ecx, [ebp - 0x154]
call fcn.100828e0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov esi, dword [edi]
mov eax, dword [edi + 4]
mov byte [ebp - 4], 1
cmp esi, eax
jae 0x100815cd
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1008140e
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100814e0
test al, 0x10
je 0x100814e0
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x10081430
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10081450
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.100042a0
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], eax
je 0x100814bc
movups xmm0, xmmword [ebp - 0x34]
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ebp - 0x18], 0x18
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
call fcn.10003900
mov edi, dword [ebp - 0x158]
jmp 0x100815bd
lea ecx, [ebp - 0x34]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.1004c2d0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.10003900
mov edi, dword [ebp - 0x158]
jmp 0x100815bd
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 3
push eax
push esi
call fcn.1007f0c0
add esp, 8
test eax, eax
je 0x1008156c
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 4
cmovae eax, dword [ebp - 0x34]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1008157f
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x1e8]
cmovae eax, dword [ebp - 0x34]
push eax
call fcn.10080b90
push dword [eax]
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 4
push str.del__q___s___r_n
push eax
call fcn.100828f0
mov eax, dword [ebp - 0x1e8]
lea ecx, [ebp - 0x1e4]
add esp, 0xc
cmp eax, ecx
je 0x1008157f
push eax
call fcn.1005df7e
jmp 0x1008157c
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10081576
mov eax, dword [esi]
push eax
call fcn.1007fd00
add esp, 4
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x100815bd
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100815b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10081988
push edx
push ecx
call fcn.1002eba8
add esp, 8
mov eax, dword [edi + 4]
add esi, 0x18
cmp esi, eax
jb 0x10081404
mov esi, dword [edi]
push edi
push eax
push esi
call fcn.100049d0
mov esi, dword [ebp - 0x1c]
add esp, 0xc
mov eax, dword [edi]
mov dword [edi + 4], eax
cmp esi, dword [ebp - 0x18]
jae 0x100817fd
nop dword [eax]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100815fa
mov eax, dword [esi]
push eax
call fcn.1007f580
add esp, 4
test eax, eax
jne 0x100817f1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 5
push eax
push esi
call fcn.1007f0c0
add esp, 8
test eax, eax
je 0x100817a0
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 4
cmovae eax, dword [ebp - 0x34]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x100817b3
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x1e4]
cmovae eax, dword [ebp - 0x34]
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x1e8], ecx
test eax, eax
jne 0x1008167c
mov dword [ebp - 0x1e8], eax
jmp 0x1008176f
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10081681
sub ecx, edx
sar ecx, 1
push 0x80
lea eax, [ecx + 1]
lea edi, [eax*4]
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x1e8]
push edi
push eax
call fcn.10024020
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0x1e8]
mov edi, dword [ebp - 0x158]
push dword [ebp - 0x15c]
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x160], ecx
test eax, eax
jne 0x10081761
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1008175b
push 0
push 0
push 0
push 0
push dword [ebp - 0x15c]
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [ebp - 0x1e4]
push 0x80
push eax
lea eax, [ebp - 0x1e8]
push edi
push eax
call fcn.10024020
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0x1e8]
push dword [ebp - 0x15c]
push dword [ebp - 0x158]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
jmp 0x10081761
mov ecx, dword [ebp - 0x160]
test ecx, ecx
jne 0x1008198d
mov eax, dword [ebp - 0x1e8]
push eax
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 6
push str.rd__s__q___s___r_n
push eax
call fcn.100828f0
mov eax, dword [ebp - 0x1e8]
lea ecx, [ebp - 0x1e4]
add esp, 0xc
cmp eax, ecx
je 0x100817b3
push eax
call fcn.1005df7e
jmp 0x100817b0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100817aa
mov eax, dword [esi]
push eax
call fcn.1007fd00
add esp, 4
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x100817f1
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100817e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10081988
push edx
push ecx
call fcn.1002eba8
add esp, 8
add esi, 0x18
cmp esi, dword [ebp - 0x18]
jb 0x100815f0
mov esi, dword [ebp - 0x164]
lea ecx, [ebp - 0x4c]
push 1
xor eax, eax
mov dword [ebp - 0x3c], 0
push esi
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
call fcn.100042a0
push 7
push str.:.temp
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
call fcn.1000f400
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
push 4
cmovae eax, dword [ebp - 0x4c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10081899
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x1e8]
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.10080b90
push dword [eax]
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 8
push str.rd__q___s___r_n
push eax
call fcn.100828f0
mov eax, dword [ebp - 0x1e8]
lea ecx, [ebp - 0x1e4]
add esp, 0xc
cmp eax, ecx
je 0x10081899
push eax
call fcn.1005df7e
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x100818da
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100818d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10081988
push edx
push ecx
call fcn.1002eba8
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], 7
test eax, eax
je 0x1008195d
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push eax
call fcn.100049d0
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
add esp, 0xc
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x1008193e
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100819ac
push ecx
push esi
call fcn.1002eba8
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x154]
call fcn.1002fe70
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002ef19
mov esp, ebp
pop ebp
ret
call fcn.1005e18e
push 0x80
lea eax, [ebp - 0x1e4]
push eax
push dword [ebp - 0x1e8]
call fcn.10021440
add esp, 0xc
call fcn.100222b0
call fcn.1005e18e
int3