Function at 0x5380d7
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0x1cc
mov eax, 0x6a21a7
call fcn.0056e23b
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1c4], eax
and dword [ebp - 4], 0
xor esi, esi
cmp dword [edi + 8], esi
jne 0x5381c1
lea ecx, [ebp - 0x2c]
call fcn.004173bc
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.005656cd
pop ecx
pop ecx
test eax, eax
je 0x5381ad
cmp dword [ebp - 0x18], esi
je 0x5381ad
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test bl, 1
je 0x53818d
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmovae ecx, dword [ebp - 0x28]
and eax, 0xfffffffe
push eax
push ecx
call edi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x5381b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push ebx
cmovae ecx, dword [ebp - 0x28]
mov esi, eax
push ecx
call edi
jmp 0x5381b0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x5381b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x5381b0
push 2
pop esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0041786a
jmp 0x538327
lea ecx, [ebp - 0x1d0]
call fcn.00532e53
mov byte [ebp - 4], 2
xor ecx, ecx
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov dword [ebp - 0x1d4], eax
mov eax, edx
and eax, 1
or eax, ecx
je 0x5381e9
push 0x20
pop ecx
mov eax, edx
and eax, 2
or eax, 0
je 0x5381f6
or ecx, 0x40
and edx, 4
or edx, 0
je 0x538204
or ecx, 0x80
push dword [edi + 0xc]
push ecx
push dword [edi + 8]
lea ecx, [ebp - 0x1d0]
call fcn.00457787
mov esi, dword [ebp - 0x1c4]
lea eax, [ebp - 0x1d0]
push esi
push eax
lea ecx, [ebp - 0x1c0]
call fcn.0047dd5d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c0]
push 1
push ebx
call fcn.0047d3e8
test eax, eax
je 0x538301
lea ecx, [ebp - 0xc4]
call fcn.004d2654
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c0]
call fcn.0047ccc3
movzx eax, ax
lea ecx, [ebp - 0xc4]
push eax
call fcn.004d2843
test eax, eax
jne 0x5382fc
lea ecx, [ebp - 0xc4]
call fcn.004d281a
cmp eax, 5
lea ecx, [ebp - 0xc4]
sete byte [ebp - 0x1c4]
call fcn.004d2741
lea ecx, [ebp - 0x1c0]
call fcn.0047ce33
test al, al
je 0x5382b0
mov esi, 0x650
jmp 0x5382eb
sub esp, 0x28
lea eax, [ebp + 0x14]
mov ecx, esp
mov dword [ebp - 0x1d4], esp
push eax
call fcn.0058f9a0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x1c0]
push esi
push dword [edi + 4]
push dword [edi]
push 0
push dword [ebp - 0x1c4]
push eax
mov byte [ebp - 4], 4
call fcn.00537c38
add esp, 0x40
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc4]
call fcn.004d26ba
jmp 0x538309
push 2
pop esi
jmp 0x5382eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c0]
call fcn.0047df72
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1d0]
call fcn.00401d20
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0046e111
mov eax, esi
call fcn.0056e1e5
ret