Function at 0x140002270
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.140033714
mov rcx, rax
call fcn.140039978
mov ecx, eax
call fcn.1400340e4
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, [0x14004d5e0]
mov qword [rbp - 0xa8], rdx
mov ecx, 2
call fcn.140033714
mov rcx, rax
mov rdx, qword [rbp - 0xa8]
call fcn.140033df4
test eax, eax
jg 0x14000240c
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.140002540]
mov qword [rbp - 0x68], rdi
lea rcx, [rbp - 0x70]
call fcn.140003920
cmp qword [rbp - 0x80], 0
je 0x14000251a
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
test rsi, rsi
je 0x140002380
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.140002540
lea rcx, str.user32.dll
call sub.KERNEL32.dll_LoadLibraryW
mov rsi, rax
test rsi, rsi
je 0x1400023ed
lea rdx, str.MessageBoxW
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
mov rdi, rax
test rdi, rdi
je 0x1400023ed
cmp qword [rbp - 0x80], 0
je 0x1400023c1
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 0x1400023db
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 fcn.14003415c
mov rcx, qword [rbp - 0x80]
call fcn.14003415c
jmp 0x14000251a
test dil, dil
je 0x1400024fb
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.140002540]
mov qword [rbp - 0x28], r10
lea rcx, [rbp - 0x30]
call fcn.140003920
cmp qword [rbp - 0x40], 0
je 0x14000251a
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 fcn.140034170
mov rsi, rax
test rsi, rsi
je 0x1400024f0
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 fcn.14003415c
mov rcx, qword [rbp - 0x40]
call fcn.14003415c
jmp 0x14000251a
mov rdx, rsi
lea rax, [0x1400025f0]
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
lea rcx, [rbp - 0x10]
call fcn.140003920
mov rbx, qword [rbp - 0xc0]
mov rsi, qword [rbp - 0xb8]
mov rdi, qword [rbp - 0xb0]
mov rsp, rbp
pop rbp
ret