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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551d1d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5a0800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x1c], 7
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
cmova eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a345
test al, 0x10
je 0x40a345
mov byte [ebp - 0x41], 1
jmp 0x40a50e
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x40], ax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push dword [ebp + 0x18]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00410770
cmp dword [ebp + 0x1c], 7
lea esi, [ebp + 8]
cmova esi, dword [ebp + 8]
nop dword [eax]
cmp dword [ebp + 0x1c], 7
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmova ecx, dword [ebp + 8]
lea eax, [ecx + eax*2]
cmp esi, eax
je 0x40a486
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
movzx edi, word [esi]
cmp ecx, edx
jae 0x40a3d3
lea eax, [ecx + 1]
cmp edx, 7
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], di
mov word [eax + ecx*2 + 2], dx
jmp 0x40a3e5
push edi
mov byte [ebp - 0x45], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x45]
push 1
call fcn.00407ee0
cmp edi, 0x5c
je 0x40a400
cmp dword [ebp + 0x1c], 7
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmova ecx, dword [ebp + 8]
dec eax
lea eax, [ecx + eax*2]
cmp esi, eax
jne 0x40a478
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040f080
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a432
test al, 0x10
jne 0x40a461
cmp dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x54]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x54], 0xc
cmova eax, dword [ebp - 0x40]
push ecx
push eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40a480
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmova eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
add esi, 2
jmp 0x40a390
mov byte [ebp - 0x41], 0
jmp 0x40a48a
mov byte [ebp - 0x41], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x40a4c4
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a4ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a562
push ecx
push edx
call fcn.004e6cae
add esp, 8
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x40a4fa
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a4f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a562
push ecx
push edx
call fcn.004e6cae
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x40a544
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a53a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a562
push ecx
push edx
call fcn.004e6cae
add esp, 8
mov al, byte [ebp - 0x41]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e6d11
mov esp, ebp
pop ebp
ret
call fcn.004f7238
int3