Function at 0x42def0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8dd5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xe60
mov eax, dword [0x506054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
call fcn.0040bd30
mov ecx, eax
test ecx, ecx
je 0x42e266
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push dword [0x50f2b8]
push str..pipe_sessionid_ld
push eax
call fcn.0040b570
add esp, 0xc
lea ecx, [ebp - 0x18]
push str.Mouse
call fcn.0042e620
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x34], xmm0
push 6
movq qword [ebp - 0x24], xmm0
movq qword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
call fcn.004364e1
mov dword [ebp - 0x20], eax
push ecx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00405af0
test eax, eax
jne 0x42dfe3
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x42dfd1
movq xmm0, qword [eax]
movq qword [ebp - 0x40], xmm0
mov eax, dword [eax + 8]
mov dword [ebp - 0x38], eax
jmp 0x42dfe3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x40]
push 0
push 0
push 3
push eax
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0xe6c], edi
cmp edi, 0xffffffff
je 0x42e14c
push 0xe10
lea eax, [ebp - 0xe54]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [str.CA8w]
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp - 0xe58], 8
movups xmmword [ebp - 0xe68], xmm0
test eax, eax
je 0x42e05e
mov ecx, 0x3f
lea edi, [ebp - 0xe54]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0xe6c]
jmp 0x42e086
push 0xfc
lea eax, [ebp - 0xe54]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0xe24
lea eax, [ebp - 0xe68]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x42e0c5
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0xe6c]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42e1c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [ecx]
mov ecx, dword [0x50e588]
cmp ecx, dword [edx + 4]
jle 0x42e12d
push 0x50e588
call fcn.00436657
add esp, 4
cmp dword [0x50e588], 0xffffffff
jne 0x42e12d
push 0x210
push 0
push 0x50e378
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call fcn.0040a390
push 0x4be580
call fcn.00436969
add esp, 4
push 0x50e588
call fcn.0043660d
add esp, 4
push 0x2b7
push ecx
push edi
mov ecx, 0x50e378
call fcn.0040aab0
push dword [ebp - 0xe6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42e1c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x50e588]
cmp eax, dword [ecx + 4]
jle 0x42e1b2
push 0x50e588
call fcn.00436657
add esp, 4
cmp dword [0x50e588], 0xffffffff
jne 0x42e1b2
push 0x210
push 0
push 0x50e378
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call fcn.0040a390
push 0x4be580
call fcn.00436969
add esp, 4
push 0x50e588
call fcn.0043660d
add esp, 4
push 0x2bf
push ecx
push edi
mov ecx, 0x50e378
call fcn.0040aab0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x42e1d1
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x30]
mov ecx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x42e1e7
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x42e1f1
push eax
call ecx
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42e203
push 0x20
push eax
call fcn.00436511
add esp, 8
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x42e215
push 0xc
push eax
call fcn.00436511
add esp, 8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42e227
push 6
push eax
call fcn.00436511
add esp, 8
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42e246
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004364d3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.0040bb00
int3