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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x5643a0
push ecx
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x5645fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 1
lea eax, [ebp - 4]
call fcn.00563a04
mov eax, dword [ebp - 4]
test eax, eax
je 0x5643d3
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x5645c7
xor eax, eax
push ebp
push 0x56446e
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00427430
mov ebx, eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0045e724
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0045e8c8
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00427a14
mov eax, dword [ebp - 0x28]
mov cl, 1
xor edx, edx
call fcn.00534824
mov edx, dword [0x532368]
call fcn.00405220
mov esi, eax
test esi, esi
jne 0x564442
mov byte [ebp - 0x11], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5645c7
mov edx, 0x56461c
mov eax, esi
call fcn.00534a9c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x564464
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5645c7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x564486
mov eax, dword [edi]
call fcn.00444b78
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x5645c0
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x564592
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00406e88
mov eax, dword [ebp - 0x18]
call fcn.00533d40
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx - 0x24]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0041d288
mov eax, dword [ebp - 0x2c]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.0041d288
mov eax, dword [ebp - 0x34]
mov ecx, 1
pop edx
call fcn.00450878
test eax, eax
je 0x564592
mov edx, 0x56461c
mov eax, esi
call fcn.0053536c
mov eax, dword [ebp - 4]
call fcn.004075c4
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x564570
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
call fcn.004075c4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x564567
test byte [ebp - 0x1f], 4
je 0x564567
test byte [ebp - 0x20], 0x10
je 0x564567
mov eax, dword [ebp - 4]
call fcn.004075c4
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x564570
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_SetLastError
lea edx, [ebp - 0x3c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x24]
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.0056493c
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0045ec2c
jmp 0x5645a2
mov eax, dword [ebp - 0x1c]
call fcn.00444134
test al, al
jne 0x5644a3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5645c7
cmp dword [ebp - 0x1c], 0
je 0x5645bf
mov dl, 1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx - 4]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x564604
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.00406ac0
lea eax, [ebp - 0x28]
mov edx, dword [0x416fa4]
call fcn.00408a20
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406ac0
ret