Function at 0x4c8310
Capabilities:
Check os version
Get installed programs
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x60828b
mov eax, dword fs:[0]
push eax
mov eax, 0x217c
call fcn.005e00d0
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x2178], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6aae14]
xor eax, esp
push eax
lea eax, [esp + 0x2190]
mov dword fs:[0], eax
mov eax, dword [esp + 0x21a4]
mov ecx, dword [esp + 0x21a8]
mov ebp, dword [esp + 0x21a0]
xor ebx, ebx
push 0x7ff
lea edx, [esp + 0x1991]
push ebx
push edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov byte [esp + 0x1998], bl
call fcn.005dfd60
push 0x7ff
lea eax, [esp + 0x19d]
push ebx
push eax
mov byte [esp + 0x1a4], bl
call fcn.005dfd60
push 0x7ff
lea ecx, [esp + 0x11a9]
push ebx
push ecx
mov byte [esp + 0x11b0], bl
call fcn.005dfd60
add esp, 0x24
mov dword [esp + 0x20], ebx
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov ecx, 0xd
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
movzx esi, byte [esp + 0x21ac]
neg esi
sbb esi, esi
and esi, 0xffffff00
add esi, 0x200
mov edi, esi
mov dword [esp + 0x2198], ebx
mov dword [esp + 0x18], ebx
or edi, 9
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x4c844b
shr eax, 8
test al, al
jne 0x4c844b
mov byte [esp + 0x17], 1
mov edi, 9
lea edx, [esp + 0x18]
push edx
push edi
push ebx
push ebp
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4c8451
mov byte [esp + 0x16], bl
jmp 0x4c8798
mov byte [esp + 0x17], bl
jmp 0x4c842b
push 0x7ff
lea eax, [esp + 0x991]
push ebx
push eax
mov byte [esp + 0x998], bl
call fcn.005dfd60
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x998]
push ecx
push edi
push edx
mov dword [esp + 0x3c], ebx
call fcn.004c4090
add esp, 0x18
mov byte [esp + 0x16], al
cmp al, bl
je 0x4c8778
cmp dword [0x748e14], ebx
je 0x4c84ae
lea eax, [esp + 0x98c]
push eax
push str.achKeyCSV:__s_n
call fcn.005e0e7f
add esp, 8
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x103
lea edx, [esp + 0x8d]
push ebx
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x94], bl
call fcn.005dfd60
push 1
push ebx
push 0x2c
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x9ac]
push edx
call fcn.004e1380
add esp, 0x24
cmp dword [esp + 0x1c], 0xffffffff
je 0x4c8651
mov ebp, esi
or ebp, 1
xor eax, eax
nop
mov cl, byte [esp + eax + 0x50]
mov byte [esp + eax + 0x18c], cl
inc eax
cmp cl, bl
jne 0x4c8510
lea eax, [esp + 0x88]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c8530
lea edi, [esp + 0x18c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4c8541
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, ebp
cmp byte [esp + 0x17], bl
je 0x4c8564
mov esi, 1
cmp dword [0x748e14], ebx
je 0x4c8581
lea eax, [esp + 0x18c]
push eax
push str.OpenKey:__s_n
call fcn.005e0e7f
add esp, 8
lea ecx, [esp + 0x18]
push ecx
push esi
push ebx
lea edx, [esp + 0x198]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4c85c3
push 1
push ebx
push 0x2c
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x9a0]
push edx
call fcn.004e1380
add esp, 0x18
jmp 0x4c8627
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1190]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push str.DisplayName
push eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x38], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4c863b
push 1
push ebx
push 0x2c
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x9a0]
push eax
call fcn.004e1380
mov ecx, dword [esp + 0x30]
add esp, 0x18
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x1c], 0xffffffff
jne 0x4c850d
mov byte [esp + 0x16], bl
jmp 0x4c8798
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x18], ebx
jne 0x4c865a
mov byte [esp + 0x16], bl
jmp 0x4c8798
cmp dword [0x748e14], ebx
je 0x4c8677
lea eax, [esp + 0x118c]
push eax
push str.DisplayName:__s_n
call fcn.005e0e7f
add esp, 8
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x18c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4c8684
lea eax, [esp + 0x88]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c8697
lea edi, [esp + 0x18c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4c86a8
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [0x748e14], ebx
je 0x4c86dd
lea ecx, [esp + 0x18c]
push ecx
push str.officeSubKeyName:__s_n
call fcn.005e0e7f
add esp, 8
mov eax, ebp
cmp byte [esp + 0x17], bl
je 0x4c86ea
mov eax, 1
lea edx, [esp + 0x18]
push edx
push eax
push ebx
lea eax, [esp + 0x198]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4c8711
mov byte [esp + 0x16], bl
jmp 0x4c8798
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x1990]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push str.DigitalProductId
push ecx
mov dword [esp + 0x3c], 3
mov dword [esp + 0x38], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4c874e
mov byte [esp + 0x16], bl
jmp 0x4c8778
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x1990]
push eax
call fcn.004c82d0
add esp, 8
lea ecx, [esp + 0x118c]
push ecx
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x1a], al
call fcn.00401790
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x24], ebx
call fcn.00401280
cmp dword [esp + 0x4c], 0x10
jb 0x4c87ac
mov ecx, dword [esp + 0x38]
push ecx
call fcn.005e0d9a
add esp, 4
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x2190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2178]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x2188
ret