Function at 0x42e280
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 0x4b8e15
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 edi, edx
call fcn.0040bd30
mov ecx, eax
test ecx, ecx
je 0x42e611
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.Mousepad
call fcn.0042e620
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x30], xmm0
push 6
movq qword [ebp - 0x20], xmm0
movq qword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
call fcn.004364e1
mov dword [ebp - 0x1c], eax
push ecx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00405af0
test eax, eax
jne 0x42e372
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42e360
movq xmm0, qword [eax]
movq qword [ebp - 0x40], xmm0
mov eax, dword [eax + 8]
mov dword [ebp - 0x38], eax
jmp 0x42e372
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 dword [ebp - 0xe6c], eax
cmp eax, 0xffffffff
je 0x42e4f7
push 0xe10
lea eax, [ebp - 0xe54]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [0x4ed680]
add esp, 0xc
mov dword [ebp - 0xe58], 2
movups xmmword [ebp - 0xe68], xmm0
test edi, edi
je 0x42e406
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x38]
mov dword [ebp - 0xe1c], eax
movups xmmword [ebp - 0xe54], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [ebp - 0xe44], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [ebp - 0xe34], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [ebp - 0xe24], xmm0
jmp 0x42e42b
push 0x3c
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]
mov edi, dword [ebp - 0xe6c]
lea eax, [ebp - 0x34]
push 0
push eax
push 0xe24
lea eax, [ebp - 0xe68]
mov dword [ebp - 0x34], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x42e470
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0xe6c]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42e56e
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 0x42e4d8
push 0x50e588
call fcn.00436657
add esp, 4
cmp dword [0x50e588], 0xffffffff
jne 0x42e4d8
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 0x303
push ecx
push edi
mov ecx, 0x50e378
call fcn.0040aab0
push dword [ebp - 0xe6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42e56e
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 0x42e55d
push 0x50e588
call fcn.00436657
add esp, 4
cmp dword [0x50e588], 0xffffffff
jne 0x42e55d
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 0x30b
push ecx
push edi
mov ecx, 0x50e378
call fcn.0040aab0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x42e57c
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x42e592
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42e59c
push eax
call ecx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x42e5ae
push 0x20
push eax
call fcn.00436511
add esp, 8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42e5c0
push 0xc
push eax
call fcn.00436511
add esp, 8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42e5d2
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 0x42e5f1
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