Function at 0x1800096e8
Capabilities:
Get file attributes
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rsi, rcx
mov rcx, qword [0x180052eb0]
mov rbp, r8
mov r13, rdx
mov r8d, 0x1000
xor edx, edx
mov ebx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180009a09
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov r12, rax
je 0x1800099ef
mov r8w, 0x5c
xor edx, edx
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrRChrA]
test rax, rax
mov rsi, rax
je 0x1800097b8
lea rdx, [0x180057cbb]
mov r8, rbp
mov rcx, rdi
mov byte [rax], 0
call qword [sym.imp.USER32.dll_wsprintfA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
mov r8d, eax
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [rsi], 0x5c
add rsi, 1
jmp 0x1800097bb
mov rsi, rbp
lea rdx, [0x180057cea]
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
mov r8d, eax
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x180009840
lea rdx, [0x180057d1e]
mov r8, r13
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
mov r8d, eax
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180009833
xor ebx, ebx
jmp 0x1800099e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800099e4
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180052eb0]
xor edx, edx
mov esi, eax
lea r8d, [rsi + 2]
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov r14, rax
je 0x1800099e4
lea ecx, [rsi + 1]
mov rdx, r13
mov ebx, ecx
mov r8d, ecx
mov rcx, rax
call qword [sym.imp.ntdll.dll_mbstowcs]
and word [r14 + rbx*2], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov word [r14 + rsi*2], 0x5c
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x40]
lea rdx, [0x180057930]
xor r9d, r9d
mov rcx, r14
mov qword [rsp + 0x40], rax
mov ebx, 0x12
call fcn.1800170c8
test eax, eax
je 0x1800099d2
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x40]
cmp rbp, rax
je 0x1800099d2
mov rsi, rbp
mov rbp, qword [rbp]
lea rcx, [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1800099a4
mov eax, dword [rsi + 0x24]
mov r8w, 0x5c
xor edx, edx
lea r13, [rsi + rax*2 + 0x28]
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
lea rdx, [0x180057d03]
mov rcx, rdi
test rax, rax
mov rbx, rax
je 0x18000993a
and word [rax], 0
mov r8, r13
call qword [sym.imp.USER32.dll_wsprintfA]
mov word [rbx], 0x5c
jmp 0x180009947
lea r8, [0x180049884]
call qword [sym.imp.USER32.dll_wsprintfA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
mov r8d, eax
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, str.__S__r_n
mov r8, r13
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
mov r8d, eax
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000999c
xor ebx, ebx
jmp 0x1800099a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov r8, rsi
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rcx, qword [0x180052eb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x40]
cmp rbp, r11
jne 0x1800098e3
mov rcx, qword [0x180052eb0]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800099f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180052eb0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret