Function at 0x40f520
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 [0x43d00c]
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x21a]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
push esi
push eax
call fcn.0040ef90
add esp, 8
test eax, eax
je 0x40f6b2
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 0x40f64b
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40fae7
push esi
push str.Could_not_open_key.____d_
push 0x43f3e8
call fcn.0040ff60
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 0x40f601
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40fb2a
push esi
push str.Could_not_open_fallback_key.____d_
push 0x43f3e8
call fcn.0040ff60
add esp, 0xc
jmp 0x40f6b2
cmp dword [ebp + 0x10], 0
je 0x40f64b
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40fbb0
push str.Fallback_key_present__skipping_VerifyCertificateTrustForFile_check_and_the_certificate_attribute_registry_matching_check.
push 0x43f3e8
call fcn.0040ff60
add esp, 8
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
inc esi
jmp 0x40f6b4
xor eax, eax
lea ecx, [ebp - 0x820]
mov dword [ecx], eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push ecx
push eax
push eax
push eax
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40f6cb
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40fb6d
push esi
push str.Could_not_query_info_key.____d_
push 0x43f3e8
call fcn.0040ff60
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.00412591
mov eax, esi
add esp, 0x828
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp - 0x820], 0
je 0x40f6a6
xor eax, eax
lea ebx, [ebp - 0x824]
lea edi, [ebp - 0x418]
xor esi, esi
mov dword [ebp - 0x824], 0xff
push eax
push eax
push eax
push eax
push ebx
push edi
push esi
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40fab9
lea eax, [ebp - 0x828]
push eax
push 0x20119
push 0
push edi
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40f768
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov edi, eax
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40f96a
push edi
push str.Could_not_open_subkey.____d_
push 0x43f3e8
call fcn.0040ff60
add esp, 0xc
mov edi, 4
jmp 0x40f80b
mov ebx, 0x200
mov dword [ebp - 0x82c], ebx
push ebx
xor edi, edi
push edi
lea eax, [ebp - 0x618]
push eax
call fcn.00414930
add esp, 0xc
push ebx
push edi
lea eax, [ebp - 0x818]
push eax
call fcn.00414930
add esp, 0xc
lea ebx, [ebp - 0x82c]
push ebx
lea eax, [ebp - 0x618]
push eax
push edi
push edi
push str.name
push dword [ebp - 0x828]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call edi
test eax, eax
je 0x40f831
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov edi, eax
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40f9ad
push edi
push str.Could_not_obtain_name_from_registry.____d_
push 0x43f3e8
call fcn.0040ff60
add esp, 0xc
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 4
lea ebx, [ebp - 0x824]
cmp edi, 4
jne 0x40f646
inc esi
mov eax, 0
lea edi, [ebp - 0x418]
cmp esi, dword [ebp - 0x820]
jb 0x40f6e4
jmp 0x40f6a6
mov dword [ebp - 0x82c], 0x200
push ebx
lea ebx, [ebp - 0x818]
push ebx
mov eax, 0
push eax
push eax
push str.issuer
push dword [ebp - 0x828]
call edi
test eax, eax
je 0x40f8a8
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov edi, eax
mov eax, dword [0x43f5f4]
lea ebx, [ebp - 0x824]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40f9f0
push edi
push str.Could_not_obtain_issuer_from_registry.____d_
push 0x43f3e8
call fcn.0040ff60
add esp, 0xc
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f75e
lea eax, [ebp - 0x618]
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x834]
mov dword [ebp - 0x830], ebx
push eax
mov edi, dword [ebp + 0xc]
push edi
call fcn.00411420
add esp, 8
test eax, eax
lea ebx, [ebp - 0x824]
je 0x40f902
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov edi, eax
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40fa33
push edi
push str.Error_on_certificate_check.____d_
jmp 0x40f945
push edi
call fcn.00411b90
add esp, 4
mov ecx, eax
test eax, eax
lea eax, [ebp - 0x81c]
mov edi, 1
je 0x40f95d
mov edi, ecx
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40fa76
push edi
push str.Error_on_certificate_trust_check.____d_
push 0x43f3e8
call fcn.0040ff60
add esp, 0xc
mov edi, 4
lea eax, [ebp - 0x828]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f80b
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40f74b
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40f74b
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40f7e1
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40f7e1
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40f884
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40f884
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40f8fa
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40f8fa
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40f93f
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40f93f
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov edi, eax
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40fbf3
push edi
push str.Could_not_enum_certs.____d_
jmp 0x40f699
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40f597
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40f597
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40f5e9
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40f5e9
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40f693
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40f693
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40f628
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40f628
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40fadc
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40fadc