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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d6d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x37c
mov eax, dword [0x4d1260]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x388], ecx
mov ecx, dword [ebp - 0x388]
call fcn.004014f0
mov eax, dword [ebp - 0x388]
mov byte [eax + 0x1c], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4010b7
jmp 0x401351
mov dword [ebp - 0x128], 0
jmp 0x4010d2
mov edx, dword [ebp - 0x128]
add edx, 1
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x27c], 0x104
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x103
jne 0x401114
jmp 0x401349
cmp dword [ebp - 0x18], 0
je 0x40111c
jmp 0x4010c3
mov dword [ebp - 0x278], 0
lea ecx, [ebp - 0x278]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x401153
jmp 0x4010c3
push 0x104
push 0
lea ecx, [ebp - 0x274]
push ecx
call fcn.00464db0
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x384]
push edx
call fcn.00464db0
add esp, 0xc
mov dword [ebp - 0x12c], 0x103
mov dword [ebp - 0x168], 0x103
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x274]
push ecx
push 0
push 0
push str.ConsoleBrand
mov edx, dword [ebp - 0x278]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4011c2
jmp 0x4011f5
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x384]
push ecx
push 0
push 0
push str.ConsoleExePath
mov edx, dword [ebp - 0x278]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4011f1
jmp 0x4011f5
xor eax, eax
jne 0x401193
mov ecx, dword [ebp - 0x278]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x274]
push edx
lea ecx, [ebp - 0x164]
call fcn.00401820
mov dword [ebp - 4], 0
lea eax, [ebp - 0x384]
push eax
lea ecx, [ebp - 0x148]
call fcn.00401820
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.0040b040
test eax, eax
je 0x40124f
lea ecx, [ebp - 0x148]
call fcn.0040b040
test eax, eax
jne 0x401275
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x148]
call fcn.00401860
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x164]
call fcn.00401860
jmp 0x4010c3
lea ecx, [ebp - 0x148]
push ecx
call fcn.004017d0
add esp, 4
movzx edx, al
test edx, edx
jne 0x4012b1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x148]
call fcn.00401860
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x164]
call fcn.00401860
jmp 0x4010c3
mov ecx, dword [ebp + 8]
call fcn.00401950
push eax
lea ecx, [ebp - 0x164]
call fcn.00401950
push eax
call fcn.00476e09
add esp, 8
test eax, eax
jne 0x401311
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x388]
call fcn.00401880
mov ecx, dword [ebp - 0x388]
mov byte [ecx + 0x1c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x148]
call fcn.00401860
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x164]
call fcn.00401860
jmp 0x401349
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebp - 0x388]
call fcn.00401880
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x148]
call fcn.00401860
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x164]
call fcn.00401860
jmp 0x4010c3
xor eax, eax
jne 0x40108e
cmp dword [ebp - 0x14], 0
je 0x401361
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x40137e
mov ecx, dword [ebp - 0x388]
call fcn.0040b040
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
jmp 0x401387
mov edx, dword [ebp - 0x388]
mov al, byte [edx + 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0046521c
mov esp, ebp
pop ebp
ret 8