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

Disassembly:
sub esp, 0x844
mov eax, dword [0x421050]
xor eax, esp
mov dword [esp + 0x83c], eax
push ebx
push ebp
push esi
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x634]
push edi
call fcn.00403efd
test eax, eax
jne 0x401ab6
xor eax, eax
jmp 0x401cee
lea eax, [esp + 0x1c]
mov ebp, 0x20119
push eax
push ebp
xor ebx, ebx
lea eax, [esp + 0x640]
push ebx
push eax
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401b1d
push eax
push str.Could_not_open_key.____d_
call fcn.00401000
push eax
call fcn.00404e6e
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
push str.SOFTWAREMozillaMaintenanceService3932ecacee736d366d6436db0f55bce4
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401b1d
push eax
push str.Could_not_open_fallback_key.____d_
call fcn.00401000
push eax
call fcn.00404e6e
add esp, 0xc
jmp 0x401aaf
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
push ebx
push ebx
push edi
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x401b5b
push eax
push str.Could_not_query_info_key.____d_
call fcn.00401000
push eax
call fcn.00404e6e
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401ce2
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov dword [esp + 0x24], eax
cmp dword [esp + 0x18], eax
jbe 0x401ce5
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0xff
push ecx
lea ecx, [esp + 0x44c]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x401cd1
lea eax, [esp + 0x2c]
push eax
push 0x20119
push ebx
lea eax, [esp + 0x444]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [esp + 0x2c]
test eax, eax
je 0x401bc7
push eax
push str.Could_not_open_subkey.____d_
jmp 0x401c9b
xor eax, eax
mov dword [esp + 0x14], 0x200
push 0x1fe
mov word [esp + 0x23c], ax
lea eax, [esp + 0x23e]
push ebx
push eax
call fcn.0040bf90
add esp, 0xc
xor eax, eax
mov word [esp + 0x38], ax
lea eax, [esp + 0x3a]
push 0x1fe
push ebx
push eax
call fcn.0040bf90
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x23c]
push eax
push ebx
push ebx
push str.name
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401c30
push eax
push str.Could_not_obtain_name_from_registry.____d_
jmp 0x401c9b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x200
push eax
lea eax, [esp + 0x3c]
push eax
push ebx
push ebx
push str.issuer
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401c5c
push eax
push str.Could_not_obtain_issuer_from_registry.____d_
jmp 0x401c9b
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x238]
mov dword [esp + 0x30], eax
lea edx, [esp + 0x30]
lea eax, [esp + 0x38]
mov dword [esp + 0x34], eax
call fcn.00401029
test eax, eax
je 0x401c88
push eax
push str.Error_on_certificate_check.____d_
jmp 0x401c9b
mov ecx, dword [esp + 0x20]
call fcn.00401367
test eax, eax
je 0x401cc5
push eax
push str.Error_on_certificate_trust_check.____d_
call fcn.00401000
push eax
call fcn.00404e6e
add esp, 0xc
test esi, esi
je 0x401cb0
push esi
call ebp
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x18]
jb 0x401b71
jmp 0x401ce5
test esi, esi
je 0x401ccc
push esi
call ebp
xor ebx, ebx
inc ebx
jmp 0x401ce5
push eax
push str.Could_not_enum_certs.____d_
call fcn.00401000
push eax
call fcn.00404e6e
add esp, 0xc
test edi, edi
je 0x401cec
push edi
call ebp
mov eax, ebx
mov ecx, dword [esp + 0x84c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040502c
add esp, 0x844
ret