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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rbp, rcx
mov rcx, qword [0x180023a50]
mov r12, r8
mov rsi, rdx
mov r8d, 0x1000
xor edx, edx
mov ebx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r15d, r15d
mov rdi, rax
cmp rax, r15
je 0x180006b92
mov qword [rsp + 0x30], r15
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x180006b78
lea r14d, [rbx + 0x54]
xor edx, edx
mov rcx, r12
mov r8d, r14d
call qword [sym.imp.SHLWAPI.dll_StrRChrA]
mov rbp, rax
cmp rax, r15
je 0x180006921
lea rdx, [0x180025a54]
mov r8, r12
mov rcx, rdi
mov byte [rax], r15b
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0xa8]
mov rdx, rdi
mov rcx, r13
mov r8d, eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [rbp], r14b
inc rbp
jmp 0x180006924
mov rbp, r12
lea rdx, [0x1800258ce]
mov r8, rbp
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0xa8]
mov rdx, rdi
mov rcx, r13
mov r8d, eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x1800069a9
lea rdx, [0x180025a8a]
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0xa8]
mov rdx, rdi
mov rcx, r13
mov r8d, eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r15d
je 0x18000699c
mov ebx, r15d
jmp 0x180006b6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180006b6d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180023a50]
xor edx, edx
add eax, 2
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
mov qword [rsp + 0x40], rax
cmp rax, r15
je 0x180006b6d
movsx ecx, byte [rsi]
mov edx, r15d
mov word [rax], cx
cmp cx, r15w
je 0x180006a02
mov rcx, rax
inc rsi
add rcx, 2
inc edx
movsx eax, byte [rsi]
mov word [rcx], ax
cmp ax, r15w
jne 0x1800069ed
mov eax, edx
lea r8, [rsp + 0x48]
xor r9d, r9d
mov word [r12 + rax*2], r14w
lea eax, [rdx + 1]
lea rdx, [0x180025920]
mov word [r12 + rax*2], r15w
lea rax, [rsp + 0x48]
mov rcx, r12
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], r15d
mov ebx, 0x12
mov dword [rsp + 0x20], r15d
mov qword [rsp + 0x48], rax
call fcn.18001194c
cmp eax, r15d
je 0x180006b5b
mov rbp, qword [rsp + 0x48]
lea rax, [rsp + 0x48]
cmp rbp, rax
je 0x180006b5b
mov r12d, r14d
mov rsi, rbp
mov rbp, qword [rbp]
lea rcx, [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x180006b28
mov eax, dword [rsi + 0x24]
mov r8d, r12d
xor edx, edx
lea r14, [rsi + rax*2 + 0x28]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
lea rdx, [0x180025a6f]
mov rcx, rdi
mov rbx, rax
cmp rax, r15
je 0x180006abe
mov r8, r14
mov word [rax], r15w
call qword [sym.imp.USER32.dll_wsprintfA]
mov word [rbx], r12w
jmp 0x180006acb
lea r8, [0x18001e724]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0xa8]
mov r8d, eax
mov rdx, rdi
mov rcx, r13
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, str.__S__r_n
mov r8, r14
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0xa8]
mov rdx, rdi
mov rcx, r13
mov r8d, eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r15d
je 0x180006b20
mov ebx, r15d
jmp 0x180006b28
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 [0x180023a50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x48]
cmp rbp, r11
jne 0x180006a6a
mov r12, qword [rsp + 0x40]
mov rcx, qword [0x180023a50]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180006b80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180023a50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret