Function at 0x140005350
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x1400260e0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rcx
xor r13d, r13d
cmp qword [0x140026cd0], r13
je 0x1400058d4
mov rsi, qword [rcx + 0x10]
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
je 0x14000590d
mov r12, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400053b9
mov r12, qword [rcx]
mov qword [rbp + 0xf], r13
mov qword [rbp + 0x1f], r13
mov qword [rbp + 0x27], r13
lea r15, [rsi + 1]
mov ebx, 7
lea r14, [rbp + 0xf]
lea ecx, [rbx + 3]
cmp r15, rbx
jbe 0x140005406
mov rbx, r15
or rbx, 7
cmp rbx, rax
jbe 0x1400053eb
mov rbx, rax
jmp 0x1400053f2
cmp rbx, rcx
cmovb rbx, rcx
lea rdx, [rbx + 1]
lea rcx, [rbp + 0xf]
call fcn.140002190
mov r14, rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x1f], r15
mov qword [rbp + 0x27], rbx
lea rbx, [rsi + rsi]
mov r8, rbx
mov rdx, r12
mov rcx, r14
call fcn.14000aaf0
mov eax, 0xa
mov word [rbx + r14], ax
mov word [r14 + r15*2], r13w
mov dword [rbp - 0x35], r13d
mov eax, dword [rbp + 0x1f]
lea r8d, [rax + rax]
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rdx, qword [rbp + 0xf]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x35]
mov rcx, qword [0x140026cd0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000566b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov r15, qword [rdi + 0x10]
movabs rax, 0x7ffffffffffffffe
mov rcx, rax
sub rcx, r15
cmp rcx, 0x1b
jb 0x140005913
cmp qword [rdi + 0x18], 8
jb 0x140005497
mov rdi, qword [rdi]
mov qword [rbp - 0x31], r13
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], r13
lea r14, [r15 + 0x1b]
mov ebx, 7
lea rsi, [rbp - 0x31]
cmp r14, rbx
jbe 0x1400054e7
mov rbx, r14
or rbx, 7
cmp rbx, rax
jbe 0x1400054c6
mov rbx, rax
jmp 0x1400054d3
cmp rbx, 0xa
mov eax, 0xa
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x31]
call fcn.140002190
mov rsi, rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x21], r14
mov qword [rbp - 0x19], rbx
movups xmm0, xmmword [0x140019660]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [0x140019670]
movups xmmword [rsi + 0x10], xmm1
movups xmm0, xmmword [0x140019680]
movups xmmword [rsi + 0x20], xmm0
mov ecx, dword [0x140019690]
mov dword [rsi + 0x30], ecx
movzx eax, word [0x140019694]
mov word [rsi + 0x34], ax
lea rcx, [rsi + 0x36]
lea r8, [r15 + r15]
mov rdx, rdi
call fcn.14000aaf0
mov word [rsi + r14*2], r13w
mov rcx, qword [rbp - 0x21]
mov rdx, qword [rbp - 0x19]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14000556e
lea rax, [rcx + 1]
mov qword [rbp - 0x21], rax
lea rax, [rbp - 0x31]
cmp rdx, 8
cmovae rax, qword [rbp - 0x31]
mov dword [rax + rcx*2], 0x27
lea rax, [rbp - 0x31]
jmp 0x140005591
mov qword [rsp + 0x20], 1
lea r9, [0x14001965c]
movzx r8d, byte [rbp - 0x39]
mov edx, 1
lea rcx, [rbp - 0x31]
call fcn.140001290
mov qword [rbp - 0x11], r13
mov qword [rbp - 1], r13
mov qword [rbp + 7], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 1], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
mov edx, r12d
call fcn.140004b00
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x140005612
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000560d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005919
call fcn.140008948
mov qword [rbp - 1], r13
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r13w
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x14000587f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000587a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005907
jmp 0x14000587a
mov rcx, qword [0x140026cd0]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x140005898
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov r15, qword [rdi + 0x10]
movabs rax, 0x7ffffffffffffffe
mov rcx, rax
sub rcx, r15
cmp rcx, 0x1e
jb 0x14000591f
cmp qword [rdi + 0x18], 8
jb 0x1400056b1
mov rdi, qword [rdi]
mov qword [rbp - 0x31], r13
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], r13
lea r14, [r15 + 0x1e]
mov ebx, 7
lea rsi, [rbp - 0x31]
cmp r14, rbx
jbe 0x140005701
mov rbx, r14
or rbx, 7
cmp rbx, rax
jbe 0x1400056e0
mov rbx, rax
jmp 0x1400056ed
cmp rbx, 0xa
mov eax, 0xa
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x31]
call fcn.140002190
mov rsi, rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x21], r14
mov qword [rbp - 0x19], rbx
movups xmm0, xmmword [str.Failed_to_flush_log_on_entry_]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [0x1400196a8]
movups xmmword [rsi + 0x10], xmm1
movups xmm0, xmmword [0x1400196b8]
movups xmmword [rsi + 0x20], xmm0
movsd xmm1, qword [0x1400196c8]
movsd qword [rsi + 0x30], xmm1
mov eax, dword [0x1400196d0]
mov dword [rsi + 0x38], eax
lea rcx, [rsi + 0x3c]
lea r8, [r15 + r15]
mov rdx, rdi
call fcn.14000aaf0
mov word [rsi + r14*2], r13w
mov rcx, qword [rbp - 0x21]
mov rdx, qword [rbp - 0x19]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14000578a
lea rax, [rcx + 1]
mov qword [rbp - 0x21], rax
lea rax, [rbp - 0x31]
cmp rdx, 8
cmovae rax, qword [rbp - 0x31]
mov dword [rax + rcx*2], 0x27
lea rax, [rbp - 0x31]
jmp 0x1400057ad
mov qword [rsp + 0x20], 1
lea r9, [0x14001965c]
movzx r8d, byte [rbp - 0x39]
mov edx, 1
lea rcx, [rbp - 0x31]
call fcn.140001290
mov qword [rbp - 0x11], r13
mov qword [rbp - 1], r13
mov qword [rbp + 7], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 1], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
mov edx, r12d
call fcn.140004b00
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14000582e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005829
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005925
call fcn.140008948
mov qword [rbp - 1], r13
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r13w
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x14000587f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000587a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000592b
call fcn.140008948
mov rcx, qword [0x140026cd0]
test rcx, rcx
je 0x140005898
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140026cd0], r13
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x1400058d4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400058cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005901
call fcn.140008948
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140008fb0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14000f278
nop
call fcn.14000f278
nop
call fcn.140001d40
nop
call fcn.140001d40
nop
call fcn.14000f278
nop
call fcn.140001d40
nop
call fcn.14000f278
nop
call fcn.14000f278
int3