Function at 0x14002be80
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x100
mov qword [rbp - 0xc0], rbx
mov qword [rbp - 0xb8], rsi
mov qword [rbp - 0xb0], rdi
mov rsi, rcx
mov ecx, 2
call fcn.14008ce60
mov rcx, rax
call fcn.14008cf50
mov ecx, eax
call sub.MSVCR120.dll__get_osfhandle
mov rbx, rax
xor edx, edx
mov qword [rbp - 0xa0], rdx
mov qword [rbp - 0x98], rdx
xor r8d, r8d
mov dword [rbp - 0x90], r8d
mov word [rbp - 0x8c], dx
lea rdx, [rbp - 0xa0]
mov rcx, rbx
call sub.KERNEL32.dll_GetConsoleScreenBufferInfo
test eax, eax
setne dil
lea rdx, [0x140092a50]
mov qword [rbp - 0xa8], rdx
mov ecx, 2
call fcn.14008ce60
mov rcx, rax
mov rdx, qword [rbp - 0xa8]
call sub.MSVCR120.dll_fprintf
test eax, eax
jg 0x14002c01c
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov rdx, rsi
lea rbx, [rbp - 0x80]
mov qword [rbp - 0x70], rbx
lea rdi, [fcn.14002c150]
mov qword [rbp - 0x68], rdi
lea rcx, [rbp - 0x70]
call fcn.140036130
cmp qword [rbp - 0x80], 0
je 0x14002c12a
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
test rsi, rsi
je 0x14002bf90
mov rax, qword [rsi]
mov rdx, qword [rax]
mov rax, qword [rdx + 0x20]
mov rdx, qword [rdx + 0x28]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x60]
call fcn.14002c150
lea rcx, str.user32.dll
call sub.KERNEL32.dll_LoadLibraryW
mov rsi, rax
test rsi, rsi
je 0x14002bffd
lea rdx, str.MessageBoxW
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
mov rdi, rax
test rdi, rdi
je 0x14002bffd
cmp qword [rbp - 0x80], 0
je 0x14002bfd1
mov r8, qword [rbp - 0x78]
mov r9, qword [rbp - 0x80]
mov word [r9 + r8*2], 0
mov rbx, qword [rbp - 0x80]
cmp qword [rbp - 0x60], 0
je 0x14002bfeb
mov r10, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
mov word [rdx + r10*2], 0
mov r9d, 0x10
mov r8, qword [rbp - 0x60]
mov rdx, rbx
xor ecx, ecx
call rdi
mov rcx, rsi
call sub.KERNEL32.dll_FreeLibrary
mov rcx, qword [rbp - 0x60]
call sub.MSVCR120.dll_free
mov rcx, qword [rbp - 0x80]
call sub.MSVCR120.dll_free
jmp 0x14002c12a
test dil, dil
je 0x14002c10b
xor r8d, r8d
mov qword [rbp - 0x40], r8
mov qword [rbp - 0x38], r8
mov rdx, rsi
lea r9, [rbp - 0x40]
mov qword [rbp - 0x30], r9
lea r10, [fcn.14002c150]
mov qword [rbp - 0x28], r10
lea rcx, [rbp - 0x30]
call fcn.140036130
cmp qword [rbp - 0x40], 0
je 0x14002c12a
call sub.KERNEL32.dll_GetConsoleOutputCP
mov esi, eax
xor r8d, r8d
mov qword [rbp - 0xc8], r8
mov qword [rbp - 0xd0], r8
mov qword [rbp - 0xd8], r8
mov qword [rbp - 0xe0], r8
mov r9d, dword [rbp - 0x38]
mov r8, qword [rbp - 0x40]
xor edx, edx
mov ecx, esi
call sub.KERNEL32.dll_WideCharToMultiByte
mov edi, eax
mov dword [rbp - 0x20], esi
movsxd rcx, edi
call sub.MSVCR120.dll_malloc
mov rsi, rax
test rsi, rsi
je 0x14002c100
mov qword [rbp - 0xc8], 0
mov qword [rbp - 0xd0], 0
mov qword [rbp - 0xd8], rdi
mov qword [rbp - 0xe0], rsi
mov r9d, dword [rbp - 0x38]
mov r8, qword [rbp - 0x40]
xor edx, edx
mov ecx, dword [rbp - 0x20]
call sub.KERNEL32.dll_WideCharToMultiByte
mov qword [rbp - 0xe0], 0
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call sub.KERNEL32.dll_WriteFile
mov rcx, rsi
call sub.MSVCR120.dll_free
mov rcx, qword [rbp - 0x40]
call sub.MSVCR120.dll_free
jmp 0x14002c12a
mov rdx, rsi
lea rax, [0x14002c200]
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
lea rcx, [rbp - 0x10]
call fcn.140036130
mov rbx, qword [rbp - 0xc0]
mov rsi, qword [rbp - 0xb8]
mov rdi, qword [rbp - 0xb0]
mov rsp, rbp
pop rbp
ret