Function at 0x100de660
Capabilities:
Check if file exists
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fd050
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x102519c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x100de8b3
cmp word [eax], 0
je 0x100de8b3
push eax
lea ecx, [ebp + 8]
call fcn.10002490
push 1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.1000a000
mov eax, dword [eax]
mov ecx, 0x10202944
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100de6e6
test dx, dx
je 0x100de6e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100de6e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x100de6c0
xor esi, esi
jmp 0x100de6eb
sbb esi, esi
or esi, 1
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100de708
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
test esi, esi
mov esi, dword [ebp + 8]
je 0x100de789
mov dword [ebp - 0x18], 0x10202944
mov edi, 0x10202944
sub edi, esi
sar edi, 1
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x14], eax
push 1
push 0x10202944
call fcn.101e6fd0
add esp, 8
mov dword [ebp - 0x1c], eax
add eax, dword [ebp - 0x14]
mov edx, 1
sub edx, dword [esi - 4]
mov ecx, dword [esi - 8]
sub ecx, eax
or ecx, edx
jge 0x100de757
push eax
lea ecx, [ebp + 8]
call fcn.10003310
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
cmp edi, ecx
ja 0x100de764
lea eax, [esi + edi*2]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x1c]
lea eax, [edi + edi]
push eax
push dword [ebp - 0x18]
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.10004510
add esp, 0x10
mov eax, dword [ebp - 0x14]
add eax, edi
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
call fcn.10003180
mov edi, dword [eax + 0x154]
test edi, edi
je 0x100de79f
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1f
call fcn.10003680
add esp, 4
push esi
test eax, eax
je 0x100de7b2
call eax
jmp 0x100de7b8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x18], eax
test edi, edi
je 0x100de7c6
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x18], 0
jne 0x100de7f8
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100de7e1
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.1010aeb0
mov ecx, eax
call fcn.1010aa30
push esi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call edi
test eax, eax
je 0x100de83e
push esi
call fcn.100dcd40
add esp, 4
test eax, eax
jne 0x100de873
lea ecx, [ebp + 8]
call fcn.10007e10
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100de873
call fcn.10003180
cmp dword [eax + 0x12c], 0
jne 0x100de873
push esi
call fcn.100dc6a0
add esp, 4
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
test eax, eax
jne 0x100de812
mov dword [ebp - 4], 0
push esi
call fcn.100d9730
mov esi, eax
lea ecx, [ebp + 8]
call fcn.10007e10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret