Function at 0x42db70
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 0x42dedf
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.headset
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 0x42dc63
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x42dc51
movq xmm0, qword [eax]
movq qword [ebp - 0x40], xmm0
mov eax, dword [eax + 8]
mov dword [ebp - 0x38], eax
jmp 0x42dc63
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 0x42ddc5
push 0xe10
lea eax, [ebp - 0xe54]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [0x4ed690]
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp - 0xe58], 4
movups xmmword [ebp - 0xe68], xmm0
test eax, eax
je 0x42dcd9
movups xmm0, xmmword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xe44], eax
movups xmmword [ebp - 0xe54], xmm0
jmp 0x42dcff
xorps xmm0, xmm0
mov dword [ebp - 0xe44], 0
movups xmmword [ebp - 0xe54], xmm0
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 0x42dd3e
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0xe6c]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42de3c
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 0x42dda6
push 0x50e588
call fcn.00436657
add esp, 4
cmp dword [0x50e588], 0xffffffff
jne 0x42dda6
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 0x26b
push ecx
push edi
mov ecx, 0x50e378
call fcn.0040aab0
push dword [ebp - 0xe6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42de3c
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 0x42de2b
push 0x50e588
call fcn.00436657
add esp, 4
cmp dword [0x50e588], 0xffffffff
jne 0x42de2b
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 0x273
push ecx
push edi
mov ecx, 0x50e378
call fcn.0040aab0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x42de4a
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 0x42de60
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x42de6a
push eax
call ecx
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42de7c
push 0x20
push eax
call fcn.00436511
add esp, 8
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x42de8e
push 0xc
push eax
call fcn.00436511
add esp, 8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42dea0
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 0x42debf
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