Function at 0x140024480
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x290
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor ebp, ebp
mov ebx, ebp
cmp dword [0x14007d440], ebx
jbe 0x1400246e2
xor edx, edx
mov qword [rsp + 0x2a0], rsi
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.1400423d0
mov eax, dword [0x7ffe02d8]
lea r9, str.GlobalAsMonStartupTask_NamedPipeMux
lea r8, str._s_0x_x
mov dword [rsp + 0x20], eax
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.14000a160
lea r8, [rsp + 0x70]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenMutexW]
lea rsi, [0x14007d340]
test rax, rax
je 0x14002469e
mov rcx, rax
mov qword [rsp + 0x2a8], rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [0x7ffe02d8]
lea r9, str..pipeAsMonStartupTask_NamedPipeCommand
lea r8, str._s_0x_x
mov dword [rsp + 0x20], eax
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.14000a160
nop dword [rax]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x70]
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400245b0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xe7
jne 0x140024696
mov edx, 0x7d0
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_WaitNamedPipeW]
test eax, eax
jne 0x140024550
jmp 0x140024696
mov eax, dword [0x14007d440]
test eax, eax
je 0x140024688
movaps xmm0, xmmword [0x14007d340]
add eax, 0xffffffff
movaps xmm1, xmmword [0x14007d350]
mov edx, ebp
movups xmmword [rsp + 0x48], xmm0
mov dword [0x14007d440], eax
movups xmmword [rsp + 0x58], xmm1
je 0x140024647
nop dword [rax]
nop word [rax + rax]
lea ebx, [rdx + 1]
mov eax, edx
mov ecx, ebx
shl rcx, 5
add rcx, rsi
shl rax, 5
add rax, rsi
je 0x14002462b
test rcx, rcx
je 0x14002461c
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
jmp 0x14002463b
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
call fcn.140046f54
mov dword [rax], 0x16
call fcn.140046e34
mov eax, dword [0x14007d440]
mov edx, ebx
cmp ebx, eax
jb 0x1400245f0
xor ecx, ecx
shl rax, 5
add rax, rsi
mov dword [rsp + 0x40], 0x20
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x48]
lea r8d, [rcx + 0x20]
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
jmp 0x1400245b0
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ebx, 1
mov rdi, qword [rsp + 0x2a8]
mov edx, ebp
cmp dword [0x14007d440], edx
jbe 0x1400246d4
nop dword [rax + rax]
xor eax, eax
mov ecx, edx
shl rcx, 5
inc edx
add rcx, rsi
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
cmp edx, dword [0x14007d440]
jb 0x1400246b0
mov rsi, qword [rsp + 0x2a0]
mov dword [0x14007d440], ebp
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400406e0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rbp
ret