Function at 0x406e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d47e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [0x5f85c8]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x406e70
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x406e82
mov byte [ebp - 4], 1
call fcn.00438044
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov byte [ebp - 4], 2
test ecx, ecx
je 0x40707d
mov eax, dword [ecx]
push esi
push edi
call dword [eax + 0xc]
add eax, 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov eax, dword [0x5f85c8]
mov dword [ebp - 0x1c], 1
push dword [eax - 0xc]
push eax
push 0x34
lea eax, [ebp - 0x10]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.0040c5c0
push 0x5c4ae0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040b6d0
add esp, 0x20
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406ef5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 1
push str.UninstallString
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x407055
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00439dc8
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push 1
push str.UninstallString
push dword [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test ebx, ebx
jne 0x406f64
xor ecx, ecx
jmp 0x406f7f
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406f70
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, 0x5f85c4
call fcn.0040c8c0
mov edx, dword [0x5f85c4]
lea ecx, [ebp - 0x10]
call fcn.004110a0
mov byte [ebp - 4], 5
mov ecx, dword [eax]
mov edi, dword [0x5f85c4]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x406ffc
mov eax, dword [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x406fee
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x406fee
push edx
call fcn.0040c780
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, esi
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406fe4
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [0x5f85c4], eax
jmp 0x406ffc
push dword [ecx - 0xc]
push ecx
mov ecx, 0x5f85c4
call fcn.0040c8c0
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40701a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call fcn.0042ee69
mov eax, dword [0x5f85c4]
add esp, 4
cmp dword [eax - 4], 1
pop ebx
jle 0x407041
push dword [eax - 0xc]
mov ecx, 0x5f85c4
call fcn.0040c500
mov eax, dword [0x5f85c4]
push eax
push 0
push 0x1800
push dword [0x5f8498]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
pop edi
test esi, esi
pop esi
jg 0x40706f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004027b0
int3