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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
and byte [ebp - 0x858], 0
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x857]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x858]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x858]
push 0x44c3a4
push eax
call edi
mov eax, dword [ebx + 0x4a4]
test eax, eax
je 0x402198
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x402198
lea esi, [ebx + 0x494]
mov ecx, esi
call fcn.00402db3
push dword [esi + 4]
jmp 0x40219f
lea eax, [ebx + 0x42d]
push eax
lea eax, [ebp - 0x858]
push eax
call edi
lea eax, [ebp - 0x858]
push 0x44c3a0
push eax
call edi
cmp byte [ebx + 0x818], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, 0x20019
jne 0x4021e3
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x858]
push 0
push eax
push 0x80000001
call edi
test eax, eax
je 0x402200
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x858]
push 0
push eax
push 0x80000002
call edi
test eax, eax
jne 0x4023cc
push 4
lea eax, [ebp - 0xc]
pop esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.LogMode
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 1
call edi
test eax, eax
jne 0x402258
cmp dword [ebp - 8], 2
je 0x402238
cmp dword [ebp - 8], esi
jne 0x402258
mov ebx, dword [ebx + 0x4a4]
xor esi, esi
cmp ebx, esi
je 0x4023ce
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x40225a
jmp 0x4023ce
xor esi, esi
push 1
lea ecx, [ebp - 0x3c]
call fcn.00402457
mov eax, 0x800
and byte [ebp - 0x18], 0
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], esi
call fcn.00402733
push eax
push esi
push esi
push str.UninstallString
push ebx
call edi
mov ebx, eax
lea ecx, [ebp - 0x1c]
neg ebx
sbb bl, bl
inc bl
call fcn.00402a34
test bl, bl
je 0x4023c2
cmp word [0x44c388], si
mov ecx, dword [0x44656c]
mov eax, 0x44c38a
je 0x4022cc
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4022c2
push ecx
mov ecx, 0x44c388
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00402a77
mov edx, dword [0x44656c]
mov ecx, eax
cmp ecx, edx
jne 0x402328
cmp word [0x44c380], si
mov eax, 0x44c382
je 0x402305
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4022fb
mov ecx, 0x44c380
push edx
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00402a77
mov ecx, eax
cmp ecx, dword [0x44656c]
je 0x4023c2
xor eax, eax
lea edi, [ebp - 0x1e]
mov word [ebp - 0x20], si
add ecx, 3
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x2c]
cmp word [eax + ecx*2], 0x30
jne 0x4023c2
mov dx, word [eax + ecx*2 + 2]
cmp dx, 0x78
je 0x402355
cmp dx, 0x58
jne 0x4023c2
inc ecx
inc ecx
lea ecx, [eax + ecx*2]
mov ax, word [ecx]
cmp ax, si
je 0x40237d
lea edx, [ebp - 0x20]
cmp ax, 0x20
je 0x40237d
mov ax, word [ecx]
inc ecx
inc ecx
mov word [edx], ax
inc edx
mov ax, word [ecx]
inc edx
cmp ax, si
jne 0x402365
lea eax, [ebp - 0x20]
push 1
push eax
lea ecx, [ebp - 0x58]
call fcn.004027ac
mov edi, eax
mov ecx, edi
call fcn.00402db3
push dword [edi + 4]
call fcn.00419e17
pop ecx
mov esi, eax
lea ecx, [ebp - 0x58]
call fcn.00402818
lea ecx, [ebp - 0x3c]
call fcn.0040252a
cmp dword [ebp - 4], 0
je 0x4023be
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4023de
lea ecx, [ebp - 0x3c]
call fcn.0040252a
jmp 0x4023ce
xor esi, esi
cmp dword [ebp - 4], esi
je 0x4023dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret