Function at 0x404390
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43a761
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x44f6c4]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov eax, dword [0x44f6c4]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
call fcn.00416e3f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4043e8
push 0x80004005
call fcn.00401370
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x14], ecx
mov eax, dword [esi + 0x154]
cmp eax, edi
mov dword [esp + 0x234], edi
je 0x404415
cmp dword [esi + 0x158], edi
jne 0x40441d
cmp eax, edi
jne 0x40444b
cmp dword [esi + 0x158], edi
jne 0x40444b
lea eax, [ecx - 0x10]
mov dword [esp + 0x234], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404444
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x404649
cmp dword [esi + 0x7a58], edi
jne 0x4044ea
push str.RealtekInstallShield
lea ecx, [esp + 0x20]
call fcn.00403350
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esi + 0x148]
push edx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x240], 1
call fcn.00402de0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 2
call fcn.004030b0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x234], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x234], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4044f8
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x18]
call fcn.00402cb0
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push ebp
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x404620
cmp dword [esi + 0x154], eax
je 0x404598
push 0x43ee68
lea ecx, [esp + 0x14]
call fcn.00403350
mov edx, dword [eax]
push edx
lea eax, [esp + 0x24]
push 0x43ec5c
push eax
call fcn.00401f00
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404560
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x43ee68
lea ecx, [esp + 0x14]
call fcn.00403350
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
lea esi, [eax + eax]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4045f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4045f2
cmp dword [esi + 0x158], 0
je 0x4045ee
push 0x43ee40
lea ecx, [esp + 0x14]
call fcn.00403350
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x24]
push 0x43ec5c
push edx
call fcn.00401f00
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4045e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x43ee40
jmp 0x404565
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x24]
push ecx
push 1
push 0
push str.RtkCurUninstallPackage
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [esp + 0x18]
neg edi
sbb edi, edi
push eax
add edi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov dword [esp + 0x234], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404647
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004274dc
add esp, 0x228
ret