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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x30020490]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x460], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x464], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x30013678
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x30013672
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jl 0x300138db
test bl, 0x10
je 0x30013896
test bl, 1
je 0x300136b6
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x300136b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x300136b0
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jl 0x300138db
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x300136c6
cmp dword [ebp + 0x10], esi
je 0x300138ba
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.30005abb
mov esi, eax
test esi, esi
jl 0x300138db
push 0x300024e8
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.30005aee
mov esi, eax
test esi, esi
jl 0x300138db
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x460], eax
jne 0x3001373e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x30013738
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jl 0x300138db
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x300023a0
lea eax, [ebp - 0x430]
push eax
call ebx
test eax, eax
je 0x3001385a
push 0x300024e0
lea eax, [ebp - 0x430]
push eax
call ebx
test eax, eax
je 0x3001385a
push dword [ebp - 0x464]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.30005abb
mov esi, eax
test esi, esi
jl 0x3001389b
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.30005aee
mov esi, eax
test esi, esi
jl 0x3001389b
cmp dword [ebp + 0x10], 0
je 0x300137ec
test byte [ebp - 0x45c], 0x10
je 0x300137ec
push 0x3000190c
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.30005aee
mov esi, eax
test esi, esi
jl 0x3001389b
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push dword [ebp + 0xc]
push eax
call fcn.30013624
mov esi, eax
jmp 0x30013856
cmp dword [ebp + 0xc], 0
je 0x3001385a
test byte [ebp - 0x45c], 7
je 0x3001382d
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x3001382d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x3001382b
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jl 0x3001389b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x3001385a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x30013858
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jl 0x3001389b
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x30013744
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x30013884
xor esi, esi
jmp 0x3001389b
test eax, eax
jle 0x30013892
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x3001389b
mov esi, 0x8000ffff
cmp dword [ebp - 0x460], 0xffffffff
je 0x300138b0
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jl 0x300138db
mov edi, dword [ebp - 0x464]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x300138db
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x300138d9
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.30014af0
leave
ret 0xc