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

Disassembly:
push 0x68
mov eax, 0x5a7917
call fcn.00588aeb
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x5c]
call fcn.0046c48f
xor eax, eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], eax
call fcn.0046c48f
push 7
pop ecx
xor edi, edi
xor eax, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edi
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 3
mov dword [ebp - 0x44], 1
test esi, esi
je 0x409650
push dword [ebp + 0xc]
push esi
call fcn.0058b10d
pop ecx
pop ecx
test eax, eax
je 0x409650
test ebx, ebx
je 0x4094dc
push 0x5c
push ebx
lea ecx, [ebp - 0x74]
call fcn.0046d9ee
push 0x5c
push esi
lea ecx, [ebp - 0x5c]
call fcn.0046d9ee
lea ecx, [ebp - 0x5c]
call fcn.0046c815
test eax, eax
je 0x40964c
push edi
lea ecx, [ebp - 0x5c]
call fcn.0046caa8
mov esi, eax
xor eax, eax
cmp word [esi], ax
je 0x409510
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00403b92
push 0x5c
push 1
lea ecx, [ebp - 0x28]
call fcn.0041ec8e
test ebx, ebx
je 0x409566
push edi
lea ecx, [ebp - 0x74]
call fcn.0046caa8
test eax, eax
je 0x409566
push edi
lea ecx, [ebp - 0x74]
call fcn.0046caa8
mov esi, eax
xor eax, eax
cmp word [esi], ax
je 0x409550
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00403b92
push 0x5c
push 1
lea ecx, [ebp - 0x40]
call fcn.0041ec8e
cmp dword [ebp - 0x14], 8
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x409591
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test al, 0x10
jne 0x4095a6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040968b
and dword [ebp - 0x44], eax
pop ecx
test ebx, ebx
je 0x40963b
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.0058b527
pop ecx
pop ecx
test eax, eax
je 0x40963b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push str.directory___1_s__n
push str.CreateDirectoryRecursively
push 5
mov esi, eax
call fcn.00423f75
push esi
push str.directory_attr_1___0x_1_lx__n
push str.CreateDirectoryRecursively
push 5
call fcn.00423f75
or esi, 2
push esi
push str.directory_attr_2___0x_1_lx__n
push str.CreateDirectoryRecursively
push 5
call fcn.00423f75
add esp, 0x30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x5c]
inc edi
call fcn.0046c815
cmp edi, eax
jb 0x4094f7
xor ebx, ebx
jmp 0x409655
xor ebx, ebx
mov dword [ebp - 0x44], ebx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00403a7f
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00403a7f
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], bl
call fcn.0046c546
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.0046c546
mov eax, dword [ebp - 0x44]
call fcn.00588a9a
ret