Function at 0x140014960
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140222080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rcx
xor r12d, r12d
mov qword [rbp - 0x19], r12
lea rdi, [rcx + 8]
mov rbx, rdi
mov qword [rbp - 0x19], rbx
test rdi, rdi
je 0x1400149c2
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400149c2
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp qword [r15 + 0x30], 0
jne 0x140014c88
lea rdx, [rbp + 7]
mov rcx, r15
call fcn.140015720
nop
lea rcx, [rbp + 7]
call fcn.1400030a0
test al, al
jne 0x140014c7e
xor eax, eax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], r12
xor r8d, r8d
xor edx, edx
call fcn.140015a40
mov r13, rax
mov qword [rbp - 0x41], rax
lea rsi, [r15 + 0x10]
lea rcx, [rbp - 0x41]
cmp rcx, rsi
je 0x140014a37
mov r13, qword [rsi]
mov qword [rbp - 0x41], r13
mov qword [rsi], rax
mov rax, qword [rbp - 0x39]
mov r12, qword [rsi + 8]
mov qword [rbp - 0x39], r12
mov qword [rsi + 8], rax
jmp 0x140014a3b
mov r12, qword [rbp - 0x39]
test r12, r12
je 0x140014c62
lea rcx, [rbp + 7]
call fcn.1400030b0
mov rcx, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
mov qword [rbp - 0x49], 0
cmp byte [r15], 0
jne 0x140014af3
cmp r14, 0xffffffffffffffff
jne 0x140014afd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x140014c43
lea ecx, [rax + 0x12]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp + 7]
call fcn.1400030b0
mov rcx, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
mov rax, qword [rbp - 0x49]
inc rax
mov qword [rbp - 0x49], rax
cmp rax, 0xa
jb 0x140014a85
cmp r14, 0xffffffffffffffff
je 0x140014c43
test r14, r14
je 0x140014c43
test rbx, rbx
je 0x140014b25
mov rcx, qword [rdi]
test rcx, rcx
je 0x140014b19
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r12d, r12d
mov ebx, r12d
mov qword [rbp - 0x19], rbx
jmp 0x140014b28
xor r12d, r12d
xor eax, eax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], r12
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x41]
call fcn.14001cbc0
xor eax, eax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp - 0x11], r12
mov qword [rbp - 9], r12
mov qword [rbp - 1], r12
lea r9d, [rax + 2]
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [rbp - 0x31]
mov rax, qword [rbp - 0x29]
cmp rdx, rax
je 0x140014ba8
mov dword [rbp - 0x49], r12d
sub rax, rdx
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x49]
mov r8d, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014bf1
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x49], rdi
test rdi, rdi
je 0x140014bc4
mov rcx, qword [rdi]
test rcx, rcx
je 0x140014bc4
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rdx, qword [rsi]
mov r9, r13
mov r8, qword [r13]
mov rdx, qword [rdx]
mov rcx, rsi
call fcn.140015b60
nop
test rdi, rdi
je 0x140014bf1
mov rcx, qword [rdi]
test rcx, rcx
je 0x140014bed
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x49], r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140014c65
mov rdx, qword [rbp - 0x21]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014c30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014ccc
call fcn.1401588c0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], r12
jmp 0x140014c65
lea rax, [rbp - 0x41]
cmp rsi, rax
je 0x140014c62
mov rax, qword [rsi]
mov qword [rsi], r13
mov qword [rbp - 0x41], rax
mov rax, qword [rsi + 8]
mov qword [rsi + 8], r12
mov qword [rbp - 0x39], rax
xor r12d, r12d
lea rcx, [rbp - 0x41]
call fcn.140015910
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x41]
call fcn.1401588c0
nop
lea rcx, [rbp + 7]
call fcn.140002550
nop
test rbx, rbx
je 0x140014c9f
mov rcx, qword [rbx]
test rcx, rcx
je 0x140014c9b
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x19], r12
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140158860
lea r11, [rsp + 0xd0]
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.14017a7fc
nop
int3