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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x828
mov ecx, dword [0x43300c]
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x21a]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
push esi
push eax
call fcn.0040b9b0
add esp, 8
test eax, eax
je 0x40c034
lea edi, [ebp - 0x81c]
push edi
push 0x20119
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40bfbd
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40c479
push esi
push str.Could_not_open_key.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
push edi
push 0x20119
push 0
push str.SOFTWAREMozillaMaintenanceService3932ecacee736d366d6436db0f55bce4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40bf71
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40c4bc
push esi
push str.Could_not_open_fallback_key.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
jmp 0x40c034
cmp dword [ebp + 0x10], 0
je 0x40bfbd
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40c542
push str.Fallback_key_present__skipping_VerifyCertificateTrustForFile_check_and_the_certificate_attribute_registry_matching_check.
push 0x434588
call fcn.0040c890
add esp, 8
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x40c036
lea eax, [ebp - 0x820]
mov dword [ebp - 0x820], 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40c04d
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40c4ff
push esi
push str.Could_not_query_info_key.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e271
mov eax, esi
add esp, 0x828
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp - 0x820], 0
je 0x40c028
xor ebx, ebx
lea esi, [ebp - 0x418]
lea edi, [ebp - 0x82c]
jmp 0x40c137
mov dword [ebp - 0x82c], 0x200
push 0x200
push 0
lea eax, [ebp - 0x618]
push eax
call fcn.00410040
add esp, 0xc
push 0x200
push 0
mov esi, edi
lea edi, [ebp - 0x818]
push edi
call fcn.00410040
add esp, 0xc
push esi
lea eax, [ebp - 0x618]
push eax
push 0
push 0
push str.name
push dword [ebp - 0x828]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call eax
test eax, eax
je 0x40c1d2
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov edi, eax
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40c33f
push edi
push str.Could_not_obtain_name_from_registry.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 4
lea edi, [ebp - 0x82c]
cmp esi, 4
jne 0x40bfb6
inc ebx
lea esi, [ebp - 0x418]
cmp ebx, dword [ebp - 0x820]
jae 0x40c028
mov dword [ebp - 0x824], 0xff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x824]
push eax
push esi
push ebx
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40c44b
lea eax, [ebp - 0x828]
push eax
push 0x20119
push 0
push esi
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40c070
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40c2fc
push esi
push str.Could_not_open_subkey.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
mov esi, 4
cmp esi, 4
je 0x40c124
jmp 0x40bfb6
mov dword [ebp - 0x82c], 0x200
push esi
lea edi, [ebp - 0x818]
push edi
push 0
push 0
push str.issuer
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c22b
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40c382
push esi
push str.Could_not_obtain_issuer_from_registry.____d_
jmp 0x40c0f7
lea eax, [ebp - 0x618]
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x834]
mov dword [ebp - 0x830], edi
push eax
mov esi, dword [ebp + 0xc]
push esi
call fcn.00408520
add esp, 8
test eax, eax
je 0x40c285
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x434794]
lea edi, [ebp - 0x82c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40c3c5
push esi
push str.Error_on_certificate_check.____d_
jmp 0x40c2c1
push esi
call fcn.00408cd0
add esp, 4
test eax, eax
lea edi, [ebp - 0x82c]
je 0x40c2ef
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40c408
push esi
push str.Error_on_certificate_trust_check.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
mov esi, 4
lea eax, [ebp - 0x828]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 4
je 0x40c124
jmp 0x40bfb6
mov esi, 1
lea eax, [ebp - 0x81c]
jmp 0x40c2d9
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40c1ac
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x40c1ac
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40c0f1
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x40c0f1
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40c220
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x40c220
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40c27d
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x40c27d
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40c2bb
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x40c2bb
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40c585
push esi
push str.Could_not_enum_certs.____d_
jmp 0x40c01b
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40bf07
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x40bf07
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40bf59
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x40bf59
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40c015
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x40c015
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40bf98
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x40bf98
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40c46e
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x40c46e