Function at 0x1400251b0
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.140056050
mov rcx, rax
call fcn.14005d468
mov ecx, eax
call fcn.140054f24
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, [0x140075960]
mov qword [rbp - 0xa8], rdx
mov ecx, 2
call fcn.140056050
mov rcx, rax
mov rdx, qword [rbp - 0xa8]
call fcn.1400562d8
test eax, eax
jg 0x14002534c
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.140025480]
mov qword [rbp - 0x68], rdi
lea rcx, [rbp - 0x70]
call fcn.140029af0
cmp qword [rbp - 0x80], 0
je 0x14002545a
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
test rsi, rsi
je 0x1400252c0
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.140025480
lea rcx, str.user32.dll
call sub.KERNEL32.dll_LoadLibraryW
mov rsi, rax
test rsi, rsi
je 0x14002532d
lea rdx, str.MessageBoxW
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
mov rdi, rax
test rdi, rdi
je 0x14002532d
cmp qword [rbp - 0x80], 0
je 0x140025301
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 0x14002531b
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.140054fc8
mov rcx, qword [rbp - 0x80]
call fcn.140054fc8
jmp 0x14002545a
test dil, dil
je 0x14002543b
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.140025480]
mov qword [rbp - 0x28], r10
lea rcx, [rbp - 0x30]
call fcn.140029af0
cmp qword [rbp - 0x40], 0
je 0x14002545a
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.140053bd0
mov rsi, rax
test rsi, rsi
je 0x140025430
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.140054fc8
mov rcx, qword [rbp - 0x40]
call fcn.140054fc8
jmp 0x14002545a
mov rdx, rsi
lea rax, [0x140025530]
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
lea rcx, [rbp - 0x10]
call fcn.140029af0
mov rbx, qword [rbp - 0xc0]
mov rsi, qword [rbp - 0xb8]
mov rdi, qword [rbp - 0xb0]
mov rsp, rbp
pop rbp
ret