Function at 0x140007370
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, rdx
mov rsi, rcx
mov edi, dword [rdx]
xor r12d, r12d
mov ebx, r12d
add rcx, 0x18
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
mov rax, qword [rsi]
mov r8, qword [rsi + 8]
cmp rax, r8
je 0x1400073db
mov rcx, qword [rax]
cmp dword [rcx + 8], edi
je 0x1400073d8
add rax, 8
cmp rax, r8
jne 0x1400073c5
jmp 0x1400073db
mov rbx, rcx
lea rcx, [rsi + 0x18]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
mov bpl, 0xff
test rbx, rbx
jne 0x140007440
mov eax, dword [r14]
mov byte [rsp + 0x68], 2
mov dword [rsp + 0x69], eax
mov r9, qword [rsi + 0x20]
add r9, 0x28
lea r8, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.1400088d0
nop
mov rdx, rax
mov rcx, qword [rsi + 0x20]
call fcn.14000ca30
nop
mov r8, qword [rsp + 0x48]
test r8, r8
je 0x1400075b9
xor edx, edx
mov rcx, qword [0x1400600f8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400075b9
cmp qword [r14 + 4], r12
jne 0x1400074b8
lea rdi, [rbx + 0x40]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140007457
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1400074b8
cmp qword [rdi + 0x18], 8
jb 0x14000748e
mov rdi, qword [rdi]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
jne 0x1400074c6
mov bpl, 6
jmp 0x140007516
mov dword [rsp + 0x68], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x68]
mov r8d, dword [r14 + 0x14]
mov rdx, qword [r14 + 0xc]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400074fa
mov rcx, qword [r14 + 0x14]
mov eax, dword [rsp + 0x68]
cmp rcx, rax
jne 0x1400074fa
add qword [rbx + 0x10], rcx
jmp 0x1400074fd
mov bpl, 4
mov rax, qword [rbx + 0x10]
cmp rax, qword [rbx + 0x18]
jb 0x14000750c
mov bpl, 1
jmp 0x140007516
cmp bpl, 0xff
je 0x1400075b9
mov eax, dword [r14]
mov byte [rsp + 0x68], bpl
mov dword [rsp + 0x69], eax
mov r9, qword [rsi + 0x20]
add r9, 0x28
lea r8, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.1400088d0
nop
mov rdx, rax
mov rcx, qword [rsi + 0x20]
call fcn.14000ca30
nop
mov r8, qword [rsp + 0x48]
test r8, r8
je 0x140007560
xor edx, edx
mov rcx, qword [0x1400600f8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [rsi + 0x18]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rcx, qword [rsi]
mov r8, qword [rsi + 8]
cmp rcx, r8
je 0x1400075a7
mov edx, dword [rbx + 8]
nop dword [rax]
mov rax, qword [rcx]
cmp dword [rax + 8], edx
je 0x140007591
add rcx, 8
cmp rcx, r8
jne 0x140007580
cmp rcx, r8
je 0x1400075a7
lea rdx, [rcx + 8]
sub r8, rdx
call fcn.14002f4b0
add qword [rsi + 8], 0xfffffffffffffff8
lea rcx, [rsi + 0x18]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rdx, rbx
call fcn.1400079c0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400111c0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret