Function at 0x140007de0
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.1400338a8
mov rcx, rax
call fcn.140039a28
mov ecx, eax
call fcn.140034278
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, [0x14004d940]
mov qword [rbp - 0xa8], rdx
mov ecx, 2
call fcn.1400338a8
mov rcx, rax
mov rdx, qword [rbp - 0xa8]
call fcn.140033f88
test eax, eax
jg 0x140007f7c
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.1400080b0]
mov qword [rbp - 0x68], rdi
lea rcx, [rbp - 0x70]
call fcn.1400122a0
cmp qword [rbp - 0x80], 0
je 0x14000808a
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
test rsi, rsi
je 0x140007ef0
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.1400080b0
lea rcx, str.user32.dll
call sub.KERNEL32.dll_LoadLibraryW
mov rsi, rax
test rsi, rsi
je 0x140007f5d
lea rdx, str.MessageBoxW
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
mov rdi, rax
test rdi, rdi
je 0x140007f5d
cmp qword [rbp - 0x80], 0
je 0x140007f31
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 0x140007f4b
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.140033774
mov rcx, qword [rbp - 0x80]
call fcn.140033774
jmp 0x14000808a
test dil, dil
je 0x14000806b
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.1400080b0]
mov qword [rbp - 0x28], r10
lea rcx, [rbp - 0x30]
call fcn.1400122a0
cmp qword [rbp - 0x40], 0
je 0x14000808a
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.140033318
mov rsi, rax
test rsi, rsi
je 0x140008060
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.140033774
mov rcx, qword [rbp - 0x40]
call fcn.140033774
jmp 0x14000808a
mov rdx, rsi
lea rax, [0x140008160]
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
lea rcx, [rbp - 0x10]
call fcn.1400122a0
mov rbx, qword [rbp - 0xc0]
mov rsi, qword [rbp - 0xb8]
mov rdi, qword [rbp - 0xb0]
mov rsp, rbp
pop rbp
ret