Function at 0x4476f0
Capabilities:
Check os version
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4f1f16
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x536ed4]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x536ed4]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
push 0x20019
xor edi, edi
push edi
mov dword [esp + 0x23c], edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push str.SoftwareRealtekAudioGUI_INFORMATIONDeviceDefault
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], edi
call esi
cmp eax, edi
jne 0x447763
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
jmp 0x4477a9
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push str.SoftwareRealtekAudioGUI_INFORMATIONDeviceDefault
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x447b84
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x4477a9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x20]
push ecx
push 0x2001f
push edi
push str.SoftwareRealtekAudioGUI_INFORMATIONDeviceDefault
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], edi
call esi
cmp eax, edi
jne 0x447b75
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, edi
je 0x4477dd
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], edx
jne 0x447b75
call fcn.004bb047
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x447807
push 0x80004005
call fcn.00401730
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
push 0x200
lea ecx, [esp + 0x28]
push edi
mov byte [esp + 0x238], 1
push ecx
mov dword [esp + 0x28], pe_nt_image_headers32
call fcn.004d1c40
add esp, 0xc
push str.DefaultPlaybackDevice
lea edx, [esp + 0x1c]
push edx
lea edi, [esp + 0x24]
lea esi, [esp + 0x2c]
call fcn.00438da0
cmp eax, 2
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jne 0x4478f4
push 1
push 0
lea esi, [esp + 0x1c]
call fcn.00451970
mov ebp, dword [esp + 0x1c]
add esp, 8
cmp dword [ebp - 4], 1
jle 0x447889
mov eax, dword [ebp - 0xc]
push eax
mov ecx, esi
call fcn.00401a30
mov ebp, dword [esp + 0x14]
xor eax, eax
test ebp, ebp
setne al
test eax, eax
jne 0x44789e
push 0x80004005
call fcn.00401730
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x20]
lea ecx, [eax + eax + 2]
push ecx
push ebp
push 1
push 0
push str.DefaultPlaybackDevice
push edx
call ebx
test ebp, ebp
jne 0x4478c3
xor eax, eax
jmp 0x4478e5
mov eax, ebp
lea edx, [eax + 2]
jmp 0x4478d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4478d0
sub eax, edx
sar eax, 1
js 0x447966
cmp eax, dword [ebp - 8]
jg 0x447966
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2], 0
push 0x200
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004d1c40
add esp, 0xc
push str.DefaultCaptureDevice
lea ecx, [esp + 0x1c]
push ecx
lea edi, [esp + 0x24]
lea esi, [esp + 0x2c]
call fcn.00438da0
cmp eax, 2
jne 0x4479c0
push 1
push 1
lea esi, [esp + 0x1c]
call fcn.00451970
mov ebp, dword [esp + 0x1c]
add esp, 8
cmp dword [ebp - 4], 1
jle 0x447951
mov edx, dword [ebp - 0xc]
push edx
mov ecx, esi
call fcn.00401a30
mov ebp, dword [esp + 0x14]
xor eax, eax
test ebp, ebp
setne al
test eax, eax
jne 0x447970
push 0x80004005
call fcn.00401730
push 0x80070057
call fcn.00401730
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x20]
lea eax, [eax + eax + 2]
push eax
push ebp
push 1
push 0
push str.DefaultCaptureDevice
push ecx
call ebx
test ebp, ebp
jne 0x447995
xor eax, eax
jmp 0x4479b1
mov eax, ebp
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4479a0
sub eax, edx
sar eax, 1
js 0x447966
cmp eax, dword [ebp - 8]
jg 0x447966
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2], 0
mov eax, dword [0x54af3c]
test eax, eax
jne 0x4479e3
push 0x54af38
mov dword [0x54af38], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x54af3c]
cmp eax, 6
jne 0x4479f6
cmp dword [0x54af40], 1
jae 0x4479fc
jmp 0x447b38
jbe 0x447b38
push 0x200
lea edx, [esp + 0x28]
push 0
push edx
call fcn.004d1c40
add esp, 0xc
push str.DefaultCommPlaybackDevice
lea eax, [esp + 0x1c]
push eax
lea edi, [esp + 0x24]
lea esi, [esp + 0x2c]
call fcn.00438da0
cmp eax, 2
jne 0x447a9a
push eax
push 0
lea esi, [esp + 0x1c]
call fcn.00451970
mov ebp, dword [esp + 0x1c]
add esp, 8
cmp dword [ebp - 4], 1
jle 0x447a54
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, esi
call fcn.00401a30
mov ebp, dword [esp + 0x14]
push str.DefaultCommPlaybackDevice
lea edx, [esp + 0x1c]
push edx
mov esi, ebp
call fcn.004481c0
test ebp, ebp
jne 0x447a6d
xor eax, eax
jmp 0x447a87
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x447a72
sub eax, edx
sar eax, 1
js 0x447966
cmp eax, dword [ebp - 8]
jg 0x447966
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2], 0
push 0x200
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004d1c40
add esp, 0xc
push str.DefaultCommCaptureDevice
lea ecx, [esp + 0x1c]
push ecx
lea edi, [esp + 0x24]
lea esi, [esp + 0x2c]
call fcn.00438da0
cmp eax, 2
jne 0x447b38
push eax
push 1
lea esi, [esp + 0x1c]
call fcn.00451970
mov ebp, dword [esp + 0x1c]
add esp, 8
cmp dword [ebp - 4], 1
jle 0x447af2
mov edx, dword [ebp - 0xc]
push edx
mov ecx, esi
call fcn.00401a30
mov ebp, dword [esp + 0x14]
push str.DefaultCommCaptureDevice
lea eax, [esp + 0x1c]
push eax
mov esi, ebp
call fcn.004481c0
test ebp, ebp
jne 0x447b0b
xor eax, eax
jmp 0x447b25
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x447b10
sub eax, edx
sar eax, 1
js 0x447966
cmp eax, dword [ebp - 8]
jg 0x447966
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x447b4f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], 0
lea eax, [ebp - 0x10]
mov byte [esp + 0x230], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x447b73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x447b84
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004cf0b8
add esp, 0x220
ret