Function at 0x404c40
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x438420
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.0041564a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404c8d
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.0041564a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404cbf
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.0041564a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404cee
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.00401fb0
test eax, eax
je 0x404e27
push 0x1e
push str.System32DriversHdaudbus.sys
lea ecx, [esp + 0x24]
call fcn.00402a70
mov ebp, dword [esp + 0x1c]
push ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], esp
mov edi, esp
push eax
call fcn.00402350
add esp, 4
lea ecx, [esp + 0x14]
add eax, 0x10
push ecx
mov ecx, esi
mov dword [edi], eax
call fcn.004049b0
mov edx, dword [eax]
push edx
push 0x43bca8
lea eax, [esp + 0x2c]
push 0x32
push eax
call fcn.0042709a
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 0x404d81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x2a2c], 0
jne 0x404dd9
push str.RealtekInstallShield
add esi, 0x148
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00402cd0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 3
call fcn.00402df0
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 0x404de9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x404de9
push 0x20
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x1c]
call fcn.00402a70
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 0x404e27
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 0x404e48
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 0x404e6d
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 0x404e91
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.00425dea
add esp, 0x58
ret