Function at 0x140006650
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x830
mov rax, qword [0x1402677d8]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov r14, qword [rdx + 0x10]
mov rbx, rdx
mov rdi, qword [rdx + 0x18]
mov rsi, rcx
test r14, r14
jne 0x1400066ca
cmp rdi, 0x10
jb 0x1400066c1
mov rcx, qword [rbx]
lea rdx, [rdi + 1]
cmp rdx, 0x1000
jb 0x1400066bc
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400068da
mov rcx, r8
call fcn.140014bac
xor edi, edi
xor al, al
jmp 0x1400068a3
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x7d0
call fcn.140199110
mov rbp, rbx
cmp rdi, 0x10
jb 0x1400066e8
mov rbp, qword [rbx]
xor edi, edi
test rbp, rbp
je 0x140006737
mov dword [rsp + 0x28], edi
mov r9d, r14d
mov r8, rbp
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [rax - 1]
cmp edx, 0x3e7
ja 0x140006737
mov dword [rsp + 0x28], eax
mov r9d, r14d
lea rax, [rsp + 0x50]
mov r8, rbp
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rsp + 0x50]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140006743
test rax, rax
je 0x14000677f
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x50]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1400067b3
cmp qword [rbx + 0x18], 0x10
mov rcx, rbx
jb 0x14000678c
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400067fd
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400067f6
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400067f1
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400068da
mov rcx, r8
call fcn.140014bac
xor al, al
jmp 0x1400068a3
movzx eax, byte [rsi + 0x44]
mov dword [rsp + 0x40], edi
test al, al
je 0x140006819
cmp byte [rsi + 0x45], dil
je 0x140006815
mov r8d, dword [rsi + 0x3c]
jmp 0x140006823
test al, al
jne 0x14000683a
cmp byte [rsi + 0x45], dil
je 0x14000683a
mov r8d, dword [rsi + 0x40]
mov rdx, qword [rsi + 0x30]
lea r9, [rsp + 0x40]
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsi + 0x54]
lea r9, [rsp + 0x40]
mov rdx, qword [rsi + 0x48]
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi + 0x48]
call fcn.1400145ac
mov qword [rsi + 0x48], rdi
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400068a1
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000689c
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400068da
mov rcx, r8
call fcn.140014bac
mov al, 1
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], dil
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.140197410
lea r11, [rsp + 0x830]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14019bce4
int3