Function at 0x40bf90
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ab84
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.00411bf0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.00401d60
mov byte [ebp - 4], 1
push 0x41c7fc
lea ecx, [ebp - 0x24]
call fcn.004035a0
lea ecx, [ebp - 0x24]
call fcn.00401dd0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40c026
mov ecx, dword [ebp - 0x10]
and ecx, 0x10
test ecx, ecx
jbe 0x40c026
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00401df0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411cf0
mov eax, dword [ebp - 0x30]
jmp 0x40c1c8
mov dword [ebp - 0x28], 0
push 0x41c800
lea ecx, [ebp - 0x2c]
call fcn.00401d60
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], 0
jmp 0x40c050
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
lea ecx, [ebp - 0x24]
call fcn.00403550
cmp dword [ebp - 0x28], eax
jge 0x40c0c1
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
call fcn.004106f0
and eax, 0xffff
cmp eax, 0x5c
je 0x40c08a
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x24]
call fcn.004106f0
push eax
lea ecx, [ebp - 0x2c]
call fcn.004108b0
jmp 0x40c0a3
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x20]
call fcn.00411cb0
push 0x41c7fc
lea ecx, [ebp - 0x2c]
call fcn.00403570
lea ecx, [ebp - 0x24]
call fcn.00403550
sub eax, 1
cmp dword [ebp - 0x28], eax
jne 0x40c0bf
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00411cb0
jmp 0x40c047
mov dword [ebp - 0x28], 1
jmp 0x40c0d3
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x20]
call fcn.00411c30
cmp dword [ebp - 0x28], eax
jge 0x40c140
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x20]
call fcn.00411c70
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00404120
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00401df0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401dd0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40c13e
push 0x80
lea ecx, [ebp - 0x2c]
call fcn.00401dd0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40c0ca
lea ecx, [ebp - 0x20]
call fcn.00411c50
lea ecx, [ebp - 0x24]
call fcn.00401dd0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
and eax, 0x10
test eax, eax
je 0x40c197
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401df0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00401df0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411cf0
mov eax, dword [ebp - 0x38]
jmp 0x40c1c8
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401df0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00401df0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411cf0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret