Function at 0x10042a20
Capabilities:
Allocate or change rwx memory

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 0x1006ecf1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x10086040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov edi, ecx
mov dword [ebp - 0x1c], edi
cmp dword [0x100892c0], 0
jne 0x10042be7
xorps xmm0, xmm0
push 0x20
movups xmmword [ebp - 0x38], xmm0
call fcn.10045ee0
movups xmm0, xmmword [str.IAudioClientStop]
mov esi, eax
mov dword [ebp - 0x28], 0x10
add esp, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x24], 0x1f
movups xmmword [esi], xmm0
mov byte [esi + 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0x40
push 4
push dword [edi]
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10042aef
push 0x20
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.1004633f
add esp, 8
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [edi]
push 0x28
mov esi, dword [eax + 0x2c]
call fcn.10045ee0
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
lea ecx, [edi + 4]
mov dword [edi], 0
push eax
call fcn.10005430
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], 0x100427f0
mov byte [edi + 0x24], 0
cmp ecx, 0xf
jbe 0x10042b62
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10042b58
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10043077
push ecx
push edx
call fcn.1004633f
add esp, 8
test edi, edi
je 0x10042ad6
mov eax, dword [0x100892c0]
mov dword [0x100892c0], edi
test eax, eax
je 0x10042b7f
push eax
call fcn.10027430
cmp byte [edi + 0x24], 0
jne 0x10042bdd
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
push edi
call fcn.10044d20
test eax, eax
jne 0x10042bb5
mov ecx, dword [edi + 0x1c]
call fcn.100451a0
test eax, eax
jne 0x10042ba7
mov byte [edi + 0x24], 1
jmp 0x10042bb5
mov ecx, dword [edi + 0x1c]
call fcn.10044ff0
mov dword [edi], 0
cmp byte [edi + 0x24], 0
jne 0x10042bdd
mov eax, dword [0x100892c0]
mov dword [0x100892c0], 0
test eax, eax
je 0x10042ad6
push eax
call fcn.10027430
jmp 0x10042ad6
mov eax, dword [edi]
mov edi, dword [ebp - 0x1c]
mov dword [0x10088e90], eax
cmp dword [0x100892bc], 0
jne 0x10042d5f
xorps xmm0, xmm0
push 0x20
movups xmmword [ebp - 0x38], xmm0
call fcn.10045ee0
movups xmm0, xmmword [str.IAudioClientGetCurrentPadding]
mov esi, eax
mov dword [ebp - 0x28], 0x1d
add esp, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x24], 0x1f
movups xmmword [esi], xmm0
movq xmm0, qword [0x1007c1b8]
movq qword [esi + 0x10], xmm0
mov ecx, dword [0x1007c1c0]
mov dword [esi + 0x18], ecx
mov al, byte [0x1007c1c4]
mov byte [esi + 0x1c], al
mov byte [esi + 0x1d], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 2
push eax
push 0x40
push 4
push dword [edi]
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10042ac4
mov eax, dword [edi]
push 0x28
mov esi, dword [eax + 0x18]
call fcn.10045ee0
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
lea ecx, [edi + 4]
mov dword [edi], 0
push eax
call fcn.10005430
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], 0x10042740
mov byte [edi + 0x24], 0
cmp ecx, 0xf
jbe 0x10042cdd
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10042cd3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004307c
push ecx
push edx
call fcn.1004633f
add esp, 8
test edi, edi
je 0x10042ad6
mov eax, dword [0x100892bc]
mov dword [0x100892bc], edi
test eax, eax
je 0x10042cfa
push eax
call fcn.10027430
cmp byte [edi + 0x24], 0
jne 0x10042d58
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
push edi
call fcn.10044d20
test eax, eax
jne 0x10042d30
mov ecx, dword [edi + 0x1c]
call fcn.100451a0
test eax, eax
jne 0x10042d22
mov byte [edi + 0x24], 1
jmp 0x10042d30
mov ecx, dword [edi + 0x1c]
call fcn.10044ff0
mov dword [edi], 0
cmp byte [edi + 0x24], 0
jne 0x10042d58
mov eax, dword [0x100892bc]
mov dword [0x100892bc], 0
test eax, eax
je 0x10042ad6
push eax
call fcn.10027430
jmp 0x10042ad6
mov eax, dword [edi]
mov dword [0x10088e88], eax
cmp dword [0x100892c4], 0
jne 0x10042edc
xorps xmm0, xmm0
push 0x20
movups xmmword [ebp - 0x38], xmm0
call fcn.10045ee0
movups xmm0, xmmword [str.IAudioRenderClientGetBuffer]
mov esi, eax
mov dword [ebp - 0x28], 0x1b
add esp, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x24], 0x1f
movups xmmword [esi], xmm0
movq xmm0, qword [0x1007c19c]
movq qword [esi + 0x10], xmm0
mov cx, word [0x1007c1a4]
mov word [esi + 0x18], cx
mov al, byte [0x1007c1a6]
mov byte [esi + 0x1a], al
mov byte [esi + 0x1b], 0
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push 0x40
mov dword [ebp - 4], 4
push 4
push dword [edi]
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10042ac4
mov eax, dword [edi]
push 0x28
mov esi, dword [eax + 0xc]
call fcn.10045ee0
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 5
lea ecx, [edi + 4]
mov dword [edi], 0
push eax
call fcn.10005430
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], 0x10042840
mov byte [edi + 0x24], 0
cmp ecx, 0xf
jbe 0x10042e5a
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10042e50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10043081
push ecx
push edx
call fcn.1004633f
add esp, 8
test edi, edi
je 0x10042ad6
mov eax, dword [0x100892c4]
mov dword [0x100892c4], edi
test eax, eax
je 0x10042e77
push eax
call fcn.10027430
cmp byte [edi + 0x24], 0
jne 0x10042ed5
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
push edi
call fcn.10044d20
test eax, eax
jne 0x10042ead
mov ecx, dword [edi + 0x1c]
call fcn.100451a0
test eax, eax
jne 0x10042e9f
mov byte [edi + 0x24], 1
jmp 0x10042ead
mov ecx, dword [edi + 0x1c]
call fcn.10044ff0
mov dword [edi], 0
cmp byte [edi + 0x24], 0
jne 0x10042ed5
mov eax, dword [0x100892c4]
mov dword [0x100892c4], 0
test eax, eax
je 0x10042ad6
push eax
call fcn.10027430
jmp 0x10042ad6
mov eax, dword [edi]
mov dword [0x10088e84], eax
cmp dword [0x100892c8], 0
jne 0x10043061
xorps xmm0, xmm0
push 0x20
movups xmmword [ebp - 0x38], xmm0
call fcn.10045ee0
movups xmm0, xmmword [str.IAudioRenderClientReleaseBuffer]
mov esi, eax
mov dword [ebp - 0x28], 0x1f
add esp, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x24], 0x1f
movups xmmword [esi], xmm0
movq xmm0, qword [0x1007c1f8]
movq qword [esi + 0x10], xmm0
mov ecx, dword [0x1007c200]
mov dword [esi + 0x18], ecx
mov ax, word [0x1007c204]
mov word [esi + 0x1c], ax
mov al, byte [0x1007c206]
mov byte [esi + 0x1e], al
mov byte [esi + 0x1f], 0
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push 0x40
mov dword [ebp - 4], 6
push 4
push dword [edi]
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10042ac4
mov eax, dword [edi]
push 0x28
mov esi, dword [eax + 0x10]
call fcn.10045ee0
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 7
lea ecx, [edi + 4]
mov dword [edi], 0
push eax
call fcn.10005430
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], 0x10042930
mov byte [edi + 0x24], 0
cmp ecx, 0xf
jbe 0x10042fdf
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10042fd5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10043086
push ecx
push edx
call fcn.1004633f
add esp, 8
test edi, edi
je 0x10042ad6
mov eax, dword [0x100892c8]
mov dword [0x100892c8], edi
test eax, eax
je 0x10042ffc
push eax
call fcn.10027430
cmp byte [edi + 0x24], 0
jne 0x1004305a
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
push edi
call fcn.10044d20
test eax, eax
jne 0x10043032
mov ecx, dword [edi + 0x1c]
call fcn.100451a0
test eax, eax
jne 0x10043024
mov byte [edi + 0x24], 1
jmp 0x10043032
mov ecx, dword [edi + 0x1c]
call fcn.10044ff0
mov dword [edi], 0
cmp byte [edi + 0x24], 0
jne 0x1004305a
mov eax, dword [0x100892c8]
mov dword [0x100892c8], 0
test eax, eax
je 0x10042ad6
push eax
call fcn.10027430
jmp 0x10042ad6
mov eax, dword [edi]
mov dword [0x10088e94], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1004eae1
call fcn.1004eae1
call fcn.1004eae1
call fcn.1004eae1
int3