Function at 0x402c90
Capabilities:
Get installed programs
Query or enumerate registry value

Disassembly:
sub esp, 0x324
push ebx
push esi
push edi
xor ebx, ebx
push 0xff
lea eax, [esp + 0x135]
push ebx
push eax
mov dword [esp + 0x30], ebx
mov byte [esp + 0x13c], bl
call fcn.004050a0
push 0xff
lea ecx, [esp + 0x41]
push ebx
push ecx
mov byte [esp + 0x48], bl
call fcn.004050a0
mov edi, dword [esp + 0x34c]
push 0x5c
push edi
mov dword [esp + 0x30], ebx
call fcn.00404bc0
mov esi, eax
add esp, 0x20
cmp esi, ebx
jne 0x402cf6
push 0x2f
push edi
call fcn.00404bc0
add esp, 8
mov esi, eax
push 0xff
lea edx, [esp + 0x235]
push ebx
push edx
mov byte [esp + 0x23c], bl
call fcn.004050a0
add esp, 0xc
cmp esi, ebx
je 0x402d2b
sub esi, edi
push esi
lea eax, [esp + 0x234]
push edi
push eax
call fcn.00404e40
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
call fcn.00401f20
add esp, 0xc
cmp eax, 1
jne 0x402e8d
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
jle 0x402e7b
push ebp
mov ebp, dword [esp + 0x24]
add ebp, 4
jmp 0x402d72
xor ebx, ebx
cmp dword [ebp - 4], ebx
mov byte [esp + 0x13], 0
je 0x402e5e
mov edx, dword [ebp]
cmp edx, ebx
je 0x402e5e
mov edi, str.RestManager
mov esi, edx
mov ecx, 0xc
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x402da2
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x402dc5
mov edi, str.RestServer
mov esi, edx
mov ecx, 0xb
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x402dbd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x402e5e
cmp dword [ebp + 8], 0
mov bl, 1
mov dword [esp + 0x30], 0
jle 0x402e5e
xor eax, eax
mov dword [esp + 0x1c], eax
nop
test bl, bl
je 0x402e0b
mov ecx, dword [ebp + 4]
add eax, ecx
cmp dword [eax + 0x10], 0
je 0x402e0b
cmp dword [eax + 0x14], 0
je 0x402e0b
cmp dword [eax], 0
je 0x402e0b
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x402e0b
cmp dword [eax + 0xc], 0
jne 0x402e99
xor bl, bl
cmp byte [esp + 0x13], 0
je 0x402e43
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x402e43
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx + edx]
push eax
push 0x41343c
call fcn.004057a9
add esp, 8
mov dword [esp + 0x28], 1
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
add ecx, 1
add eax, 0x18
cmp ecx, dword [ebp + 8]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], eax
jl 0x402de0
mov eax, dword [esp + 0x2c]
add eax, 1
add ebp, 0x10
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
jl 0x402d70
mov ebx, dword [esp + 0x28]
pop ebp
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.004010a0
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x324
ret
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea edx, [esp + 0x13c]
push str._s_s_is1
push edx
xor bl, bl
call fcn.00405022
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x140]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402e0d
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x38]
push eax
push 0
push 0
push str.UninstallString
push ecx
mov byte [esp + 0x2b], 1
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402e14
mov esi, dword [esp + 0x14]
lea edi, [esi - 2]
push edi
lea edx, [esp + 0x39]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00405870
lea ecx, [esp + 0x40]
push 0
mov byte [esp + esi + 0x42], bl
push ecx
mov byte [esp + esi + 0x45], bl
mov dword [esp + 0x28], edi
call fcn.0041215f
add esp, 0x14
test eax, eax
sete bl
test bl, bl
je 0x402e14
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x38]
push eax
push 0
push 0
push str.InstallLocation
push ecx
xor bl, bl
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402e14
push eax
lea edx, [esp + 0x38]
push edx
call fcn.0041215f
add esp, 8
test eax, eax
sete bl
test bl, bl
je 0x402e14
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push 0x4133cc
push edx
xor bl, bl
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402e14
lea eax, [esp + 0x34]
push 0x2e
push eax
call fcn.00404bc0
add esp, 8
test eax, eax
je 0x402e14
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + ecx + 0x14]
add eax, 1
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403018
test dl, dl
je 0x40300c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403018
add eax, 2
add ecx, 2
test dl, dl
jne 0x402ff0
xor eax, eax
test eax, eax
setl bl
jmp 0x402e14
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setl bl
jmp 0x402e14