Function at 0x10009f4fc
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, [0x10001db10]
mov qword [rsp + 0x40], r14
lea r15, [0x10001e0c0]
mov qword [rsp + 0x48], r15
lea rbx, [0x10001daf8]
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.1000e8000
nop
mov rcx, rsi
call fcn.10009ea04
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 0x10009f6de
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, [0x10001daf8]
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 0x10009f6b1
lea rcx, [rsp + 0x40]
call fcn.1000e7a50
test byte [rsp + 0x34], 8
je 0x10009f69c
add dword [rsp + 0xf0], r13d
mov rdi, qword [rdi]
cmp rdi, r12
jne 0x10009f611
lea rbx, [0x10001daf8]
jmp 0x10009f6de
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.1000e79d4
lea r9, [0x10000ca00]
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.1000e97d0
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 0x10009f70f
cmp dword [rsp + 0x30], 0xc
je 0x10009f7be
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 0x10009f7b4
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.1000e79d4
lea r9, [0x10001dd00]
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.1000e97d0
nop
lea rcx, [rsp + 0x40]
call fcn.1000e7a50
mov rbx, qword [rsi + 0xb0]
cmp rbx, r12
je 0x10009fb4b
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, [0x10001daf8]
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 0x10009fb1e
lea rcx, [rsp + 0x40]
call fcn.1000e7a50
test byte [rsp + 0x34], 8
jne 0x10009f86a
mov rbx, qword [rbx]
jmp 0x10009fab6
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, [0x10001daf8]
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.100052760
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 0x10009f94d
cmp dword [rsp + 0x30], 0x14
je 0x10009f9dd
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, [0x10001daf8]
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 0x10009faf1
lea rcx, [rsp + 0x40]
call fcn.1000e7a50
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 0x10009fa1c
mov ecx, dword [rsp + 0x238]
add rcx, rcx
mov eax, dword [rsp + 0x30]
cmp rax, rcx
je 0x10009faa8
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, [0x10001daf8]
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 0x10009fac4
lea rcx, [rsp + 0x40]
call fcn.1000e7a50
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp rbx, r12
jne 0x10009f7db
jmp 0x10009fb4b
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.1000e79d4
lea r9, [0x10001dd00]
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.1000e97d0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.1000e79d4
lea r9, [0x10001dd00]
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.1000e97d0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.1000e79d4
lea r9, [0x10000ca00]
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.1000e97d0
nop
cmp rbp, 0xffffffffffffffff
je 0x10009fb5a
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.10009e17c
mov r9d, edi
lea r8, [rsp + 0x4e0]
mov dl, r13b
mov rcx, rsi
call fcn.10009e17c
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10009fbb6
lea rdx, [rsp + 0x250]
mov rcx, rsi
call fcn.10009e59c
lea r8, [rsp + 0x250]
lea rdx, [rsp + 0x4e0]
mov rcx, rsi
call fcn.10009e3f8
nop
lea rcx, [rsp + 0x110]
call fcn.1000e80ec
mov rcx, qword [rsp + 0x770]
xor rcx, rsp
call fcn.100130830
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