Function at 0x404fe0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x438b70
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x44c538]
xor eax, esp
mov dword [esp + 0x48], eax
push ebp
push esi
push edi
mov eax, dword [0x44c538]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00415e0b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40502d
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.00415e0b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40505f
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.00415e0b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40508e
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.00402320
test eax, eax
je 0x4051c7
push 0x1e
push str.System32DriversHdaudbus.sys
lea ecx, [esp + 0x24]
call fcn.00402de0
mov ebp, dword [esp + 0x1c]
push ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], esp
mov edi, esp
push eax
call fcn.004026c0
add esp, 4
lea ecx, [esp + 0x14]
add eax, 0x10
push ecx
mov ecx, esi
mov dword [edi], eax
call fcn.00404d50
mov edx, dword [eax]
push edx
push 0x43cd10
lea eax, [esp + 0x2c]
push 0x32
push eax
call fcn.0042783a
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 0x405121
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x784c], 0
jne 0x405179
push str.RealtekInstallShield
add esi, 0x148
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00403040
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 3
call fcn.00403160
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 0x405189
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405189
push 0x20
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x1c]
call fcn.00402de0
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 0x4051c7
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 0x4051e8
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 0x40520d
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 0x405231
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.0042652f
add esp, 0x58
ret