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

Disassembly:
push 0x68
mov eax, 0x5ae92b
call fcn.0058f792
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x5c]
mov ebx, dword [ebp + 0x10]
call fcn.0046d5d4
xor eax, eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], eax
call fcn.0046d5d4
push 7
pop ecx
xor edi, edi
mov dword [ebp - 0x14], ecx
xor eax, eax
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 0x40a57d
push dword [ebp + 0xc]
push esi
call fcn.00591dbe
pop ecx
pop ecx
test eax, eax
je 0x40a57d
test ebx, ebx
je 0x40a409
push 0x5c
push ebx
lea ecx, [ebp - 0x74]
call fcn.0046eb6a
push 0x5c
push esi
lea ecx, [ebp - 0x5c]
call fcn.0046eb6a
lea ecx, [ebp - 0x5c]
call fcn.0046d95f
test eax, eax
je 0x40a579
push edi
lea ecx, [ebp - 0x5c]
call fcn.0046dbf8
mov esi, eax
xor eax, eax
cmp word [esi], ax
je 0x40a43d
push esi
call fcn.0058edd4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00404a83
push 0x5c
push 1
lea ecx, [ebp - 0x28]
call fcn.0041fc03
test ebx, ebx
je 0x40a493
push edi
lea ecx, [ebp - 0x74]
call fcn.0046dbf8
test eax, eax
je 0x40a493
push edi
lea ecx, [ebp - 0x74]
call fcn.0046dbf8
mov esi, eax
xor eax, eax
cmp word [esi], ax
je 0x40a47d
push esi
call fcn.0058edd4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00404a83
push 0x5c
push 1
lea ecx, [ebp - 0x40]
call fcn.0041fc03
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x40a4be
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test al, 0x10
jne 0x40a4d3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040a5b8
and dword [ebp - 0x44], eax
pop ecx
test ebx, ebx
je 0x40a568
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.005921d4
pop ecx
pop ecx
test eax, eax
je 0x40a568
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]
mov esi, eax
cmovae ecx, dword [ebp - 0x28]
push ecx
push str.directory___1_s__n
push str.CreateDirectoryRecursively
push 5
call fcn.00424dad
push esi
push str.directory_attr_1___0x_1_lx__n
push str.CreateDirectoryRecursively
push 5
call fcn.00424dad
or esi, 2
push esi
push str.directory_attr_2___0x_1_lx__n
push str.CreateDirectoryRecursively
push 5
call fcn.00424dad
add esp, 0x30
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x5c]
inc edi
call fcn.0046d95f
cmp edi, eax
jb 0x40a424
xor ebx, ebx
jmp 0x40a582
xor ebx, ebx
mov dword [ebp - 0x44], ebx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00404970
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00404970
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], bl
call fcn.0046d690
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.0046d690
mov eax, dword [ebp - 0x44]
call fcn.0058f741
ret