Function at 0x18000fb68
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 [0x1800339a8]
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 0x18000fe89
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 0x18000fe6f
mov r8w, 0x5c
xor edx, edx
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrRChrA]
test rax, rax
mov rsi, rax
je 0x18000fc38
lea rdx, [0x180036f4d]
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 0x18000fc3b
mov rsi, rbp
lea rdx, [0x180036d3f]
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 0x18000fcc0
lea rdx, [0x180036f97]
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 0x18000fcb3
xor ebx, ebx
jmp 0x18000fe64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000fe64
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x1800339a8]
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 0x18000fe64
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, [0x180036bf0]
xor r9d, r9d
mov rcx, r14
mov qword [rsp + 0x40], rax
mov ebx, 0x12
call fcn.18001537c
test eax, eax
je 0x18000fe52
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x40]
cmp rbp, rax
je 0x18000fe52
mov rsi, rbp
mov rbp, qword [rbp]
lea rcx, [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x18000fe24
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, [0x180036f7c]
mov rcx, rdi
test rax, rax
mov rbx, rax
je 0x18000fdba
and word [rax], 0
mov r8, r13
call qword [sym.imp.USER32.dll_wsprintfA]
mov word [rbx], 0x5c
jmp 0x18000fdc7
lea r8, [0x18002d768]
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 0x18000fe1c
xor ebx, ebx
jmp 0x18000fe24
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 [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x40]
cmp rbp, r11
jne 0x18000fd63
mov rcx, qword [0x1800339a8]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000fe77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1800339a8]
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