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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101722a0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x101d7c7c]
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.10077cb0
mov eax, dword [edi + 0x50]
add esp, 4
mov dword [edi + 0x68], 1
test eax, eax
je 0x1007800e
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 0x10078140
push dword [edi + 0x40]
call fcn.1000f6f0
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 0x10078050
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10012940
mov eax, dword [edi + 0x40]
sub eax, 0x10
push eax
call fcn.1000c650
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 0x100780a2
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.1000b250
mov esi, dword [ebp - 0x2c]
cmp dword [esi - 8], 0x104
jl 0x100781a7
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.1013e920
add esp, 8
test eax, eax
js 0x100781a7
cmp eax, dword [esi - 8]
jg 0x100781a7
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 0x1007810a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10078140
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10078136
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100781b1
push edx
push ecx
call fcn.100acb1e
add esp, 8
lea ecx, [edi + 0x44]
call fcn.10036bc0
mov edx, dword [edi + 0x40]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10078162
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 0x1007818b
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.100acb08
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.1000ae00
call fcn.1012fb57
int3