Function at 0x4037a0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43a63e
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x44f6c4]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebp
push esi
push edi
mov eax, dword [0x44f6c4]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00416e3f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4037f3
push 0x80004005
call fcn.00401370
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x98], 0
call fcn.00416e3f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403828
push 0x80004005
call fcn.00401370
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x98], 1
call fcn.00416e3f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40385a
push 0x80004005
call fcn.00401370
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 + 0x98], 2
call fcn.00401f60
test eax, eax
je 0x4039da
push str.System32DriversHdaudbus.sys
lea ecx, [esp + 0x24]
call fcn.00402cb0
mov ebp, dword [esp + 0x20]
push ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], esp
mov edi, esp
push eax
call fcn.00402590
add esp, 4
lea ecx, [esp + 0x14]
add eax, 0x10
push ecx
mov ecx, esi
mov dword [edi], eax
call fcn.00403510
mov edx, dword [eax]
push edx
push 0x43ec5c
lea eax, [esp + 0x30]
push 0x32
push eax
call fcn.00427eff
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 0x4038ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x7a58], 0
jne 0x40398e
push str.RealtekInstallShield
lea ecx, [esp + 0x14]
call fcn.00403350
lea ecx, [esp + 0x10]
push ecx
add esi, 0x148
lea edx, [esp + 0x20]
push esi
push edx
mov byte [esp + 0xa4], 3
call fcn.00402de0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 4
call fcn.004030b0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x98], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403964
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x98], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40399c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40399c
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x18]
call fcn.00402cb0
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4039da
push 0x64
lea edx, [esp + 0x2c]
push edx
push 1
push eax
mov eax, dword [esp + 0x28]
push 0x43ec04
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov byte [esp + 0x98], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4039fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x98], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x98], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.004274dc
add esp, 0x8c
ret