Function at 0x40f590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x139c]
mov eax, 0x139c
call fcn.00454f40
push 0xffffffffffffffff
push 0x48ba40
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.00456da0
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.00456da0
push 0x103
lea ecx, [ebp + 0x1295]
push ebx
mov dword [ebp - 4], ebx
push ecx
mov byte [ebp + 0x1294], bl
call fcn.00456da0
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 0x40f651
mov edx, dword [0x49a7f4]
mov ecx, dword [0x49a7f8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [eax], edx
mov edx, dword [0x49a7fc]
mov dword [eax + 4], ecx
mov ecx, dword [0x49a800]
mov dword [eax + 8], edx
mov edx, dword [0x49a804]
mov dword [eax + 0xc], ecx
mov cl, byte [0x49a808]
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 0x40f6dd
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 0x40f6dd
mov dword [ebp - 0x28], eax
push 0x4a5120
lea eax, [ebp - 0x28]
push eax
call fcn.004570ab
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 0x40f71b
push 0x4a5120
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], eax
call fcn.004570ab
mov eax, 0x40f717
ret
lea eax, [ebp + 0x1294]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f724
sub eax, edx
cmp eax, 3
jb 0x40f73f
cmp dword [ebp - 0x1c], 3
jb 0x40f73f
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40f74d
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.00456da0
add esp, 0xc
mov ecx, str.CheckRes
cmp dword [ebp - 0x18], ebx
jne 0x40f79e
mov esi, str.IDS_USBKEYMGR_CONTROL_NOT_INST
mov dword [ebp + 0x88], 1
call fcn.00421090
lea edx, [ebp + 0x12e4]
nop
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
cmp cl, bl
jne 0x40f790
xor esi, esi
jmp 0x40f7c3
mov esi, str.IDS_USBKEYMGR_CONTROL_INST
mov dword [ebp + 0x88], ebx
call fcn.00421090
lea edx, [ebp + 0x12e4]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
cmp cl, bl
jne 0x40f7b4
mov esi, 1
xor eax, eax
jmp 0x40f7d0
mov cl, byte [ebp + eax + 0x12e4]
mov byte [ebp + eax + 0x8c], cl
inc eax
cmp cl, bl
jne 0x40f7d0
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x40f7f6
lea ecx, [ebp]
push ecx
call fcn.0041cd20
add esp, 4
mov edx, dword [ebp - 0x2c]
cmp edx, ebx
je 0x40f811
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 0x40f807
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.0044ffb2
add ebp, 0x139c
mov esp, ebp
pop ebp
ret 4