Function at 0x14000f0d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push r13
push r14
mov rbp, rsp
sub rsp, 0x80
mov eax, dword [rcx + 4]
mov r13, r9
mov r14, r8
mov rbx, rdx
mov qword [rbp - 0x18], rdx
mov rsi, rcx
test eax, eax
js 0x14000f49f
cmp byte [rcx + 0x12], 0
mov qword [rsp + 0xb8], rdi
je 0x14000f110
call fcn.14000ef30
mov rcx, qword [rsi + 8]
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xc8], r15
call fcn.140045130
mov ecx, eax
mov edi, eax
call fcn.1400450d0
test eax, eax
je 0x14000f35e
mov ecx, edi
call fcn.140043588
lea rdx, [rbp - 0x10]
mov rcx, rax
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14000f35e
mov rcx, qword [rsi + 8]
call fcn.140044320
test eax, eax
jne 0x14000f343
xor r12d, r12d
lea rax, [rbp - 0x40]
lea rdi, str.D:_tinderbox_add_5.2_srcVBoxRuntime_r3_stream.cpp
lea r8, [rbp - 0x48]
xor r9d, r9d
mov rdx, r14
mov rcx, rbx
mov qword [rsp + 0x28], rdi
mov dword [rbp + 0x30], r12d
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], r12
call sym.VBoxControl.exe_RTStrToUtf16ExTag
mov ebx, eax
test eax, eax
js 0x14000f480
mov r8d, dword [rbp - 0x40]
mov rdx, qword [rbp - 0x48]
lea r9, [rbp + 0x30]
mov rcx, r15
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x14000f239
mov edx, r12d
mov dword [rbp + 0x30], edx
cmp qword [rbp - 0x40], rdx
je 0x14000f23c
nop word [rax + rax]
mov rax, qword [rbp - 0x48]
mov ecx, edx
lea r9, [rbp - 0x28]
lea rdx, [rax + rcx*2]
mov r8d, 1
mov rcx, r15
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x14000f21e
cmp dword [rbp - 0x28], 1
jne 0x14000f239
mov edx, dword [rbp + 0x30]
inc edx
mov eax, edx
mov dword [rbp + 0x30], edx
cmp rax, qword [rbp - 0x40]
jne 0x14000f1e0
jmp 0x14000f23c
test r13, r13
je 0x14000f22a
mov edx, dword [rbp + 0x30]
test edx, edx
jne 0x14000f23c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.VBoxControl.exe_RTErrConvertFromErrno
mov ebx, eax
mov edx, dword [rbp + 0x30]
test ebx, ebx
js 0x14000f338
mov eax, edx
cmp rax, qword [rbp - 0x40]
jne 0x14000f267
test r13, r13
je 0x14000f338
mov rcx, qword [rbp - 0x48]
mov qword [r13], r14
call sym.VBoxControl.exe_RTStrFree
jmp 0x14000f351
test r13, r13
je 0x14000f333
mov r12, qword [rbp - 0x18]
mov r8, qword [rbp - 0x48]
mov qword [rbp - 0x38], r8
mov rdi, r12
mov qword [rbp - 0x30], r12
test edx, edx
je 0x14000f321
mov r14d, 0xd800
mov r15d, 0xdfff
mov r12d, 0xfffe
nop dword [rax]
movzx eax, word [r8]
cmp ax, r14w
jb 0x14000f2d0
cmp ax, r15w
jbe 0x14000f2b6
cmp ax, r12w
jb 0x14000f2d0
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x38]
call sym.VBoxControl.exe_RTUtf16GetCpExInternal
mov edx, dword [rbp + 0x30]
mov r8, qword [rbp - 0x38]
mov rdi, qword [rbp - 0x30]
jmp 0x14000f2de
add r8, 2
movzx eax, ax
mov qword [rbp - 0x38], r8
mov dword [rbp - 0x50], eax
movzx eax, byte [rdi]
test al, al
js 0x14000f2f4
inc rdi
movzx eax, al
mov qword [rbp - 0x30], rdi
mov dword [rbp - 0x50], eax
jmp 0x14000f30c
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call sym.VBoxControl.exe_RTStrGetCpExInternal
mov edx, dword [rbp + 0x30]
mov r8, qword [rbp - 0x38]
mov rdi, qword [rbp - 0x30]
mov rcx, r8
mov eax, edx
sub rcx, qword [rbp - 0x48]
sar rcx, 1
cmp rcx, rax
jb 0x14000f2a0
mov r12, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x48]
sub rdi, r12
mov qword [r13], rdi
call sym.VBoxControl.exe_RTStrFree
jmp 0x14000f351
mov ebx, 0xffffff90
mov rcx, qword [rbp - 0x48]
call sym.VBoxControl.exe_RTStrFree
jmp 0x14000f351
call fcn.140007788
mov ecx, dword [rax]
call sym.VBoxControl.exe_RTErrConvertFromErrno
mov ebx, eax
test ebx, ebx
jns 0x14000f485
jmp 0x14000f480
cmp byte [rsi + 0x10], 0
je 0x14000f430
cmp byte [rsi + 0x11], 0
jne 0x14000f430
cmp byte [rbp + 0x50], 0
je 0x14000f430
xor r12d, r12d
lea rdi, str.D:_tinderbox_add_5.2_srcVBoxRuntime_r3_stream.cpp
mov r15d, r12d
cmp byte [rbx + r14], r12b
je 0x14000f3b0
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sym.VBoxControl.exe_RTStrDupNTag
mov r15, rax
mov rbx, rax
test rax, rax
jne 0x14000f3b0
lea ebx, [rax - 0x40]
jmp 0x14000f480
lea rcx, [rbp - 0x20]
mov r8, rdi
mov rdx, rbx
call sym.VBoxControl.exe_RTStrUtf8ToCurrentCPTag
mov ebx, eax
test eax, eax
js 0x14000f422
mov r10, qword [rbp - 0x20]
mov r9, qword [rsi + 8]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r10
repne scasb al, byte [rdi]
lea r8d, [rax + 1]
not rcx
lea rdx, [rcx - 1]
mov rcx, r10
call fcn.1400440dc
cmp rax, 1
jne 0x14000f3fc
test r13, r13
je 0x14000f419
mov qword [r13], r14
jmp 0x14000f419
mov rcx, qword [rsi + 8]
call fcn.140043c28
test eax, eax
jne 0x14000f414
test r13, r13
je 0x14000f419
mov qword [r13], r12
jmp 0x14000f419
mov ebx, 0xffffff90
mov rcx, qword [rbp - 0x20]
call sym.VBoxControl.exe_RTStrFree
mov rcx, r15
call sym.VBoxControl.exe_RTStrFree
test ebx, ebx
jns 0x14000f485
jmp 0x14000f480
mov r9, qword [rsi + 8]
mov rcx, rbx
test r13, r13
je 0x14000f463
mov r8, r14
mov edx, 1
call fcn.1400440dc
mov qword [r13], rax
cmp rax, r14
je 0x14000f45f
mov rcx, qword [rsi + 8]
call fcn.140043c28
test eax, eax
jne 0x14000f47b
xor eax, eax
jmp 0x14000f487
mov r8d, 1
mov rdx, r14
call fcn.1400440dc
cmp rax, 1
jne 0x14000f452
xor eax, eax
jmp 0x14000f487
mov ebx, 0xffffff90
mov eax, ebx
xchg dword [rsi + 4], eax
mov eax, ebx
mov r12, qword [rsp + 0xc0]
mov r15, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xb8]
add rsp, 0x80
pop r14
pop r13
pop rsi
pop rbx
pop rbp
ret