Function at 0x4196f0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44a3c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004290da
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x419732
push 0x80004005
call fcn.00401100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push str.SoftwareAnalog_DevicesSMax4PNPSettings
lea edx, [esp + 0x24]
push str._sPanel_dJack_d
push edx
mov dword [esp + 0x38], 0
call fcn.00406e40
mov ebx, dword [esp + 0x2c]
mov ecx, dword [ebx - 8]
mov eax, 1
sub eax, dword [ebx - 4]
add esp, 0x14
or ecx, eax
jge 0x41978c
push 0
lea ecx, [esp + 0x1c]
call fcn.00401370
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x419944
mov ecx, dword [esi + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push eax
mov eax, dword [esp + 0x24]
push str.CODEC_ID
push eax
mov dword [esp + 0x28], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push 0x4559d8
push eax
mov dword [esp + 0x28], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x38]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push str.PRIMARY_FC
push eax
mov dword [esp + 0x28], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x14]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push str.CURRENT_FC
push eax
mov dword [esp + 0x28], ecx
call edi
push 0
mov ecx, esi
call fcn.00419020
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
movzx ecx, al
mov eax, dword [esp + 0x24]
push 0x455740
push eax
mov dword [esp + 0x28], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x18]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push str.FC_BITS
push eax
mov dword [esp + 0x28], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x1c]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push str.INHIBIT
push eax
mov dword [esp + 0x28], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x24]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push str.VREF_KEY
push eax
mov dword [esp + 0x28], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x28]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push str.GROUP_IDX
push eax
mov dword [esp + 0x28], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push str.JACK_CFG
push eax
mov dword [esp + 0x28], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x2c]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push str.COLOR
push eax
mov dword [esp + 0x28], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x30]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push str.XPOS
push eax
mov dword [esp + 0x28], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x34]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push str.YPOS
push eax
mov dword [esp + 0x28], ecx
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419968
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4