Function at 0x4064d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43ab33
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x44f6c4]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f6c4]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x250]
xor ebx, ebx
mov esi, ecx
push 0x43ea84
mov ecx, ebp
mov dword [esp + 0x24c], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
call fcn.00403350
mov edi, 1
mov dword [esp + 0x248], ebx
mov dword [esp + 0x2c], edi
call fcn.00416e3f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40655b
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 + 0x28], eax
cmp dword [esi + 0x7a58], ebx
mov dword [esp + 0x248], edi
jne 0x40666f
push str.RealtekInstallShield
lea ecx, [esp + 0x28]
call fcn.00403350
lea ecx, [esp + 0x24]
push ecx
add esi, 0x148
lea edx, [esp + 0x24]
push esi
push edx
mov byte [esp + 0x254], 2
call fcn.00402de0
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
mov eax, dword [esp + 0x20]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4065e7
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 + 0x248], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40660f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40661c
mov dword [esp + 0x18], edi
jmp 0x406756
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x24]
call fcn.00403350
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
mov eax, dword [esp + 0x20]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40665e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40679a
mov dword [esp + 0x18], edi
jmp 0x406756
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x24]
call fcn.00403350
mov eax, dword [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea ecx, [esp + 0x14]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
mov eax, dword [esp + 0x20]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4066b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x40674e
push str.RealtekInstallShield
lea ecx, [esp + 0x28]
call fcn.00403350
lea ecx, [esp + 0x24]
push ecx
add esi, 0x148
lea edx, [esp + 0x24]
push esi
push edx
mov byte [esp + 0x254], 3
call fcn.00402de0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
mov eax, dword [esp + 0x20]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406722
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 + 0x248], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40674a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40679a
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push str.ProgramFilesDir
push ecx
mov dword [esp + 0x34], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40678f
lea edx, [esp + 0x34]
push edx
mov ecx, ebp
call fcn.00405950
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x43ea84
push ebp
call fcn.00405990
add esp, 8
test al, al
je 0x406804
push 0x104
lea ecx, [esp + 0x38]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4067f8
lea edx, [esp + 0x34]
push 0x5c
push edx
call fcn.00427651
add esp, 8
mov esi, eax
push esi
lea ecx, [esp + 0x2c]
call fcn.00405950
lea eax, [esp + 0x34]
mov ecx, eax
sub esi, eax
sar esi, 1
push ecx
mov ecx, ebp
mov word [esp + esi*2 + 0x38], 0
call fcn.00405950
jmp 0x406804
push str.C:Program_FilesRealtek
mov ecx, ebp
call fcn.00402cb0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x248], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40682c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004274dc
add esp, 0x238
ret 4