Function at 0x18001a170
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1800ea550]
xor rax, rsp
mov qword [rbp + 0xc8], rax
mov r13d, r8d
mov r12, rdx
mov rdi, rcx
cmp qword [rcx + 0x10], 0
je 0x18001a3b2
cmp qword [rcx + 0x18], 8
jb 0x18001a1c2
mov rcx, qword [rcx]
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18001a3b9
lea edx, [rax + 3]
lea r8d, [r14 + 1]
lea rcx, [rsp + 0x60]
call fcn.18000d500
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.return_false1._GetLastError:
lea rcx, [rsp + 0x60]
call fcn.180010b40
mov rcx, rax
mov edx, ebx
call fcn.18000cd70
mov rcx, rax
lea rdx, str.._file:
call fcn.180010b40
mov rcx, rax
mov rdx, rdi
call fcn.180010da0
mov qword [rbp + 0x90], 0xf
mov qword [rbp + 0x88], r14
mov byte [rbp + 0x78], r14b
lea r8d, [r14 + 0x18]
lea rdx, str.CFileUtility::SetFileBuf
lea rcx, [rbp + 0x78]
call fcn.1800071c0
nop
mov qword [rbp + 0x68], 0xf
mov qword [rbp + 0x60], r14
mov byte [rbp + 0x50], r14b
lea r8d, [r14 + 0xf]
lea rdx, str.FileUtility.cpp
lea rcx, [rbp + 0x50]
call fcn.1800071c0
nop
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.18000d630
mov rbx, rax
call fcn.18000ddc0
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x125
lea r8, [rbp + 0x50]
xor edx, edx
call fcn.180002e80
nop
cmp qword [rbp + 0xb8], 8
jb 0x18001a2e9
mov rcx, qword [rbp + 0xa0]
call fcn.18007309c
mov qword [rbp + 0xb8], 7
mov qword [rbp + 0xb0], r14
mov word [rbp + 0xa0], r14w
cmp qword [rbp + 0x68], 0x10
jb 0x18001a313
mov rcx, qword [rbp + 0x50]
call fcn.18007309c
mov qword [rbp + 0x68], 0xf
mov qword [rbp + 0x60], r14
mov byte [rbp + 0x50], 0
cmp qword [rbp + 0x90], 0x10
jb 0x18001a336
mov rcx, qword [rbp + 0x78]
call fcn.18007309c
mov qword [rbp + 0x90], 0xf
mov qword [rbp + 0x88], r14
mov byte [rbp + 0x78], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x60], rax
lea rcx, [rsp + 0x68]
call fcn.18000d670
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x60], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x48], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x18], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.1800724a4
xor al, al
jmp 0x18001a551
mov bl, 1
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, r13d
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18001a545
lea edx, [rax + 2]
lea r8d, [rax + 1]
lea rcx, [rsp + 0x60]
call fcn.18000d500
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.return_false2._GetLastError:
lea rcx, [rsp + 0x60]
call fcn.180010b40
mov rcx, rax
mov edx, ebx
call fcn.18000cd70
mov rcx, rax
lea rdx, str.._file:
call fcn.180010b40
mov rcx, rax
mov rdx, rdi
call fcn.180010da0
mov qword [rbp + 0x68], 0xf
mov qword [rbp + 0x60], r14
mov byte [rbp + 0x50], 0
mov r8d, 0x18
lea rdx, str.CFileUtility::SetFileBuf
lea rcx, [rbp + 0x50]
call fcn.1800071c0
nop
mov qword [rbp + 0x90], 0xf
mov qword [rbp + 0x88], r14
mov byte [rbp + 0x78], 0
mov r8d, 0xf
lea rdx, str.FileUtility.cpp
lea rcx, [rbp + 0x78]
call fcn.1800071c0
nop
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.18000d630
mov rbx, rax
call fcn.18000ddc0
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x132
lea r8, [rbp + 0x78]
xor edx, edx
call fcn.180002e80
nop
cmp qword [rbp + 0xb8], 8
jb 0x18001a4d6
mov rcx, qword [rbp + 0xa0]
call fcn.18007309c
mov qword [rbp + 0xb8], 7
mov qword [rbp + 0xb0], r14
mov word [rbp + 0xa0], r14w
cmp qword [rbp + 0x90], 0x10
jb 0x18001a503
mov rcx, qword [rbp + 0x78]
call fcn.18007309c
mov qword [rbp + 0x90], 0xf
mov qword [rbp + 0x88], r14
mov byte [rbp + 0x78], 0
cmp qword [rbp + 0x68], 0x10
jb 0x18001a529
mov rcx, qword [rbp + 0x50]
call fcn.18007309c
mov qword [rbp + 0x68], 0xf
mov qword [rbp + 0x60], r14
mov byte [rbp + 0x50], 0
lea rcx, [rsp + 0x60]
call fcn.18000caa0
xor bl, bl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rcx, qword [rbp + 0xc8]
xor rcx, rsp
call fcn.180073c80
add rsp, 0x1d0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret