Function at 0x40a150
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x220
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x24], edi
cmp eax, edi
mov dword [esp + 0x20], edi
je 0x40a199
lea esi, [ebx + 0x340]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call fcn.0040c6a0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call esi
test eax, eax
jne 0x40a528
mov ecx, dword [0x41b374]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ecx + 0xa34]
mov cl, byte [ecx + 0xa34]
test cl, cl
je 0x40a2f2
lea edx, [esp + 0x14]
push edx
push 0x20019
push edi
push eax
mov eax, dword [esp + 0x2c]
push eax
call esi
test eax, eax
jne 0x40a28b
lea ecx, [esp + 0x18]
lea edx, [esp + 0x12c]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push edi
push str.AppPath
push ecx
mov dword [esp + 0x30], 0x104
call ebp
test eax, eax
jne 0x40a278
cmp dword [esp + 0x10], 1
jne 0x40a278
mov edx, dword [0x41b374]
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
add edx, 0xb34
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x41b374]
add ecx, 0xb34
push ecx
call fcn.0040c6a0
add esp, 4
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40a2f2
mov eax, dword [0x41b374]
test byte [eax + 0x90], 8
je 0x40a2f2
push 0x400
call fcn.0040d4a1
mov ecx, dword [0x41b384]
add esp, 4
mov esi, eax
push 0x400
push esi
push 0x200c
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push esi
push esi
call fcn.0040c350
add esp, 8
push 0x24
push esi
call fcn.004094d0
push esi
mov edi, eax
call fcn.0040d438
add esp, 0xc
cmp edi, 6
jne 0x40a2f2
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x220
ret
mov eax, dword [0x41b374]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
add eax, 0x114
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a511
lea edx, [esp + 0x10]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
mov esi, 0x104
push str.AppPath
push edx
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x40a3f8
cmp dword [esp + 0x18], 1
jne 0x40a3f8
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x340]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040c6a0
add esp, 4
mov eax, 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
mov dword [ebx + 0x958], eax
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.BackupPath
push ecx
mov dword [esp + 0x28], 0x104
call ebp
test eax, eax
jne 0x40a506
cmp dword [esp + 0x18], 1
jne 0x40a506
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x444]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40a506
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.UninstallString
push ecx
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x40a506
cmp dword [esp + 0x18], 1
jne 0x40a506
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x12c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x12c]
push ecx
call dword [sym.imp.USER32.dll_CharLowerA]
lea edx, [esp + 0x12c]
push str.isuninst.exe
push edx
call fcn.0040e0a0
add esp, 8
test eax, eax
je 0x40a506
push 0x41862c
push eax
call fcn.0040e0a0
mov esi, eax
add esp, 8
test esi, esi
je 0x40a506
lea eax, [esp + 0x2a]
lea ecx, [esp + 0x12c]
sub eax, ecx
add esi, eax
cmp byte [esi], 0x22
jne 0x40a4ba
inc esi
push 0x22
push esi
call fcn.0040dad0
add esp, 8
test eax, eax
je 0x40a4ba
mov byte [eax], 0
push esi
lea ebp, [ebx + 0x340]
call fcn.0040c300
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040d560
add esp, 0xc
test eax, eax
je 0x40a4f7
mov byte [eax], 0
mov eax, 1
mov dword [esp + 0x24], eax
mov dword [ebx + 0x958], eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40a5fa
mov eax, dword [0x41b374]
test byte [eax + 0x90], 4
je 0x40a597
push 0x400
call fcn.0040d4a1
mov edx, dword [0x41b384]
add esp, 4
mov esi, eax
push 0x400
push esi
push 0x200b
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
push esi
push esi
call fcn.0040c350
add esp, 8
push 0x124
push esi
call fcn.004094d0
push esi
mov edi, eax
call fcn.0040d438
add esp, 0xc
cmp edi, 7
jne 0x40a592
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x220
ret
mov eax, dword [0x41b374]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x40a5d3
mov ecx, dword [eax + 0x90]
test ch, 4
je 0x40a5d3
add eax, 0xb34
lea esi, [ebx + 0x340]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esi], 0
je 0x40a5ce
mov dword [ebx + 0x970], 1
jmp 0x40a5fa
mov eax, dword [0x41b374]
lea ecx, [eax + 0x624]
mov al, byte [eax + 0x624]
test al, al
je 0x40a623
lea eax, [ebx + 0x340]
push eax
push ecx
mov byte [eax], 0
call fcn.0040c350
add esp, 8
test eax, eax
je 0x40a623
mov cl, byte [ebx + 0x340]
lea eax, [ebx + 0x340]
test cl, cl
je 0x40a623
push eax
call fcn.0040c6a0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret
lea edi, [ebx + 0x750]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x340]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ecx + ebx + 0x340]
mov byte [ebx], 0x5c
mov ecx, dword [0x41b374]
lea edx, [ebx + 1]
lea edi, [ecx + 0x94]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret