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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x469bbc
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x48d1d0]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x48d1d0]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40ee2f
mov eax, 1
jmp 0x40f153
push 0x24c
lea eax, [esp + 0x34]
push 0
push eax
mov dword [esp + 0x38], 0
call fcn.0044c960
add esp, 0xc
lea ecx, [esp + 0x28]
push esi
push ecx
mov ebx, 0x47858c
call fcn.0040a210
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x20], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 0xffffffff
jne 0x40eea7
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x40f153
lea ebx, [esp + 0x58]
shr ebx, 0x10
mov dword [esp + 0x24], ebx
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x290], 0
test ebx, ebx
jne 0x40ef38
lea ecx, [esp + 0x58]
movzx esi, cx
push ebx
push esi
call fcn.00401960
add esp, 8
test eax, eax
je 0x40eefc
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00401b20
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x290], 1
mov ecx, 0x477608
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ef64
test dx, dx
je 0x40ef34
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ef64
add eax, 4
add ecx, 4
test dx, dx
jne 0x40ef12
xor eax, eax
jmp 0x40ef69
lea eax, [esp + 0x58]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ef40
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401e10
mov edi, dword [esp + 0x14]
jmp 0x40ef00
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x40f0e6
mov ecx, 0x478594
mov eax, edi
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40efa6
test dx, dx
je 0x40efa2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40efa6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40ef80
xor eax, eax
jmp 0x40efab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x40f0e6
lea eax, [esp + 0x10]
push esi
push eax
mov ebx, 0x4776cc
call fcn.0040a210
add esp, 8
mov byte [esp + 0x290], 2
mov eax, dword [edi - 0xc]
push eax
push edi
lea ebx, [esp + 0x18]
call fcn.00407600
mov ebx, 1
test byte [esp + 0x2c], bl
je 0x40effc
mov ecx, dword [esp + 0x10]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x2c], 0x10
je 0x40f015
lea edx, [esp + 0x10]
push edx
call fcn.0040edd0
add esp, 4
jmp 0x40f0bf
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.004018a0
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x1c], esi
mov byte [esp + 0x290], 3
cmp dword [esi - 4], ebx
jle 0x40f048
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x20]
call fcn.00401c40
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0044b013
add esp, 8
test eax, eax
js 0x40f126
cmp eax, dword [esi - 8]
jg 0x40f126
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f097
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0040fe10
add esp, 8
lea eax, [esi - 0x10]
mov byte [esp + 0x290], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f0bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
mov byte [esp + 0x290], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f0e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x290], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f109
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40f130
mov ebx, dword [esp + 0x24]
jmp 0x40eeb2
push 0x80070057
call fcn.00401dc0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov eax, ecx
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00448edb
mov esp, ebp
pop ebp
ret