Function at 0x41dbc0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4946
mov eax, dword fs:[0]
push eax
sub esp, 0x9d8
mov eax, dword [0x53132c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, edx
lea edx, [ebp - 0x944]
push edx
push 8
xor esi, esi
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x92c], eax
mov dword [ebp - 0x938], ecx
mov dword [ebp - 0x928], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41df2a
lea eax, [ebp - 0x924]
push eax
mov dword [ebp - 0x930], 0x105
mov dword [ebp - 0x928], esi
call fcn.0041d240
mov dword [ebp - 4], esi
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], esi
mov word [ebp - 0x240], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x41dc62
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x240]
call fcn.004089d0
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x930]
push edx
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x944]
mov ebx, dword [ebp - 0x230]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x41de9d
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea esp, [esp]
inc dword [ebp - 0x928]
lea eax, [ebp - 0x224]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x41dcd0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x240]
call fcn.0040e4f0
cmp dword [ebp - 0x22c], 8
mov eax, dword [ebp - 0x240]
jae 0x41dd07
lea eax, [ebp - 0x240]
lea ecx, [ebp - 0x93c]
push ecx
push 1
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41de00
lea edx, [ebp - 0x934]
push edx
mov edx, dword [ebp - 0x93c]
lea eax, [ebp - 0x924]
push eax
lea ecx, [ebp - 0x940]
push ecx
push 0
push str.DisplayName
mov esi, 0x20a
push edx
mov dword [ebp - 0x934], esi
call edi
test eax, eax
jne 0x41ddf1
cmp dword [ebp - 0x940], 1
jne 0x41ddf1
lea eax, [ebp - 0x934]
push eax
mov eax, dword [ebp - 0x93c]
lea ecx, [ebp - 0x71a]
push ecx
lea edx, [ebp - 0x940]
push edx
push 0
push str.DisplayVersion
push eax
mov dword [ebp - 0x934], esi
call edi
lea ecx, [ebp - 0x934]
push ecx
mov ecx, dword [ebp - 0x93c]
lea edx, [ebp - 0x510]
push edx
lea eax, [ebp - 0x940]
push eax
push 0
push str.Publisher
push ecx
mov dword [ebp - 0x934], esi
call edi
mov edx, dword [ebp - 0x92c]
mov eax, dword [edx]
mov esi, dword [eax]
cmp esi, eax
je 0x41ddf1
mov edi, edi
mov eax, dword [ebp - 0x938]
mov ecx, dword [esi + 8]
push eax
lea edx, [ebp - 0x924]
call fcn.0041d620
mov esi, dword [esi]
mov ecx, dword [ebp - 0x92c]
cmp esi, dword [ecx]
jne 0x41ddd0
mov edx, dword [ebp - 0x93c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
xor ecx, ecx
push 0xffffffffffffffff
xor eax, eax
mov word [ebp - 0x71a], cx
xor edx, edx
push esi
lea ecx, [ebp - 0x304]
mov word [ebp - 0x924], ax
mov word [ebp - 0x510], dx
call fcn.00408ac0
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x2e8]
call fcn.00408ac0
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x930], 0x105
cmp ebx, eax
ja 0x41de5b
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x240]
call fcn.00408ac0
jmp 0x41de6c
mov ecx, ebx
sub ecx, eax
push esi
push ecx
lea ecx, [ebp - 0x240]
call fcn.004115c0
mov ecx, dword [ebp - 0x928]
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x930]
push edx
mov edx, dword [ebp - 0x944]
lea eax, [ebp - 0x224]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x41dcc0
mov eax, dword [ebp - 0x944]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 8
cmp dword [ebp - 0x22c], edi
jb 0x41dec6
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.00458691
add esp, 4
xor edx, edx
mov ebx, 7
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov word [ebp - 0x240], dx
cmp dword [ebp - 0x2d4], edi
jb 0x41def7
mov eax, dword [ebp - 0x2e8]
push eax
call fcn.00458691
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x2d4], ebx
mov dword [ebp - 0x2d8], esi
mov word [ebp - 0x2e8], cx
cmp dword [ebp - 0x2f0], edi
jb 0x41df23
mov edx, dword [ebp - 0x304]
push edx
call fcn.00458691
add esp, 4
xor eax, eax
jmp 0x41e279
push 0x9c40
mov ecx, 0x536e48
call fcn.0044af00
test al, al
je 0x41e274
mov dword [ebp - 0x9dc], 0x513850
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x98c]
mov dword [ebp - 0x928], 1
mov dword [ebp - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
call fcn.004016a0
lea ecx, [ebp - 0x938]
lea eax, [ebp - 0x9d8]
push ecx
lea ecx, [ebp - 0x98c]
mov dword [ebp - 0x954], eax
mov dword [ebp - 0x950], esi
call fcn.00401660
push eax
mov dword [ebp - 4], 4
call fcn.00404a20
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x938]
add esp, 4
mov dword [ebp - 0x930], eax
cmp ebx, esi
je 0x41dff9
push esi
lea ecx, [ebp - 0x92c]
call fcn.0044752e
mov eax, dword [ebx + 4]
cmp eax, esi
jbe 0x41dfd5
cmp eax, 0xffffffff
jae 0x41dfd5
dec eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
lea ecx, [ebp - 0x92c]
not esi
call fcn.00447556
and esi, ebx
je 0x41dff7
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
xor esi, esi
mov ecx, dword [ebp - 0x930]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push 0x20
call eax
mov byte [ebp - 0x94c], al
cmp dword [ebp - 0x954], esi
jne 0x41e02c
mov eax, dword [ebp - 0x980]
or eax, 4
push esi
push eax
lea ecx, [ebp - 0x98c]
call fcn.00401560
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x9dc]
mov edx, dword [ecx + 4]
mov ebx, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea ecx, [ebp - 0x9d8]
mov dword [ebp + edx - 0x9dc], ebx
call fcn.004045c0
mov esi, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x9d8], esi
mov dword [ebp - 0x99c], 0
mov dword [ebp - 0x998], 4
push 3
lea eax, [ebp - 0x2c8]
mov dword [ebp - 4], 7
push edi
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x2cc], eax
call fcn.00409340
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2cc]
push ecx
push ecx
lea edx, [ebp - 0x9dc]
push str.Failed_to_enumerate_registry_key:_HKLM_
push edx
call fcn.00404c20
add esp, 0xc
push eax
call fcn.00404c20
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2cc]
lea ecx, [ebp - 0x2c8]
add esp, 8
cmp eax, ecx
je 0x41e0d9
push eax
call fcn.004587c5
add esp, 4
lea edx, [ebp - 0x240]
push edx
lea ecx, [ebp - 0x9dc]
call fcn.004031f0
push 0x90
push str.AppSearchItem.cpp
push eax
push 0x9c40
mov ecx, 0x536e48
mov byte [ebp - 4], 9
call fcn.0044af10
cmp dword [ebp - 0x22c], 0x10
jb 0x41e121
mov eax, dword [ebp - 0x240]
push eax
call fcn.00458691
add esp, 4
mov edx, dword [ebp - 0x9dc]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x98c]
mov dword [ebp - 0x92c], ecx
mov dword [ebp + eax - 0x9dc], ebx
mov dword [ebp - 4], 0xa
test byte [ebp - 0x998], 1
lea ecx, [ebp - 0x9d8]
mov dword [ebp - 0x928], ecx
mov dword [ebp - 0x9d8], esi
je 0x41e170
mov edx, dword [ebp - 0x9c8]
mov eax, dword [edx]
push eax
call fcn.00458691
add esp, 4
mov eax, dword [ebp - 0x9c8]
mov dword [eax], 0
mov ecx, dword [ebp - 0x9b8]
mov dword [ecx], 0
mov edx, dword [ebp - 0x9a8]
mov dword [edx], 0
mov eax, dword [ebp - 0x9c4]
mov dword [eax], 0
mov ecx, dword [ebp - 0x9b4]
mov dword [ecx], 0
mov edx, dword [ebp - 0x9a4]
mov dword [edx], 0
and dword [ebp - 0x998], 0xfffffffe
mov dword [ebp - 0x99c], 0
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x9a0]
mov ebx, eax
test eax, eax
je 0x41e231
mov edi, dword [eax]
test edi, edi
je 0x41e228
push 0
lea ecx, [ebp - 0x938]
call fcn.0044752e
mov eax, dword [edi + 4]
test eax, eax
je 0x41e206
cmp eax, 0xffffffff
jae 0x41e206
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [ebp - 0x938]
not esi
call fcn.00447556
and esi, edi
je 0x41e228
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push ebx
call fcn.00458691
add esp, 4
lea ecx, [ebp - 0x9d4]
mov byte [ebp - 4], 0xa
call fcn.00447beb
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x9dc]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x98c]
mov dword [ebp + ecx - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00447a81
add esp, 4
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004587b6
mov esp, ebp
pop ebp
ret