Function at 0x14009d8f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1403aa6c8]
xor rax, rsp
mov qword [rbp], rax
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x58], r14d
mov rcx, qword [rcx]
mov rax, qword [rdi + 8]
sub rax, rcx
sar rax, 3
cmp rax, 3
jne 0x14009dea6
mov rcx, qword [rcx]
mov rax, qword [rcx]
call qword [rax + 0x40]
test al, al
je 0x14009dea6
mov rcx, qword [rdi]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x40]
test al, al
je 0x14009dea6
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x40]
test al, al
je 0x14009dea6
mov rax, qword [rdi]
mov rcx, qword [rax]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x98]
nop
mov rdx, qword [rax + 8]
lea esi, [r14 + 2]
test rdx, rdx
je 0x14009d9c9
mov r8, qword [rdx + 8]
test r8, r8
je 0x14009d9c9
mov rdx, qword [rdx]
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r14w
lea rcx, [rbp - 0x60]
call fcn.140082e10
lea ebx, [rsi + 4]
jmp 0x14009d9dc
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r14w
mov ebx, esi
or ebx, 1
lea r15, vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
mov qword [rsp + 0x40], r15
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14009da1a
cmp byte [rsp + 0x50], 0
je 0x14009da10
call sub.libcef.dll_cef_string_utf16_clear
mov edx, 0x18
mov rcx, qword [rsp + 0x48]
call fcn.140229774
mov qword [rsp + 0x48], r14
mov byte [rsp + 0x50], 0
lea rcx, [rbp - 0x60]
call fcn.140097290
lea rcx, [rbp - 0x60]
cmp rcx, rax
je 0x14009da46
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14009da39
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp - 0x60]
call fcn.140082e10
cmp qword [rbp - 0x50], 0
je 0x14009de5f
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
call qword [rax + 0x98]
nop
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14009db37
mov rdx, qword [rcx + 8]
test rdx, rdx
je 0x14009db37
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x40]
mov rcx, qword [rcx]
call sub.libcef.dll_cef_string_utf16_to_utf8
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], send
mov byte [rbp - 0x80], 0
or ebx, 0x20
mov dword [rsp + 0x58], ebx
mov r8, qword [rsp + 0x48]
test r8, r8
je 0x14009db2a
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], send
mov byte [rbp - 0x20], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.140054c10
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14009db1a
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009db15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009db15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140229774
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [rbp - 0x70], xmm1
lea rcx, [rsp + 0x40]
call sub.libcef.dll_cef_string_utf8_clear
nop
jmp 0x14009db47
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], send
mov byte [rbp - 0x80], 0
mov qword [rsp + 0x60], r15
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14009db7b
cmp byte [rsp + 0x70], 0
je 0x14009db71
call sub.libcef.dll_cef_string_utf16_clear
mov edx, 0x18
mov rcx, qword [rsp + 0x68]
call fcn.140229774
mov qword [rsp + 0x68], r14
mov byte [rsp + 0x70], 0
mov rax, qword [rdi]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x98]
nop
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14009dbc2
mov r8, qword [rdx + 8]
test r8, r8
je 0x14009dbc2
mov rdx, qword [rdx]
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r14w
lea rcx, [rbp - 0x40]
call fcn.140082e10
jmp 0x14009dbd3
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r14w
mov qword [rsp + 0x40], r15
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14009dc07
cmp byte [rsp + 0x50], 0
je 0x14009dbfd
call sub.libcef.dll_cef_string_utf16_clear
mov edx, 0x18
mov rcx, qword [rsp + 0x48]
call fcn.140229774
mov qword [rsp + 0x48], r14
mov byte [rsp + 0x50], 0
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
mov rax, qword [rbp - 0x50]
lea r9, [rdx + rax*2]
lea rax, [rbp - 0x60]
cmovae rax, qword [rbp - 0x60]
cmp rax, r9
je 0x14009dc42
mov ecx, 0x5c
cmp word [rax], 0x2f
jne 0x14009dc39
mov word [rax], cx
add rax, 2
cmp rax, r9
jne 0x14009dc30
lea rcx, [rbp - 0x40]
call fcn.14006eb40
test al, al
jne 0x14009dc59
mov esi, 5
jmp 0x14009ddbd
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov esi, r14d
cmp rax, 0xffffffffffffffff
jne 0x14009dcab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor edx, edx
call fcn.1400974e0
mov esi, eax
jmp 0x14009ddbd
lea rcx, [rbp - 0x40]
call fcn.14006ebe0
cmp eax, 1
jne 0x14009dd79
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x20]
call fcn.14006ec70
mov rbx, rax
lea rax, [rbp - 0x80]
cmp rax, rbx
je 0x14009dd3b
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14009dd0d
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009dd08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009dd6d
call fcn.140229774
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], send
mov byte [rbp - 0x80], sil
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], send
mov byte [rbx], sil
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x14009dd79
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009dd74
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009dd74
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140229774
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rdx, qword [rbp - 0x80]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x78]
mov r8d, dword [rbp - 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14009ddb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor edx, edx
call fcn.1400974e0
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x14009de00
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009ddfb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009ddfb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140229774
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r14w
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14009de4f
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009de4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009de4a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140229774
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], send
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x14009dea2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009de9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009de9d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140229774
mov eax, esi
jmp 0x14009deab
mov eax, 2
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140229810
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret