Function at 0x404e50
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x438640
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x44b538]
xor eax, esp
mov dword [esp + 0x48], eax
push ebp
push esi
push edi
mov eax, dword [0x44b538]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004158fc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404e9d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x64], 0
call fcn.004158fc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404ecf
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x64], 1
call fcn.004158fc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404efe
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov ecx, esi
mov byte [esp + 0x64], 2
call fcn.00402190
test eax, eax
je 0x405037
push 0x1e
push str.System32DriversHdaudbus.sys
lea ecx, [esp + 0x24]
call fcn.00402c50
mov ebp, dword [esp + 0x1c]
push ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], esp
mov edi, esp
push eax
call fcn.00402530
add esp, 4
lea ecx, [esp + 0x14]
add eax, 0x10
push ecx
mov ecx, esi
mov dword [edi], eax
call fcn.00404bc0
mov edx, dword [eax]
push edx
push 0x43bce0
lea eax, [esp + 0x2c]
push 0x32
push eax
call fcn.004272ba
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x2a2c], 0
jne 0x404fe9
push str.RealtekInstallShield
add esi, 0x148
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00402eb0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 3
call fcn.00402fd0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x64], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404ff9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x404ff9
push 0x20
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x1c]
call fcn.00402c50
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x405037
push 0x32
lea edx, [esp + 0x28]
push edx
push 1
push eax
mov eax, dword [esp + 0x28]
push str.BUSDrvVersion
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov byte [esp + 0x64], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405058
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x64], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40507d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x64], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4050a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00426009
add esp, 0x58
ret