Function at 0x404575
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x290
mov eax, 0x455d9a
call fcn.00427981
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x270], eax
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], ecx
mov esi, 0x20019
mov dword [ebp - 0x218], ecx
mov eax, vtable.CArray_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__.0
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x258], 0xff
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x290], ecx
lea eax, [ebp - 0x284]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.00404b85
pop ecx
pop ecx
lea ecx, [ebp - 0x21c]
call fcn.004015de
mov edi, dword [ebp - 0x21c]
or ebx, 0xffffffff
mov byte [ebp - 4], 6
mov dword [ebp - 0x264], ebx
cmp dword [ebp - 0x27c], ebx
jle 0x404ae5
xor al, al
mov dword [ebp - 0x238], eax
cmp ebx, 0xffffffff
jne 0x40468b
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x250]
call fcn.0040503f
mov ebx, eax
jmp 0x4046e7
lea ecx, [ebp - 0x254]
call fcn.004015de
push ebx
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 7
call fcn.00402dfe
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push dword [eax]
lea eax, [ebp - 0x254]
push str._s_s
push eax
call fcn.0040302b
add esp, 0x10
lea ecx, [ebp - 0x250]
push esi
mov esi, dword [ebp - 0x254]
push esi
push reloc.WS2_32.dll_closesocket
call fcn.0040503f
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 6
mov ebx, eax
call fcn.0040538e
test ebx, ebx
jne 0x404ac6
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x240]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x404ac6
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x404abb
mov dword [ebp - 0x220], ebx
lea ecx, [ebp - 0x234]
call fcn.00402a37
xor eax, eax
mov dword [ebp - 0x258], 0xff
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x404a9b
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
mov ecx, dword [ebp - 0x238]
test eax, eax
push 1
pop eax
movzx ecx, cl
cmovne ecx, eax
lea eax, [ebp - 0x210]
push 0x20019
push eax
push dword [ebp - 0x250]
mov dword [ebp - 0x238], ecx
lea ecx, [ebp - 0x234]
call fcn.0040503f
test eax, eax
jne 0x404a9b
cmp byte [ebp - 0x238], al
jne 0x40484b
lea eax, [ebp - 0x218]
mov esi, str.DisplayName
push eax
push 0
push esi
lea ecx, [ebp - 0x234]
call fcn.00405258
test eax, eax
jne 0x404a9b
lea ecx, [ebp - 0x23c]
call fcn.004015de
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 8
push eax
push dword [ebp - 0x218]
lea ecx, [ebp - 0x23c]
call fcn.00405176
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.00405258
push 0xffffffffffffffff
lea ecx, [ebp - 0x23c]
call fcn.004053a6
push dword [ebp + 8]
mov esi, dword [ebp - 0x23c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
mov byte [ebp - 4], 6
lea ecx, [esi - 0x10]
test eax, eax
jne 0x404846
call fcn.0040538e
jmp 0x404a9b
call fcn.0040538e
lea eax, [ebp - 0x218]
mov esi, str.DisplayVersion
push eax
push 0
push esi
lea ecx, [ebp - 0x234]
call fcn.00405258
test eax, eax
jne 0x4049f8
lea ecx, [ebp - 0x224]
call fcn.004015de
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 9
push eax
push dword [ebp - 0x218]
lea ecx, [ebp - 0x224]
call fcn.00405176
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.00405258
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
call fcn.004053a6
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
je 0x4049da
push 0x4598f4
push 0x459a90
lea ecx, [ebp + 0xc]
call fcn.004055b5
push 0x4598f4
push 0x459a94
lea ecx, [ebp + 0xc]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
mov dword [ebp - 0x268], ebx
call fcn.004055b5
dec eax
lea ecx, [ebp + 0xc]
neg eax
push 0x4598f4
sbb al, al
inc al
push 0x459a98
mov dword [ebp - 0x25c], eax
call fcn.004055b5
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x40492f
test bl, bl
jne 0x404926
cmp byte [ebp - 0x25c], bl
je 0x40492f
mov byte [ebp - 0x211], 0
jmp 0x404935
mov byte [ebp - 0x211], cl
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x29c], esp
mov ebx, esp
push eax
mov dword [ebp - 0x228], ebx
call fcn.004029da
add eax, 0x10
mov dword [ebx], eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0xa
mov ebx, esp
mov dword [ebp - 0x228], ebx
push eax
mov dword [ebp - 0x228], eax
call fcn.004029da
add eax, 0x10
mov dword [ebx], eax
pop ecx
mov byte [ebp - 4], 9
call fcn.00402a51
xor dl, dl
pop ecx
pop ecx
cmp byte [ebp - 0x211], dl
je 0x404998
push 1
test eax, eax
movzx edx, dl
pop ecx
cmove edx, ecx
jmp 0x40499b
xor ecx, ecx
inc ecx
cmp byte [ebp - 0x268], 0
je 0x4049a9
cmp eax, 0xffffffff
je 0x4049d4
cmp byte [ebp - 0x25c], 0
je 0x4049b6
cmp eax, ecx
je 0x4049d4
test dl, dl
jne 0x4049d4
mov ecx, dword [ebp - 0x228]
mov byte [ebp - 4], 6
call fcn.0040538e
mov ebx, dword [ebp - 0x220]
jmp 0x404a9b
mov ebx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x224]
push eax
call fcn.004016cc
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 6
call fcn.0040538e
lea eax, [ebp - 0x218]
mov esi, 0x459a9c
push eax
push 0
push esi
lea ecx, [ebp - 0x234]
call fcn.00405258
test eax, eax
jne 0x404a9b
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x218]
lea ecx, [ebp - 0x21c]
call fcn.00405176
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.00405258
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.004053a6
mov edi, dword [ebp - 0x21c]
lea eax, [edi - 0x10]
push eax
call fcn.004029da
add eax, 0x10
pop ecx
mov dword [ebp - 0x260], eax
push 0
push str..exe
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xb
call fcn.00404ece
mov ecx, eax
call fcn.00402f1b
mov ecx, dword [ebp - 0x260]
mov esi, eax
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.0040538e
cmp esi, 0xffffffff
jne 0x404ab0
inc ebx
mov dword [ebp - 0x220], ebx
cmp ebx, dword [ebp - 0x240]
jb 0x404728
jmp 0x404abb
lea ecx, [ebp - 0x234]
call fcn.00402a37
lea ecx, [ebp - 0x250]
call fcn.00402a37
mov ebx, dword [ebp - 0x264]
mov esi, dword [ebp - 0x244]
inc ebx
mov dword [ebp - 0x264], ebx
cmp ebx, dword [ebp - 0x27c]
jl 0x404664
cmp dword [edi - 0xc], 0
jne 0x404b14
call fcn.00404412
test eax, eax
je 0x404b26
cmp esi, 0x20019
jne 0x404b26
mov esi, 0x20119
lea ecx, [edi - 0x10]
mov dword [ebp - 0x244], esi
call fcn.0040538e
jmp 0x40463a
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x21c]
push eax
call fcn.004016cc
lea eax, [ebp - 0x298]
push eax
call fcn.00405f63
pop ecx
lea ecx, [edi - 0x10]
call fcn.0040538e
lea ecx, [ebp - 0x298]
call fcn.00401652
lea ecx, [ebp - 0x284]
call fcn.00401652
lea ecx, [ebp - 0x234]
call fcn.00402a37
lea ecx, [ebp - 0x250]
call fcn.00402a37
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040538e
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0040538e
xor eax, eax
call fcn.00427930
ret