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

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp + 0x7b4], eax
mov ecx, dword [ebp + 0x7c4]
mov eax, dword [ebp + 0x7c0]
mov dword [ebp - 0x70], ecx
lea ecx, [ebp + 0x1a8]
push ecx
push eax
call fcn.00403e1b
pop ecx
pop ecx
test eax, eax
je 0x401cd4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
lea eax, [ebp - 0x6c]
push eax
push 0x20119
xor esi, esi
push esi
lea eax, [ebp + 0x1a8]
push eax
mov edi, 0x80000002
push edi
call ebx
cmp eax, esi
je 0x401b24
push eax
push str.Could_not_open_key.____d_
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push 0x20119
push esi
push str.SOFTWAREMozillaMaintenanceService3932ecacee736d366d6436db0f55bce4
push edi
call ebx
cmp eax, esi
je 0x401b24
push eax
push str.Could_not_open_fallback_key.____d_
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0xc
jmp 0x401ccf
mov edi, dword [ebp - 0x6c]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x64]
push eax
push esi
push esi
push esi
push edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x64], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
je 0x401b6e
push eax
push str.Could_not_query_info_key.____d_
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0xc
cmp edi, esi
je 0x401ccf
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401ccf
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x60], esi
cmp dword [ebp - 0x64], esi
jbe 0x401cc5
mov edi, dword [ebp - 0x5c]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x60]
mov dword [ebp - 0x78], 0xff
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jne 0x401ce9
lea eax, [ebp - 0x74]
push eax
push 0x20119
push esi
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp - 0x74]
cmp eax, esi
je 0x401bcf
push eax
push str.Could_not_open_subkey.____d_
jmp 0x401ca1
xor eax, eax
push 0x1fe
mov word [ebp + 0x5b4], ax
lea eax, [ebp + 0x5b6]
push esi
push eax
mov dword [ebp - 0x68], 0x200
call fcn.00405140
xor eax, eax
push 0x1fe
mov word [ebp + 0x3b4], ax
lea eax, [ebp + 0x3b6]
push esi
push eax
call fcn.00405140
add esp, 0x18
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x5b4]
push eax
push esi
push esi
push str.name
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x401c36
push eax
push str.Could_not_obtain_name_from_registry.____d_
jmp 0x401ca1
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x3b4]
push eax
push esi
push esi
push str.issuer
push edi
mov dword [ebp - 0x68], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x401c62
push eax
push str.Could_not_obtain_issuer_from_registry.____d_
jmp 0x401ca1
lea eax, [ebp + 0x5b4]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x3b4]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x70]
call fcn.00401255
pop ecx
pop ecx
cmp eax, esi
je 0x401c8e
push eax
push str.Error_on_certificate_check.____d_
jmp 0x401ca1
push dword [ebp - 0x70]
call fcn.0040116f
pop ecx
cmp eax, esi
je 0x401d04
push eax
push str.Error_on_certificate_trust_check.____d_
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0xc
cmp edi, esi
je 0x401cb6
push edi
call ebx
inc dword [ebp - 0x60]
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x64]
jb 0x401b80
cmp dword [ebp - 0x5c], esi
je 0x401ccf
push dword [ebp - 0x5c]
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7b4]
xor ecx, ebp
call fcn.004051ba
add ebp, 0x7b8
leave
ret
push eax
push str.Could_not_enum_certs.____d_
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0xc
cmp edi, esi
je 0x401ccf
push edi
jmp 0x401ccd
cmp edi, esi
je 0x401d0b
push edi
call ebx
cmp dword [ebp - 0x5c], esi
je 0x401d15
push dword [ebp - 0x5c]
call ebx
xor eax, eax
inc eax
jmp 0x401cd1