Function at 0x40ed51
Capabilities:
Delete directory
Delete file
Get common file path
Set current directory
Set file attributes

Disassembly:
mov eax, 0x453e27
call fcn.004324bc
sub esp, 0x17c
push ebx
push esi
push edi
push ecx
lea eax, [ebp + 8]
xor ebx, ebx
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
mov dword [ebp - 4], ebx
call fcn.00447ffc
call fcn.0040dbce
cmp eax, ebx
pop ecx
jne 0x40ed8a
push 1
pop esi
jmp 0x40f09a
mov eax, dword [0x470b50]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00431888
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 1
call fcn.00445734
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00445734
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 4
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp + 8]
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x28]
call fcn.00445a09
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x30]
dec eax
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00402f21
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00448374
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.00448287
push dword [ebp - 0x1c]
call edi
push ebx
push 0x46f4e0
lea ecx, [ebp - 0x70]
call fcn.0043194b
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x40ef76
lea ecx, [ebp - 0x70]
call fcn.00431b6b
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x70]
push 0x10
lea ecx, [ebp - 0x70]
call dword [eax + 0x38]
cmp eax, 1
jne 0x40eefc
cmp dword [ebp - 0x28], 0
jle 0x40eecd
lea ecx, [ebp - 0x70]
call fcn.00431b32
cmp eax, 1
je 0x40eec0
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x70]
push eax
call fcn.00431d63
mov esi, eax
lea eax, [ebp - 0x40]
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.00402f21
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push eax
call fcn.0043352b
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x40]
setne byte [ebp - 0xd]
call fcn.00448287
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00448287
cmp byte [ebp - 0xd], 0
je 0x40eec9
inc ebx
mov dword [ebp - 0x18], 1
cmp ebx, dword [ebp - 0x28]
jl 0x40ee58
jmp 0x40eed7
and dword [ebp - 0x18], 0
jmp 0x40ef6b
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 1
jne 0x40ef6b
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x70]
push eax
call fcn.00431c3a
push eax
lea ecx, [ebp - 0x30]
push dword [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00445a09
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
jmp 0x40ef66
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x70]
push eax
call fcn.00431d63
mov eax, dword [eax]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x38]
call fcn.00448287
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x70]
push eax
call fcn.00431d63
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x54]
mov esi, eax
call fcn.00448287
cmp esi, ebx
jne 0x40ef6b
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x70]
push eax
call fcn.00431c3a
mov edx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 8
mov ecx, dword [edx + 8]
push ecx
mov ecx, edx
call fcn.00445a09
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.00448287
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
jne 0x40ee33
xor esi, esi
cmp dword [ebp - 0x28], ebx
jle 0x40efe8
lea eax, [ebp - 0x3c]
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.00402f21
push dword [ebp - 0x1c]
mov eax, dword [eax]
push eax
call fcn.0043352b
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x3c]
inc bl
call fcn.00448287
test bl, bl
je 0x40efe2
lea eax, [ebp - 0x34]
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.00402f21
push eax
lea ecx, [ebp - 0x84]
push dword [ebp - 0x7c]
mov byte [ebp - 4], 9
call fcn.00445a09
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.00448287
push 1
push esi
lea ecx, [ebp - 0x30]
call fcn.00445a35
inc esi
cmp esi, dword [ebp - 0x28]
jl 0x40ef7d
xor ebx, ebx
cmp dword [ebp - 0x28], ebx
jne 0x40edeb
lea ecx, [ebp - 0x70]
call fcn.00431901
lea eax, [ebp - 0x188]
push eax
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x84]
call fcn.00445998
mov eax, dword [ebp - 0x7c]
lea esi, [eax - 1]
cmp esi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jle 0x40f056
lea eax, [ebp + 0xc]
push esi
push eax
lea ecx, [ebp - 0x84]
call fcn.00402f21
push dword [eax]
call ebx
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x14], eax
call fcn.00448287
cmp dword [ebp - 0x14], 0
jne 0x40f051
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec esi
test esi, esi
jg 0x40f026
cmp dword [ebp + 0x10], 0
je 0x40f064
push dword [ebp + 8]
call ebx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00445767
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.00445767
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.004318c5
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00448287
mov esi, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00448287
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret