Function at 0x40a780
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.0040a2a0
add esp, 8
test eax, eax
je 0x40a924
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 0x40a8ad
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 0x40ad69
push esi
push str.Could_not_open_key.____d_
push 0x434588
call fcn.0040b1d0
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 0x40a861
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 0x40adac
push esi
push str.Could_not_open_fallback_key.____d_
push 0x434588
call fcn.0040b1d0
add esp, 0xc
jmp 0x40a924
cmp dword [ebp + 0x10], 0
je 0x40a8ad
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 0x40ae32
push str.Fallback_key_present__skipping_VerifyCertificateTrustForFile_check_and_the_certificate_attribute_registry_matching_check.
push 0x434588
call fcn.0040b1d0
add esp, 8
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x40a926
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 0x40a93d
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 0x40adef
push esi
push str.Could_not_query_info_key.____d_
push 0x434588
call fcn.0040b1d0
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.0040e0d1
mov eax, esi
add esp, 0x828
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp - 0x820], 0
je 0x40a918
xor ebx, ebx
lea esi, [ebp - 0x418]
lea edi, [ebp - 0x82c]
jmp 0x40aa27
mov dword [ebp - 0x82c], 0x200
push 0x200
push 0
lea eax, [ebp - 0x618]
push eax
call fcn.0040fff0
add esp, 0xc
push 0x200
push 0
mov esi, edi
lea edi, [ebp - 0x818]
push edi
call fcn.0040fff0
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 0x40aac2
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 0x40ac2f
push edi
push str.Could_not_obtain_name_from_registry.____d_
push 0x434588
call fcn.0040b1d0
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 0x40a8a6
inc ebx
lea esi, [ebp - 0x418]
cmp ebx, dword [ebp - 0x820]
jae 0x40a918
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 0x40ad3b
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 0x40a960
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 0x40abec
push esi
push str.Could_not_open_subkey.____d_
push 0x434588
call fcn.0040b1d0
add esp, 0xc
mov esi, 4
cmp esi, 4
je 0x40aa14
jmp 0x40a8a6
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 0x40ab1b
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 0x40ac72
push esi
push str.Could_not_obtain_issuer_from_registry.____d_
jmp 0x40a9e7
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.0040d050
add esp, 8
test eax, eax
je 0x40ab75
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 0x40acb5
push esi
push str.Error_on_certificate_check.____d_
jmp 0x40abb1
push esi
call fcn.0040d800
add esp, 4
test eax, eax
lea edi, [ebp - 0x82c]
je 0x40abdf
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 0x40acf8
push esi
push str.Error_on_certificate_trust_check.____d_
push 0x434588
call fcn.0040b1d0
add esp, 0xc
mov esi, 4
lea eax, [ebp - 0x828]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 4
je 0x40aa14
jmp 0x40a8a6
mov esi, 1
lea eax, [ebp - 0x81c]
jmp 0x40abc9
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40aa9c
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x40aa9c
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40a9e1
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x40a9e1
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40ab10
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x40ab10
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40ab6d
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x40ab6d
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40abab
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x40abab
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 0x40ae75
push esi
push str.Could_not_enum_certs.____d_
jmp 0x40a90b
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40a7f7
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x40a7f7
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40a849
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x40a849
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40a905
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x40a905
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40a888
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x40a888
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40ad5e
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x40ad5e