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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
push edi
push dword [ebp + 8]
xor edi, edi
mov esi, eax
mov dword [esp + 0x14], edi
call ebx
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x403c34
mov dword [esp + 0x18], eax
and dword [esp + 0x18], 1
je 0x403a56
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x403c34
push edi
push edi
push eax
lea eax, [esp + 0x34]
call fcn.0040385b
add esp, 0xc
test eax, eax
je 0x403c23
lea eax, [esp + 0x50]
push eax
call fcn.004034c1
pop ecx
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x403c23
push 0x80
lea edi, [eax + 0x20]
mov ecx, eax
push 0x20
xor eax, eax
call fcn.004032e9
pop ecx
mov ecx, edi
call fcn.004032e9
pop ecx
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx + 0xa0]
jne 0x403c23
push dword [esi + 0xc]
lea eax, [esp + 0x28]
push dword [esi + 8]
push eax
push ecx
push dword [esp + 0x24]
call fcn.0040393d
add esp, 0x14
test eax, eax
je 0x403c23
mov edi, dword [esi + 8]
mov ecx, edi
call fcn.00403311
test eax, eax
je 0x403c23
push eax
push 0x40ce9c
push dword [ebp + 0xc]
push 3
push 0x7fff
push dword [esi + 4]
call fcn.0040306f
add esp, 0x18
test eax, eax
je 0x403c23
test byte [ebp + 0x10], 2
je 0x403b61
push dword [esi + 4]
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403b61
test bl, 1
je 0x403b4a
and eax, 0xfffffffe
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403b61
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 4]
or dword [esp + 0x14], 0xffffffff
cmp eax, 1
jne 0x403bab
cmp dword [edi + 8], 0xaf77bc0f
jne 0x403c34
test byte [ebp + 0x10], 1
lea eax, [esp + 0x28]
je 0x403b93
push 0
jmp 0x403b95
push 1
push edi
push eax
push dword [esi + 4]
push dword [ebp + 8]
call fcn.00403789
add esp, 0x14
mov dword [esp + 0x10], eax
jmp 0x403bfd
cmp eax, 2
jne 0x403bfd
cmp dword [edi + 8], 0xf0a75e12
jne 0x403c34
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
sub ecx, dword [esp + 0xd0]
add eax, dword [esp + 0xd0]
push ecx
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
push dword [esi + 4]
push dword [ebp + 8]
call fcn.004034ff
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
je 0x403bfd
test byte [ebp + 0x10], 1
je 0x403bfd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x18], 0
je 0x403c34
cmp dword [esp + 0x10], 0
push dword [esp + 0x20]
je 0x403c1a
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x403c34
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x14], 0xffffffff
je 0x403c34
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret