Function at 0x40212c
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 0x4021a4
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x4021a4
lea esi, [ebx + 0x494]
mov ecx, esi
call fcn.00402c9d
push dword [esi + 4]
jmp 0x4021ab
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 0x4021ef
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x858]
push 0
push eax
push SysReAllocStringLen
call edi
test eax, eax
je 0x40220c
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x858]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x4023e1
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 0x402264
cmp dword [ebp - 8], 2
je 0x402244
cmp dword [ebp - 8], esi
jne 0x402264
mov ebx, dword [ebx + 0x4a4]
xor esi, esi
cmp ebx, esi
je 0x4023e3
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x402266
jmp 0x4023e3
xor esi, esi
push 1
lea ecx, [ebp - 0x3c]
call fcn.00402471
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.0040276d
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.00402746
test bl, bl
je 0x4023d7
cmp word [0x44c388], si
mov ecx, dword [0x446564]
mov eax, 0x44c38a
je 0x4022d8
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4022ce
push ecx
mov ecx, 0x44c388
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00402a8a
mov edx, dword [0x446564]
mov ecx, eax
cmp ecx, edx
jne 0x402334
cmp word [0x44c380], si
mov eax, 0x44c382
je 0x402311
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x402307
mov ecx, 0x44c380
push edx
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00402a8a
mov ecx, eax
cmp ecx, dword [0x446564]
je 0x4023d7
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 0x4023d7
mov dx, word [eax + ecx*2 + 2]
cmp dx, 0x78
je 0x402365
cmp dx, 0x58
jne 0x4023d7
inc ecx
inc ecx
lea ecx, [eax + ecx*2]
mov ax, word [ecx]
cmp ax, si
je 0x40238d
lea edx, [ebp - 0x20]
cmp ax, 0x20
je 0x40238d
mov ax, word [ecx]
inc ecx
inc ecx
mov word [edx], ax
inc edx
mov ax, word [ecx]
inc edx
cmp ax, si
jne 0x402375
lea eax, [ebp - 0x20]
push 1
push eax
lea ecx, [ebp - 0x58]
call fcn.004027e6
mov edi, eax
mov ecx, edi
call fcn.00402c9d
push dword [edi + 4]
call fcn.00419fc2
pop ecx
mov esi, eax
lea ecx, [ebp - 0x58]
call fcn.00402852
lea ecx, [ebp - 0x3c]
call fcn.00402544
cmp dword [ebp - 4], 0
je 0x4023d3
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4023d3
push dword [ebp - 4]
call eax
mov eax, esi
jmp 0x4023f8
lea ecx, [ebp - 0x3c]
call fcn.00402544
jmp 0x4023e3
xor esi, esi
cmp dword [ebp - 4], esi
je 0x4023f6
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x4023f6
push dword [ebp - 4]
call eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret