Function at 0x40a6b0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rbp, rcx
call fcn.00495480
nop
lea rax, [0x004f7e08]
mov qword [rbp], rax
lea rcx, [rbp + 0x228]
call fcn.00461010
nop
lea rbx, [rbp + 0x290]
mov qword [rsp + 0xb8], rbx
xor r15d, r15d
mov qword [rbx + 8], r15
lea rax, [0x004f8168]
mov qword [rbx], rax
lea rcx, [rbx + 0x10]
call fcn.004a17ec
lea r11, [0x004f81d0]
mov qword [rbx + 0x10], r11
lea rcx, [rbx + 0x38]
call fcn.004a17ec
lea r11, [0x004f81f0]
mov qword [rbx + 0x38], r11
mov dword [rbx + 0x84], r15d
mov dword [rbx + 0x68], r15d
or rsi, 0xffffffffffffffff
mov dword [rbx + 0x7c], esi
mov dword [rbx + 0x80], esi
mov qword [rbx + 0x70], r15
mov dword [rbx + 0x78], r15d
mov dword [rbx + 0x60], 0xc0c0c0
mov dword [rbx + 0x64], r15d
lea rdx, [0x0053f9c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
mov dword [rbx + 0x88], r15d
lea rcx, [rbp + 0x320]
call fcn.0049f5ac
nop
mov byte [rbp + 0x48], 1
mov qword [rbp + 0xb8], r15
mov qword [rbp + 0xc0], r15
mov qword [rbp + 0xa8], r15
mov dword [rbp + 0xc8], r15d
mov dword [rbp + 0x210], esi
mov qword [rbp + 0x208], r15
mov dword [rbp + 0xcc], r15d
mov dword [rbp + 0x214], r15d
mov dword [rbp + 0x218], r15d
mov dword [rbp + 0x21c], r15d
mov dword [rbp + 0x220], r15d
mov qword [rbp + 0x1d8], r15
mov qword [rbp + 0x1e0], r15
mov qword [rbp + 0x1e8], r15
mov qword [rbp + 0x1f8], r15
mov qword [rbp + 0x200], r15
mov dword [rbp + 0xd0], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.0049b13c
mov rbx, rax
call fcn.0049d8dc
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x40a838
mov ecx, 0x80004005
call fcn.004034c0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0xb8], rdi
test rbx, rbx
je 0x40a89b
test rbx, 0xffffffffffff0000
jne 0x40a887
movzx ebx, bx
mov ecx, ebx
call fcn.0049f018
test rax, rax
je 0x40a8b9
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.0040a480
mov rdi, qword [rsp + 0xb8]
jmp 0x40a8b9
xor eax, eax
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
jmp 0x40a89e
mov ecx, r15d
mov r8d, ecx
mov rdx, rbx
lea rcx, [rsp + 0xb8]
call fcn.00409ff0
mov rdi, qword [rsp + 0xb8]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0x80000000
lea r9, str.Realtek_HD_Audio_CPL_for_Vista
mov r8, rdi
xor edx, edx
mov rcx, rbp
call fcn.00499aa4
lea rcx, [0x0053f9e8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rbx, [rbp + 0xd8]
mov r12d, 0x20
nop
nop
nop
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx], rax
add rbx, 8
sub r12, 1
jne 0x40a920
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [r12 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x1d8], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x1e0], rax
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
lea rcx, [0x0040bac0]
call fcn.004a0d48
mov r12, rax
test rax, rax
jne 0x40a9b9
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x40aad7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x40aad7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
lea r9, [rbp + 0x1e8]
mov r8, rbx
mov rdx, qword [r12 + 0x58]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [r12 + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x1f0], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x1f8], rax
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
lea rcx, [0x0040d260]
call fcn.004a0d48
mov r12, rax
test rax, rax
jne 0x40aa70
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x40aad7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x40aad7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
lea r9, [rbp + 0x200]
mov r8, rbx
mov rdx, qword [r12 + 0x58]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [r12 + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbp
call fcn.0040c4d0
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x40aad7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, rbp
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret