Function at 0x140006c00
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x14013d0c0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rbx, r9
mov r14, r8
mov r15, rdx
mov rdi, rcx
xor r12d, r12d
mov rcx, r9
cmp qword [r9 + 0x18], 7
jbe 0x140006c41
mov rcx, qword [r9]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140006e6e
mov rcx, qword [rdi + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 1
jb 0x140006ecc
mov rax, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140006c78
mov rax, qword [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 1
lea r9, [0x140113658]
lea rcx, [rbp - 1]
call fcn.140025d20
nop
mov rcx, qword [rbp + 0xf]
mov rdx, qword [rbp + 0x17]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140006cd2
lea rax, [rcx + 1]
mov qword [rbp + 0xf], rax
lea rax, [rbp - 1]
cmp rdx, 7
cmova rax, qword [rbp - 1]
mov dword [rax + rcx*2], 0x5d
lea rax, [rbp - 1]
jmp 0x140006cf5
mov qword [rsp + 0x20], 1
lea r9, [0x140113654]
movzx r8d, byte [rbp - 0x29]
mov edx, 1
lea rcx, [rbp - 1]
call fcn.1400246e0
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x21], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x11], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140006d30
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140006de0
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140006d4c
mov rcx, qword [rbx]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140006de0
mov eax, 0xfeff
mov word [rbp - 0x29], ax
mov dword [rbp - 0x25], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x25]
mov r8d, 2
lea rdx, [rbp - 0x29]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140006dd7
mov r8d, dword [rbp - 0x11]
cmp qword [rbp - 0x11], 0
jbe 0x140006dd7
add r8d, r8d
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rdx, qword [rbp - 0x21]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x25]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 9]
cmp rdx, 7
jbe 0x140006e20
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006e1b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006ed2
call fcn.1400a7890
movdqa xmm0, xmmword [0x1401282c0]
movdqu xmmword [rbp - 0x11], xmm0
mov word [rbp - 0x21], r12w
mov rdx, qword [rbp + 0x17]
cmp rdx, 7
jbe 0x140006e6e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006e69
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006ec6
call fcn.1400a7890
cmp qword [rbx + 0x18], 7
jbe 0x140006e78
mov rbx, qword [rbx]
cmp qword [r14 + 0x18], 7
jbe 0x140006e82
mov r14, qword [r14]
cmp qword [r15 + 0x18], 7
jbe 0x140006e8c
mov r15, qword [r15]
cmp qword [rdi + 0x18], 7
jbe 0x140006e96
mov rdi, qword [rdi]
mov r9, rbx
mov r8, r14
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400a7870
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400ae980
int3
call fcn.140002780
nop
call fcn.1400ae980
nop
int3