Function at 0x10009f154
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 [0x100175150]
xor rax, rsp
mov qword [rsp + 0x770], rax
mov rsi, rcx
lea r14, [0x10001d9c0]
mov qword [rsp + 0x40], r14
lea r15, [0x10001df70]
mov qword [rsp + 0x48], r15
lea rbx, [0x10001d9a8]
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.1000e7c38
nop
mov rcx, rsi
call fcn.10009e65c
mov rbp, rax
lea rax, [0x10000d460]
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 0x10009f336
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, [0x10001d9a8]
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 0x10009f309
lea rcx, [rsp + 0x40]
call fcn.1000e7688
test byte [rsp + 0x34], 8
je 0x10009f2f4
add dword [rsp + 0xf0], r13d
mov rdi, qword [rdi]
cmp rdi, r12
jne 0x10009f269
lea rbx, [0x10001d9a8]
jmp 0x10009f336
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.1000e760c
lea r9, [0x10000ca00]
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.1000e9408
nop
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
mov r8d, 0xc
lea rdx, [rsp + 0xe8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r12d
je 0x10009f367
cmp dword [rsp + 0x30], 0xc
je 0x10009f416
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 0x10009f40c
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.1000e760c
lea r9, [0x10001dbb0]
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.1000e9408
nop
lea rcx, [rsp + 0x40]
call fcn.1000e7688
mov rbx, qword [rsi + 0xb0]
cmp rbx, r12
je 0x10009f7a3
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, [0x10001d9a8]
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 0x10009f776
lea rcx, [rsp + 0x40]
call fcn.1000e7688
test byte [rsp + 0x34], 8
jne 0x10009f4c2
mov rbx, qword [rbx]
jmp 0x10009f70e
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, [0x10001d9a8]
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.100052600
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 0x10009f5a5
cmp dword [rsp + 0x30], 0x14
je 0x10009f635
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, [0x10001d9a8]
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 0x10009f749
lea rcx, [rsp + 0x40]
call fcn.1000e7688
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 0x10009f674
mov ecx, dword [rsp + 0x238]
add rcx, rcx
mov eax, dword [rsp + 0x30]
cmp rax, rcx
je 0x10009f700
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, [0x10001d9a8]
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 0x10009f71c
lea rcx, [rsp + 0x40]
call fcn.1000e7688
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp rbx, r12
jne 0x10009f433
jmp 0x10009f7a3
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.1000e760c
lea r9, [0x10001dbb0]
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.1000e9408
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.1000e760c
lea r9, [0x10001dbb0]
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.1000e9408
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.1000e760c
lea r9, [0x10000ca00]
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.1000e9408
nop
cmp rbp, 0xffffffffffffffff
je 0x10009f7b2
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.10009ddd4
mov r9d, edi
lea r8, [rsp + 0x4e0]
mov dl, r13b
mov rcx, rsi
call fcn.10009ddd4
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10009f80e
lea rdx, [rsp + 0x250]
mov rcx, rsi
call fcn.10009e1f4
lea r8, [rsp + 0x250]
lea rdx, [rsp + 0x4e0]
mov rcx, rsi
call fcn.10009e050
nop
lea rcx, [rsp + 0x110]
call fcn.1000e7d24
mov rcx, qword [rsp + 0x770]
xor rcx, rsp
call fcn.1001303c0
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