Function at 0x14012de30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp qword [rdx + 0x18], 8
jb 0x14012de65
mov rdx, qword [rdx]
xor r14d, r14d
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], 7
mov word [rsp + 0x88], r14w
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x88]
call fcn.1400739a0
nop
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], 7
mov word [rsp + 0x68], r14w
lea r8d, [r14 + 7]
lea rdx, [0x1405faf90]
lea rcx, [rsp + 0x68]
call fcn.1400739a0
nop
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.1400733c0
nop
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.1400bbed0
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.1400733c0
nop
lea rcx, [rsp + 0x48]
call fcn.140073b90
nop
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0xa8]
call fcn.1400733c0
nop
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0xa8]
call fcn.1400bbed0
mov rdx, rax
lea rcx, [rsp + 0xf8]
call fcn.1400733c0
nop
lea rcx, [rsp + 0xa8]
call fcn.140073b90
nop
lea rcx, [rsp + 0xc8]
call fcn.140073b90
nop
lea rcx, [rsp + 0x68]
call fcn.140073b90
nop
lea rcx, [rsp + 0x88]
call fcn.140073b90
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x14012df88
mov rbx, qword [rbx]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400739a0
nop
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xc0], 7
mov word [rsp + 0xa8], r14w
mov r8d, 0x12
lea rdx, [0x1405fafe8]
lea rcx, [rsp + 0xa8]
call fcn.1400739a0
nop
mov rdx, rsi
lea rcx, [rsp + 0xc8]
call fcn.1400733c0
nop
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0xc8]
call fcn.1400bbed0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400733c0
nop
lea rcx, [rsp + 0xc8]
call fcn.140073b90
nop
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x88]
call fcn.1400733c0
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x88]
call fcn.1400bbed0
mov rdx, rax
lea rcx, [rsp + 0x118]
call fcn.1400733c0
nop
lea rcx, [rsp + 0x88]
call fcn.140073b90
nop
lea rcx, [rsp + 0x68]
call fcn.140073b90
nop
lea rcx, [rsp + 0xa8]
call fcn.140073b90
nop
lea rcx, [rsp + 0x48]
call fcn.140073b90
lea rcx, [rsp + 0xf8]
cmp qword [rsp + 0x110], 8
cmovae rcx, qword [rsp + 0xf8]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x4000000
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x138], rax
cmp rax, 0xffffffffffffffff
je 0x14012e1b8
mov r8d, dword [rdi + 0x10]
mov dword [rsp + 0xf0], r8d
cmp qword [rdi + 0x18], 0x10
jb 0x14012e103
mov rdi, qword [rdi]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xf0]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14012e1ec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
nop
lea rdx, [rsp + 0xf8]
cmp qword [rsp + 0x110], 8
cmovae rdx, qword [rsp + 0xf8]
lea rcx, [rsp + 0x118]
cmp qword [rsp + 0x130], 8
cmovae rcx, qword [rsp + 0x118]
call fcn.1403346a0
test eax, eax
jne 0x14012e220
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x118]
call fcn.140073b90
nop
lea rcx, [rsp + 0xf8]
call fcn.140073b90
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140359070
mov rbx, qword [rsp + 0x288]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0xc8]
call fcn.14012ddd0
nop
mov r8, rax
lea rdx, str.Failed_to_create_file
lea rcx, [rsp + 0x48]
call fcn.140100980
nop
mov rcx, rax
call fcn.140124ec0
nop
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0xc8]
call fcn.14012ddd0
nop
mov r8, rax
lea rdx, str.Failed_to_write_to_file
lea rcx, [rsp + 0x48]
call fcn.140100980
nop
mov rcx, rax
call fcn.140124ec0
nop
lea r9, [rsp + 0x118]
lea r8, [rsp + 0xf8]
mov edx, eax
call fcn.14012db50
int3