Function at 0x100687e0
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10140570
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1019bc84]
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 edi, ecx
push str.CFileManager_destruct
mov dword [edi], vtable.CFileManager.0
mov dword [edi + 4], vtable.CFileManager.1.0
call fcn.100684f0
mov eax, dword [edi + 0x50]
add esp, 4
mov dword [edi + 0x68], 1
test eax, eax
je 0x1006884e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x50], 0
push dword [edi + 0x40]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x10068980
push dword [edi + 0x40]
call fcn.1000f3a0
mov edx, dword [edi + 0x40]
add esp, 4
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10068890
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.100125f0
mov eax, dword [edi + 0x40]
sub eax, 0x10
push eax
call fcn.1000c300
mov ecx, 1
add esp, 4
sub ecx, dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [esi - 8]
sub eax, 0x104
mov dword [ebp - 0x2c], esi
or ecx, eax
jge 0x100688e2
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.1000af00
mov esi, dword [ebp - 0x2c]
cmp dword [esi - 8], 0x104
jl 0x100689e7
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.1010eb80
add esp, 8
test eax, eax
js 0x100689e7
cmp eax, dword [esi - 8]
jg 0x100689e7
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1006894a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10068980
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10068976
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100689f1
push edx
push ecx
call fcn.1009de6e
add esp, 8
lea ecx, [edi + 0x44]
call fcn.10036890
mov edx, dword [edi + 0x40]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100689a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 0x28]
mov dword [edi + 0x24], vtable._BaseModule::CCriticalSection.0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edx, dword [edi + 0x20]
sub edx, 0x10
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100689cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.1009de58
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.1000aab0
call fcn.100ffdb3
int3