Function at 0x14007e4f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
lea rdi, [0x14012dcb0]
mov r14, rcx
mov rdx, rdi
call fcn.140024c30
mov edx, eax
shr edx, 0x1f
test dl, dl
jne 0x14007e756
mov rax, qword [r14 + 0x20]
lea rcx, [r14 + 0x28]
mov qword [rsp + 0x90], rbx
mov edx, 2
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], r15
cmp dword [rax + 0x40], 1
sete al
mov byte [r14 + 0x298], al
call fcn.140025da0
xor ebx, ebx
mov ecx, ebx
movzx edx, word [rax + rcx*2]
cmp dx, word [rdi + rcx*2]
jne 0x14007e579
movzx edx, word [rax + rcx*2 + 2]
cmp dx, word [rdi + rcx*2 + 2]
jne 0x14007e579
add rcx, 2
cmp rcx, 0xa
jne 0x14007e551
mov byte [r14 + 0x28a], 1
mov rcx, r14
call fcn.140024080
mov eax, dword [0x1401490d0]
lea r9, [rbp + 0x38]
movzx ecx, byte [r14 + 0x298]
mov edx, 0x10a
movups xmm0, xmmword [str.Creative_Voice_File]
mov dword [rbp - 0x28], eax
test cl, cl
movzx eax, word [0x1401490d4]
mov r8d, 0x1a
mov rcx, qword [r14 + 0x38]
mov word [rbp - 0x24], ax
mov eax, 0x114
cmovne ax, dx
mov dword [rbp + 0x38], ebx
mov word [rbp - 0x22], ax
mov edx, 0x1129
mov eax, 0x111f
mov qword [rsp + 0x20], rbx
cmovne ax, dx
lea rdx, [rbp - 0x38]
mov word [rbp - 0x20], ax
movups xmmword [rbp - 0x38], xmm0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [r14 + 0x10]
mov edx, recv
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rdi, rax
mov r15, 0xffffffffffffffff
test rax, rax
je 0x14007e679
mov rcx, r15
nop
inc rcx
cmp byte [rax + rcx], bl
jne 0x14007e610
inc ecx
mov byte [rbp + 0x38], 5
mov eax, ecx
mov byte [rbp + 0x39], cl
shr ecx, 0x10
lea r9, [rbp - 0x40]
mov byte [rbp + 0x3b], cl
lea rdx, [rbp + 0x38]
mov rcx, qword [r14 + 0x38]
mov r8d, 4
shr eax, 8
mov byte [rbp + 0x3a], al
mov dword [rbp - 0x40], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, r15
mov dword [rbp - 0x40], ebx
cmp byte [rdi + rax + 1], bl
lea rax, [rax + 1]
jne 0x14007e655
mov rcx, qword [r14 + 0x38]
lea r8d, [rax + 1]
lea r9, [rbp - 0x40]
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
mov dword [r14 + 0x29c], ebx
mov byte [r14 + 0x299], 1
call fcn.1400246e0
mov rcx, qword [r14 + 0x38]
lea r8, [rbp + 0x38]
mov r9d, 1
mov qword [rbp + 0x38], rbx
mov rdx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edi, dword [r14 + 0x2a8]
lea r9, [rbp + 0x38]
mov rcx, qword [r14 + 0x38]
lea rdx, [rbp + 0x28]
test eax, eax
mov byte [rbp + 0x28], bl
mov r8d, 1
mov qword [rsp + 0x20], rbx
cmovne r15, qword [rbp + 0x38]
sub edi, dword [r14 + 0x2a0]
add edi, r15d
mov dword [rbp + 0x38], ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [r14 + 0x2a8]
xor r9d, r9d
mov rdx, qword [r14 + 0x2a0]
add eax, 3
movsxd rcx, eax
xor r8d, r8d
sub rdx, rcx
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [r14 + 0x38]
lea r9, [rbp + 0x38]
mov eax, edi
mov byte [rbp + 0x30], dil
shr eax, 8
lea rdx, [rbp + 0x30]
shr edi, 0x10
mov r8d, 3
mov byte [rbp + 0x31], al
mov byte [rbp + 0x32], dil
mov dword [rbp + 0x38], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r15, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop r14
pop rdi
pop rbp
ret