Function at 0x1800093b0
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 [0x1800266d0]
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 0x1800096d1
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 0x1800096b7
mov r8w, 0x5c
xor edx, edx
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrRChrA]
test rax, rax
mov rsi, rax
je 0x180009480
lea rdx, [0x180029c98]
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 0x180009483
mov rsi, rbp
lea rdx, [0x180029cc7]
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 0x180009508
lea rdx, [0x180029cfb]
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 0x1800094fb
xor ebx, ebx
jmp 0x1800096ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800096ac
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x1800266d0]
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 0x1800096ac
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, [0x180029938]
xor r9d, r9d
mov rcx, r14
mov qword [rsp + 0x40], rax
mov ebx, 0x12
call fcn.180014008
test eax, eax
je 0x18000969a
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x40]
cmp rbp, rax
je 0x18000969a
mov rsi, rbp
mov rbp, qword [rbp]
lea rcx, [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x18000966c
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, [0x180029ce0]
mov rcx, rdi
test rax, rax
mov rbx, rax
je 0x180009602
and word [rax], 0
mov r8, r13
call qword [sym.imp.USER32.dll_wsprintfA]
mov word [rbx], 0x5c
jmp 0x18000960f
lea r8, [0x180021620]
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 0x180009664
xor ebx, ebx
jmp 0x18000966c
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 [0x1800266d0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x40]
cmp rbp, r11
jne 0x1800095ab
mov rcx, qword [0x1800266d0]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800096bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1800266d0]
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