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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442f61
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x456220]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x456220]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
lea esi, [esp + 0x24]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.004010a0
mov eax, esi
push 0x10
push eax
mov dword [esp + 0xc0], ebx
call fcn.0040df2b
pop ecx
pop ecx
lea eax, [esp + 0x5c]
call fcn.0040e65f
lea esi, [esp + 0x20]
mov byte [esp + 0xb8], 1
call fcn.0040e530
push 0x44742c
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0xc4], 2
call fcn.0040515d
add esp, 0xc
mov ecx, esi
push ecx
lea edx, [esp + 0x60]
mov ecx, eax
mov byte [esp + 0xbc], 3
call fcn.0040e560
push ebx
push 1
lea esi, [esp + 0x48]
mov byte [esp + 0x27], al
mov byte [esp + 0xc0], 2
call fcn.0040117c
cmp byte [esp + 0x1f], bl
je 0x40d169
lea esi, [esp + 0x5c]
call fcn.0040e75d
test al, al
jne 0x40d153
mov eax, esi
call fcn.0040e74a
test al, al
mov eax, esi
je 0x40d0a0
call fcn.0040e746
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00409320
add esp, 0xc
push eax
mov byte [esp + 0xbc], 4
call fcn.0040cf77
pop ecx
mov byte [esp + 0xb8], 2
jmp 0x40d0c5
call fcn.0040e746
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00409320
add esp, 0xc
lea edi, [esp + 0x40]
call fcn.0040cf35
movzx eax, al
cdq
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jmp 0x40d147
lea esi, [esp + 0x5c]
call fcn.0040e75d
test al, al
jne 0x40d153
mov eax, esi
call fcn.0040e74a
test al, al
mov eax, esi
je 0x40d11a
call fcn.0040e746
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00409320
add esp, 0xc
push eax
mov byte [esp + 0xbc], 5
call fcn.0040cf77
pop ecx
mov byte [esp + 0xb8], 2
jmp 0x40d13f
call fcn.0040e746
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00409320
add esp, 0xc
lea edi, [esp + 0x40]
call fcn.0040cf35
movzx eax, al
cdq
add dword [esp + 0x14], eax
adc dword [esp + 0x18], edx
push ebx
push 1
lea esi, [esp + 0x48]
call fcn.0040117c
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x60]
call fcn.0040e5cd
test al, al
jne 0x40d0cf
lea eax, [esp + 0x20]
call fcn.0040e61e
lea eax, [esp + 0x24]
push 0x20
push eax
call fcn.0040df2b
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
pop ecx
pop ecx
jae 0x40d18f
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d1ab
and eax, 0xfffffffe
push ebx
push eax
lea eax, [esp + 0x2c]
call fcn.0040caac
pop ecx
pop ecx
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x40d1ba
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40d1ce
add dword [esp + 0x14], 1
adc dword [esp + 0x18], ebx
lea edi, [esp + 0x20]
call fcn.0040e548
lea eax, [esp + 0x5c]
call fcn.0040e68d
push ebx
push 1
lea esi, [esp + 0x2c]
call fcn.0040117c
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0043253e
mov esp, ebp
pop ebp
ret