Function at 0x40a460
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 [0x43200c]
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x21a]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
push esi
push eax
call fcn.00409f70
add esp, 8
test eax, eax
je 0x40a5f2
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 0x40a58b
mov ecx, dword [0x432a44]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x43378c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40aa27
push esi
push str.Could_not_open_key.____d_
push 0x433580
call fcn.0040aea0
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 0x40a541
mov ecx, dword [0x432a44]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x43378c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40aa6a
push esi
push str.Could_not_open_fallback_key.____d_
push 0x433580
call fcn.0040aea0
add esp, 0xc
jmp 0x40a5f2
cmp dword [ebp + 0x10], 0
je 0x40a58b
mov ecx, dword [0x432a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43378c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40aaf0
push str.Fallback_key_present__skipping_VerifyCertificateTrustForFile_check_and_the_certificate_attribute_registry_matching_check.
push 0x433580
call fcn.0040aea0
add esp, 8
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
inc esi
jmp 0x40a5f4
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 0x40a60b
mov ecx, dword [0x432a44]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x43378c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40aaad
push esi
push str.Could_not_query_info_key.____d_
push 0x433580
call fcn.0040aea0
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.0040dec1
mov eax, esi
add esp, 0x828
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp - 0x820], 0
je 0x40a5e6
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 0x40a9f9
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 0x40a6a8
mov ecx, dword [0x432a44]
mov edx, dword fs:[0x2c]
mov edi, eax
mov eax, dword [0x43378c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a8aa
push edi
push str.Could_not_open_subkey.____d_
push 0x433580
call fcn.0040aea0
add esp, 0xc
mov edi, 4
jmp 0x40a74b
mov ebx, 0x200
mov dword [ebp - 0x82c], ebx
push ebx
xor edi, edi
push edi
lea eax, [ebp - 0x618]
push eax
call fcn.0040fdd0
add esp, 0xc
push ebx
push edi
lea eax, [ebp - 0x818]
push eax
call fcn.0040fdd0
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 0x40a771
mov ecx, dword [0x432a44]
mov edx, dword fs:[0x2c]
mov edi, eax
mov eax, dword [0x43378c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a8ed
push edi
push str.Could_not_obtain_name_from_registry.____d_
push 0x433580
call fcn.0040aea0
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 0x40a586
inc esi
mov eax, 0
lea edi, [ebp - 0x418]
cmp esi, dword [ebp - 0x820]
jb 0x40a624
jmp 0x40a5e6
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 0x40a7e8
mov ecx, dword [0x432a44]
mov edx, dword fs:[0x2c]
mov edi, eax
mov eax, dword [0x43378c]
lea ebx, [ebp - 0x824]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a930
push edi
push str.Could_not_obtain_issuer_from_registry.____d_
push 0x433580
call fcn.0040aea0
add esp, 0xc
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a69e
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.0040ce90
add esp, 8
test eax, eax
lea ebx, [ebp - 0x824]
je 0x40a842
mov ecx, dword [0x432a44]
mov edx, dword fs:[0x2c]
mov edi, eax
mov eax, dword [0x43378c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a973
push edi
push str.Error_on_certificate_check.____d_
jmp 0x40a885
push edi
call fcn.0040d600
add esp, 4
mov ecx, eax
test eax, eax
lea eax, [ebp - 0x81c]
mov edi, 1
je 0x40a89d
mov edi, ecx
mov ecx, dword [0x432a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43378c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a9b6
push edi
push str.Error_on_certificate_trust_check.____d_
push 0x433580
call fcn.0040aea0
add esp, 0xc
mov edi, 4
lea eax, [ebp - 0x828]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a74b
push 0x43378c
call fcn.0040d7c7
add esp, 4
cmp dword [0x43378c], 0xffffffff
jne 0x40a68b
mov dword [0x433580], 0
push 0x401f00
call fcn.0040da3c
add esp, 4
push 0x43378c
call fcn.0040d819
add esp, 4
jmp 0x40a68b
push 0x43378c
call fcn.0040d7c7
add esp, 4
cmp dword [0x43378c], 0xffffffff
jne 0x40a721
mov dword [0x433580], 0
push 0x401f00
call fcn.0040da3c
add esp, 4
push 0x43378c
call fcn.0040d819
add esp, 4
jmp 0x40a721
push 0x43378c
call fcn.0040d7c7
add esp, 4
cmp dword [0x43378c], 0xffffffff
jne 0x40a7c4
mov dword [0x433580], 0
push 0x401f00
call fcn.0040da3c
add esp, 4
push 0x43378c
call fcn.0040d819
add esp, 4
jmp 0x40a7c4
push 0x43378c
call fcn.0040d7c7
add esp, 4
cmp dword [0x43378c], 0xffffffff
jne 0x40a83a
mov dword [0x433580], 0
push 0x401f00
call fcn.0040da3c
add esp, 4
push 0x43378c
call fcn.0040d819
add esp, 4
jmp 0x40a83a
push 0x43378c
call fcn.0040d7c7
add esp, 4
cmp dword [0x43378c], 0xffffffff
jne 0x40a87f
mov dword [0x433580], 0
push 0x401f00
call fcn.0040da3c
add esp, 4
push 0x43378c
call fcn.0040d819
add esp, 4
jmp 0x40a87f
mov ecx, dword [0x432a44]
mov edx, dword fs:[0x2c]
mov edi, eax
mov eax, dword [0x43378c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40ab33
push edi
push str.Could_not_enum_certs.____d_
jmp 0x40a5d9
push 0x43378c
call fcn.0040d7c7
add esp, 4
cmp dword [0x43378c], 0xffffffff
jne 0x40a4d7
mov dword [0x433580], 0
push 0x401f00
call fcn.0040da3c
add esp, 4
push 0x43378c
call fcn.0040d819
add esp, 4
jmp 0x40a4d7
push 0x43378c
call fcn.0040d7c7
add esp, 4
cmp dword [0x43378c], 0xffffffff
jne 0x40a529
mov dword [0x433580], 0
push 0x401f00
call fcn.0040da3c
add esp, 4
push 0x43378c
call fcn.0040d819
add esp, 4
jmp 0x40a529
push 0x43378c
call fcn.0040d7c7
add esp, 4
cmp dword [0x43378c], 0xffffffff
jne 0x40a5d3
mov dword [0x433580], 0
push 0x401f00
call fcn.0040da3c
add esp, 4
push 0x43378c
call fcn.0040d819
add esp, 4
jmp 0x40a5d3
push 0x43378c
call fcn.0040d7c7
add esp, 4
cmp dword [0x43378c], 0xffffffff
jne 0x40a568
mov dword [0x433580], 0
push 0x401f00
call fcn.0040da3c
add esp, 4
push 0x43378c
call fcn.0040d819
add esp, 4
jmp 0x40a568
push 0x43378c
call fcn.0040d7c7
add esp, 4
cmp dword [0x43378c], 0xffffffff
jne 0x40aa1c
mov dword [0x433580], 0
push 0x401f00
call fcn.0040da3c
add esp, 4
push 0x43378c
call fcn.0040d819
add esp, 4
jmp 0x40aa1c