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

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x780
mov qword [rsp + 0x188], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x100176150]
xor rax, rsp
mov qword [rsp + 0x770], rax
mov rsi, rcx
lea r14, [0x10001db00]
mov qword [rsp + 0x40], r14
lea r15, [0x10001e0b0]
mov qword [rsp + 0x48], r15
lea rbx, [0x10001dae8]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], 0x25b
mov r13d, 1
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], 0xff
xor r12d, r12d
mov word [r11 - 0x6c8], r12w
mov byte [r11 - 0x6c6], r12b
mov byte [r11 - 0x6c5], r13b
xor edx, edx
lea r8d, [r13 + 0x77]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x110]
call fcn.1000e842c
nop
mov rcx, rsi
call fcn.10009ebdc
mov rbp, rax
lea rax, [0x10000d458]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rbp
mov dword [rsp + 0xe8], 0x9d4feff5
mov dword [rsp + 0xec], r13d
mov dword [rsp + 0xf0], r12d
mov rdi, qword [rsi + 0xb0]
cmp rdi, r12
je 0x10009f8b6
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rcx, qword [rdi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x34]
call qword [rax + 0x50]
mov ebx, eax
mov dword [rsp + 0x118], eax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
lea rax, [0x10001dae8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x26f
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], 0xff
mov word [rsp + 0xe0], r12w
mov byte [rsp + 0xe2], r12b
mov byte [rsp + 0xe3], r13b
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
nop
cmp ebx, r12d
jl 0x10009f889
lea rcx, [rsp + 0x40]
call fcn.1000e7e7c
test byte [rsp + 0x34], 8
je 0x10009f874
add dword [rsp + 0xf0], r13d
mov rdi, qword [rdi]
cmp rdi, r12
jne 0x10009f7e9
lea rbx, [0x10001dae8]
jmp 0x10009f8b6
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.1000e7e00
lea r9, [0x10000ca00]
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.1000e9bfc
nop
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, [rsp + 0xe8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r12d
je 0x10009f8e7
cmp dword [rsp + 0x30], 0xc
je 0x10009f996
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r12d
cmovle edi, eax
mov dword [rsp + 0x118], edi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], 0x27b
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], 0xff
mov word [rsp + 0xe0], r12w
mov byte [rsp + 0xe2], r12b
mov byte [rsp + 0xe3], r13b
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
lea r11, [rsp + 0x40]
mov qword [rsp + 0x38], r11
cmp edi, r12d
jge 0x10009f98c
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.1000e7e00
lea r9, [0x10001dcf0]
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.1000e9bfc
nop
lea rcx, [rsp + 0x40]
call fcn.1000e7e7c
mov rbx, qword [rsi + 0xb0]
cmp rbx, r12
je 0x10009fd23
lea rax, [rsp + 0x40]
mov qword [rsp + 0x180], rax
mov rcx, qword [rbx + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x34]
call qword [rax + 0x50]
mov edi, eax
mov dword [rsp + 0x118], eax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
lea rax, [0x10001dae8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x285
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], 0xff
mov word [rsp + 0xe0], r12w
mov byte [rsp + 0xe2], r12b
mov byte [rsp + 0xe3], r13b
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
nop
cmp edi, r12d
jl 0x10009fcf6
lea rcx, [rsp + 0x40]
call fcn.1000e7e7c
test byte [rsp + 0x34], 8
jne 0x10009fa42
mov rbx, qword [rbx]
jmp 0x10009fc8e
mov qword [rsp + 0x38], r12
mov rcx, qword [rbx + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax + 0x18]
mov dword [rsp + 0x118], eax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
lea rax, [0x10001dae8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x293
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], 0xff
mov word [rsp + 0xe0], r12w
mov byte [rsp + 0xe2], r12b
mov byte [rsp + 0xe3], r13b
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
lea r8, [0x10000caf0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x110]
call fcn.100052900
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x38]
repne scasw ax, word [rdi]
not rcx
sub rcx, r13
add ecx, r13d
mov dword [rsp + 0x238], ecx
movdqu xmm0, xmmword [rbx + 8]
movdqu xmmword [rsp + 0x23c], xmm0
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
lea r8d, [rax + 0x14]
lea rdx, [rsp + 0x238]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r12d
je 0x10009fb25
cmp dword [rsp + 0x30], 0x14
je 0x10009fbb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r12d
cmovle edi, eax
mov dword [rsp + 0x118], edi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
lea rax, [0x10001dae8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x2a0
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], 0xff
mov word [rsp + 0xe0], r12w
mov byte [rsp + 0xe2], r12b
mov byte [rsp + 0xe3], r13b
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
lea r11, [rsp + 0x40]
mov qword [rsp + 0xf8], r11
cmp edi, r12d
jl 0x10009fcc9
lea rcx, [rsp + 0x40]
call fcn.1000e7e7c
mov r8d, dword [rsp + 0x238]
add r8d, r8d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r12d
je 0x10009fbf4
mov ecx, dword [rsp + 0x238]
add rcx, rcx
mov eax, dword [rsp + 0x30]
cmp rax, rcx
je 0x10009fc80
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r12d
cmovle edi, eax
mov dword [rsp + 0x118], edi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
lea rax, [0x10001dae8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x2a8
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], 0xff
mov word [rsp + 0xe0], r12w
mov byte [rsp + 0xe2], r12b
mov byte [rsp + 0xe3], r13b
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
lea r11, [rsp + 0x40]
mov qword [rsp + 0xf8], r11
cmp edi, r12d
jl 0x10009fc9c
lea rcx, [rsp + 0x40]
call fcn.1000e7e7c
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp rbx, r12
jne 0x10009f9b3
jmp 0x10009fd23
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.1000e7e00
lea r9, [0x10001dcf0]
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.1000e9bfc
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.1000e7e00
lea r9, [0x10001dcf0]
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.1000e9bfc
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.1000e7e00
lea r9, [0x10000ca00]
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.1000e9bfc
nop
cmp rbp, 0xffffffffffffffff
je 0x10009fd32
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsp + 0x108], 0xffffffffffffffff
mov edi, 0x144
mov r9d, edi
lea r8, [rsp + 0x250]
xor edx, edx
mov rcx, rsi
call fcn.10009e354
mov r9d, edi
lea r8, [rsp + 0x4e0]
mov dl, r13b
mov rcx, rsi
call fcn.10009e354
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10009fd8e
lea rdx, [rsp + 0x250]
mov rcx, rsi
call fcn.10009e774
lea r8, [rsp + 0x250]
lea rdx, [rsp + 0x4e0]
mov rcx, rsi
call fcn.10009e5d0
nop
lea rcx, [rsp + 0x110]
call fcn.1000e8518
mov rcx, qword [rsp + 0x770]
xor rcx, rsp
call fcn.100130df0
lea r11, [rsp + 0x780]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret