Function at 0x408640
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f698
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x5a2048]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
push 3
push 0
push dword [0x5a7218]
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x4086bb
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x38], 4
push eax
push 0
push 0
push str.Icon
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4086cf
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x18], 0
je 0x4086f2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push 0
push str.Icon
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
test eax, eax
jne 0x4086b5
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 0
call fcn.00401c90
mov esi, dword [ebp - 0x14]
mov ecx, 1
mov dword [ebp - 4], 0
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40875d
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00401ee0
mov esi, dword [ebp - 0x14]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [esi - 8]
push esi
call fcn.00527f70
add esp, 8
test eax, eax
js 0x408a14
cmp eax, dword [esi - 8]
jg 0x408a14
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea ecx, [ebp - 0x14]
push 0x550f18
call fcn.00407240
push str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudio_
lea ecx, [ebp - 0x28]
call fcn.00402200
push str.259abffc_50a7_47ce_af08_68c9a7d73366_12
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00402200
push str.Render_
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00402200
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
mov eax, dword [eax + 0x528]
push dword [eax + 0x8c]
call fcn.00407240
push str.Properties
lea ecx, [ebp - 0x20]
call fcn.00407240
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004026e0
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
push 0x102
push 0
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov esi, dword [ebp - 0x3c]
or edi, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 0x40], eax
mov ecx, edi
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408842
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x14]
test eax, eax
jne 0x408872
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x408906
push dword [ebp - 0x10]
call ebx
xor bl, bl
mov edx, dword [ebp - 0x20]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408894
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4088b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4088d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4088f2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.a45c254e_df1c_4efd_8020_67d146a850e0_2
lea ecx, [ebp - 0x34]
call fcn.00402200
push str.Internal_Playback
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00402200
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 5
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
test eax, eax
je 0x408957
call ebx
xor bl, bl
jmp 0x4089f9
call ebx
push str.Capture_
lea ecx, [ebp - 0x1c]
call fcn.00402200
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
mov eax, dword [eax + 0x528]
push dword [eax + 0x90]
call fcn.00407240
push str.Properties
lea ecx, [ebp - 0x1c]
call fcn.00407240
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004026e0
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
push 0x102
push 0
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x40]
mov edi, eax
call fcn.00401cc0
test edi, edi
jne 0x4089ec
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
test eax, eax
je 0x408a0e
call ebx
xor bl, bl
lea ecx, [ebp - 0x1c]
call fcn.00401cc0
or edi, 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401cc0
lea ecx, [ebp - 0x34]
call fcn.00401cc0
jmp 0x408874
call ebx
mov bl, 1
jmp 0x4089ee
push 0x80070057
call fcn.00401d80
int3