Function at 0x40f730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x139c]
mov eax, 0x139c
call fcn.00454d40
push 0xffffffffffffffff
push 0x48b7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4ada68]
xor eax, ebp
mov dword [ebp + 0x1398], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x13a4]
push 0x108c
xor ebx, ebx
lea edx, [ebp]
push ebx
push edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
call fcn.00456ba0
push 0x207
lea eax, [ebp + 0x108d]
push ebx
push eax
mov dword [ebp + 0x84], 0x82
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
call fcn.00456ba0
push 0x103
lea ecx, [ebp + 0x1295]
push ebx
mov dword [ebp - 4], ebx
push ecx
mov byte [ebp + 0x1294], bl
call fcn.00456ba0
mov ecx, 0xd
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea edi, [ebp + 0x108c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x108c]
add esp, 0x24
mov dword [ebp - 0x1c], 0x104
movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40f7f1
mov edx, dword [0x49a814]
mov ecx, dword [0x49a818]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [eax], edx
mov edx, dword [0x49a81c]
mov dword [eax + 4], ecx
mov ecx, dword [0x49a820]
mov dword [eax + 8], edx
mov edx, dword [0x49a824]
mov dword [eax + 0xc], ecx
mov cl, byte [0x49a828]
mov dword [eax + 0x10], edx
lea edx, [ebp - 0x14]
push edx
push 0x20019
mov byte [eax + 0x14], cl
push ebx
lea eax, [ebp + 0x108c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x40f87d
lea ecx, [ebp - 0x14]
push ecx
push 0x20119
push ebx
lea edx, [ebp + 0x108c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
cmp eax, ebx
je 0x40f87d
mov dword [ebp - 0x28], eax
push 0x4a512c
lea eax, [ebp - 0x28]
push eax
call fcn.00456eab
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp + 0x1294]
push edx
lea eax, [ebp - 0x24]
push eax
push ebx
push str.DisplayName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40f8bb
push 0x4a512c
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], eax
call fcn.00456eab
mov eax, 0x40f8b7
ret
lea eax, [ebp + 0x1294]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f8c4
sub eax, edx
cmp eax, 3
jb 0x40f8df
cmp dword [ebp - 0x1c], 3
jb 0x40f8df
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40f8ed
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xb3
lea eax, [ebp + 0x12e5]
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp + 0x12e4], bl
call fcn.00456ba0
add esp, 0xc
mov ecx, str.CheckRes
cmp dword [ebp - 0x18], ebx
jne 0x40f93e
mov esi, str.IDS_USBKEYMGR_CONTROL_NOT_INST
mov dword [ebp + 0x88], 1
call fcn.00420e20
lea edx, [ebp + 0x12e4]
nop
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
cmp cl, bl
jne 0x40f930
xor esi, esi
jmp 0x40f963
mov esi, str.IDS_USBKEYMGR_CONTROL_INST
mov dword [ebp + 0x88], ebx
call fcn.00420e20
lea edx, [ebp + 0x12e4]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
cmp cl, bl
jne 0x40f954
mov esi, 1
xor eax, eax
jmp 0x40f970
mov cl, byte [ebp + eax + 0x12e4]
mov byte [ebp + eax + 0x8c], cl
inc eax
cmp cl, bl
jne 0x40f970
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x40f996
lea ecx, [ebp]
push ecx
call fcn.0041cab0
add esp, 4
mov edx, dword [ebp - 0x2c]
cmp edx, ebx
je 0x40f9b1
lea eax, [ebp + 0x8c]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40f9a7
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1398]
xor ecx, ebp
call fcn.0044fdb2
add ebp, 0x139c
mov esp, ebp
pop ebp
ret 4