Function at 0x418290
Capabilities:
Get installed programs

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56aa90
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x5bfc00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], ebx
cmp dword [eax - 0xc], ebx
jl 0x41831b
push 0x59a724
push eax
call fcn.00522301
add esp, 8
cmp eax, ebx
je 0x41831b
mov ecx, dword [ebp + 8]
sub eax, ecx
jne 0x41831b
lea eax, [ecx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418304
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x2c], vtable.RegAccess.0
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00435894
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.00435894
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
mov byte [ebp - 4], 3
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x418368
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00410050
mov edi, dword [ebp - 0x28]
cmp edi, ebx
je 0x418388
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x28], edi
xor esi, esi
cmp dword [ebp - 0x38], ebx
jle 0x4184c9
call fcn.004261e2
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x418536
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
call fcn.004261e2
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x418536
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
cmp esi, ebx
jl 0x418540
cmp esi, dword [ebp - 0x38]
jge 0x418540
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + esi*4]
push edx
lea eax, [ebp - 0x18]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push eax
call fcn.00403300
mov edx, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x41843b
cmp edi, ebx
je 0x418435
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov edi, str.DisplayName
lea ebx, [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.0040fe10
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x41845e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x28], edi
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 1
jle 0x418477
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x14]
push edx
push eax
lea ecx, [ebp - 0x54]
call fcn.00435c2b
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41849a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4184bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
xor ebx, ebx
cmp esi, dword [ebp - 0x38]
jl 0x418393
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x40]
call fcn.0043592b
lea ecx, [ebp - 0x1c]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x418506
cmp edi, ebx
je 0x418500
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00410050
mov esi, dword [ebp - 0x28]
cmp esi, ebx
je 0x418526
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
mov esi, ebx
xor edi, edi
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x38], ebx
jle 0x418679
jmp 0x418548
push 0x80004005
call fcn.00403230
call fcn.004260c6
mov edi, dword [ebp - 0x18]
call fcn.004261e2
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x418536
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 6
call fcn.004261e2
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x418536
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
cmp edi, ebx
jl 0x418540
cmp edi, dword [ebp - 0x38]
jge 0x418540
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + edi*4]
push edx
lea eax, [ebp - 0x1c]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push eax
call fcn.00403300
mov esi, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
push 0x20019
push ebx
push esi
push SysReAllocString
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4185e3
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x4185dd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
mov edi, str.DisplayName
lea ebx, [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.0040fe10
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x418608
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 1
jle 0x418621
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x14]
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.00435c2b
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418644
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418664
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
inc eax
xor ebx, ebx
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x38]
jl 0x418545
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x4c]
test eax, eax
jle 0x4186c9
test ebx, ebx
js 0x418540
cmp ebx, eax
jge 0x418540
mov ecx, dword [ebp - 0x50]
lea edi, [ecx + ebx*4]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4186c1
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x4186c1
push ecx
push eax
call fcn.00522301
add esp, 8
test eax, eax
je 0x4186c1
sub eax, dword [edi]
cmp eax, 0xffffffff
je 0x4186c1
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x4c]
inc ebx
cmp ebx, eax
jl 0x418680
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.00435ad2
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00435ad2
test esi, esi
je 0x4186ec
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418712
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret