Function at 0x140020220
Capabilities:
Check os version
Resume thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x70
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rsi, rcx
call fcn.1401f5f84
nop
lea rax, [0x14027ad78]
mov qword [rsi], rax
lea rax, method.CArray_int__int_const____ptr64_.virtual_0
mov qword [rsi + 0x210], rax
xor r14d, r14d
mov qword [rsi + 0x228], r14
mov qword [rsi + 0x230], r14
mov qword [rsi + 0x220], r14
mov qword [rsi + 0x218], r14
mov qword [rsi + 0x238], r14
mov qword [rsi + 0x240], 0xa
lea rdi, [rsi + 0x248]
mov qword [rsp + 0xa8], rdi
xor edx, edx
mov rcx, rdi
call fcn.140205090
nop
lea rax, [0x14027b010]
mov qword [rdi], rax
mov rcx, rdi
call fcn.14002a7d0
test eax, eax
jne 0x1400202cc
call fcn.1401fd670
nop
lea rdi, [rsi + 0x2b8]
mov qword [rsp + 0xa8], rdi
mov rcx, rdi
call fcn.140148780
nop
lea rax, [0x140298e08]
mov qword [rdi], rax
lea rcx, [rdi + 0xa0]
mov edx, 0xa
call fcn.1402041a8
nop
lea rbx, [rsi + 0x390]
mov qword [rsp + 0xa8], rbx
mov qword [rbx + 8], r14
lea rax, [0x14027ba08]
mov qword [rbx], rax
lea rcx, [rbx + 0x10]
call fcn.140206c88
lea r11, method.CPtrArray.virtual_0
mov qword [rbx + 0x10], r11
lea rcx, [rbx + 0x38]
call fcn.140206c88
lea r11, method.CPtrArray.virtual_0
mov qword [rbx + 0x38], r11
mov dword [rbx + 0x84], r14d
mov dword [rbx + 0x68], r14d
or rbp, 0xffffffffffffffff
mov dword [rbx + 0x7c], ebp
mov dword [rbx + 0x80], ebp
mov qword [rbx + 0x70], r14
mov dword [rbx + 0x78], r14d
mov dword [rbx + 0x60], 0xc0c0c0
mov dword [rbx + 0x64], r14d
lea rdx, [0x14032eef8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
mov dword [rbx + 0x88], r14d
lea rcx, [rsi + 0x420]
call fcn.1402039b4
nop
mov edx, 0x1d3
lea rcx, [rsi + 0x430]
call fcn.14015fa10
lea r11, [0x1402ad998]
mov qword [rsi + 0x430], r11
lea rax, [0x1402adc70]
mov qword [rsi + 0x518], rax
mov dword [rsi + 0x710], 0x816
mov dword [rsi + 0x714], r14d
call fcn.1401ff164
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400203f1
mov ecx, 0x80004005
call fcn.140002bc0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi + 0x720], rax
lea rbx, [rsi + 0x728]
mov qword [rsp + 0xa8], rbx
mov edx, 0xa
mov rcx, rbx
call fcn.1401fd394
lea rcx, method.CPtrList.virtual_0
mov qword [rbx], rcx
lea rcx, [rbx + 0x38]
mov edx, 0xa
call fcn.1402041a8
nop
mov edx, 0xa
lea rcx, [rbx + 0x70]
call fcn.1401fd394
lea r11, method.CPtrList.virtual_0
mov qword [rbx + 0x70], r11
mov qword [rbx + 0xa8], r14
mov qword [rbx + 0xb0], r14
mov dword [rbx + 0xb8], r14d
mov qword [rbx + 0xc0], r14
lea rcx, [rsi + 0x800]
call fcn.1401b2ec0
nop
mov byte [rsi + 0x48], 1
mov qword [rsi + 0xc0], r14
mov qword [rsi + 0xc8], r14
mov qword [rsi + 0xa8], r14
mov dword [rsi + 0xd0], r14d
mov dword [rsi + 0xd4], r14d
mov dword [rsi + 0x2a0], ebp
mov qword [rsi + 0x298], r14
mov dword [rsi + 0xd8], r14d
mov dword [rsi + 0x2a4], r14d
mov dword [rsi + 0x2a8], r14d
mov dword [rsi + 0x2ac], r14d
mov dword [rsi + 0x2b0], r14d
mov qword [rsi + 0x1e0], r14
mov qword [rsi + 0x1e8], r14
mov qword [rsi + 0x1f0], r14
mov qword [rsi + 0x208], r14
mov qword [rsi + 0x200], r14
mov qword [rsi + 0x288], r14
mov qword [rsi + 0x280], r14
mov qword [rsi + 0x290], r14
mov dword [rsi + 0xdc], r14d
mov eax, dword [0x14032f0e4]
test eax, eax
jne 0x140020539
mov dword [0x14032f0e0], 0x114
lea rcx, [0x14032f0e0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x14032f0e4]
cmp eax, 6
jne 0x14002054e
cmp dword [0x14032f0e8], 0
jne 0x14002054e
mov eax, 1
jmp 0x140020551
mov eax, r14d
mov dword [rsi + 0x718], eax
mov dword [rsi + 0x7f0], r14d
mov dword [rsi + 0x7f4], r14d
mov dword [rsi + 0x7f8], r14d
mov dword [rsi + 0x7fc], r14d
mov dword [rsi + 0xb0], 1
mov dword [0x14032eef0], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1401fc19c
mov rbx, rax
call fcn.1401ff164
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400205b6
mov ecx, 0x80004005
call fcn.140002bc0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0xa8], rdi
test rbx, rbx
je 0x140020619
test rbx, 0xffffffffffff0000
jne 0x140020605
movzx ebx, bx
mov ecx, ebx
call fcn.140200fbc
test rax, rax
je 0x140020637
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.1401bacf0
mov rdi, qword [rsp + 0xa8]
jmp 0x140020637
xor eax, eax
mov rcx, rbp
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
jmp 0x14002061c
mov ecx, r14d
mov r8d, ecx
mov rdx, rbx
lea rcx, [rsp + 0xa8]
call fcn.14000b770
mov rdi, qword [rsp + 0xa8]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 0x80000000
lea r9, str.Realtek_HD_Audio_EP
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.1401faa78
lea rcx, [0x14032f080]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x1f8], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x200], rax
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
lea rcx, [0x140025ce0]
call fcn.140200e00
mov r12, rax
test rax, rax
jne 0x1400206f6
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140020755
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140020755
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], r14d
mov dword [rsp + 0x20], r14d
lea r9, [rsi + 0x208]
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]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140020755
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, rsi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret