Function at 0x40df10
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, 0x82c
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.0040da20
add esp, 8
test eax, eax
je 0x40e0b5
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 0x40e03e
mov esi, eax
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40e533
push esi
push str.Could_not_open_key.____d_
push 0x43f844
call fcn.0040e9c0
add esp, 0xc
push edi
push 0x20119
push 0
push 0x4381c0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40dff1
mov esi, eax
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40e577
push esi
push str.Could_not_open_fallback_key.____d_
push 0x43f844
call fcn.0040e9c0
add esp, 0xc
jmp 0x40e0b5
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40e03e
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40e5ff
push str.Fallback_key_present__skipping_VerifyCertificateTrustForFile_check_and_the_certificate_attribute_registry_matching_check.
push 0x43f844
call fcn.0040e9c0
add esp, 8
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x40e0b7
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 0x40e0ce
mov esi, eax
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40e5bb
push esi
push str.Could_not_query_info_key.____d_
push 0x43f844
call fcn.0040e9c0
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.00412bfe
mov eax, esi
add esp, 0x82c
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp - 0x820], 0
je 0x40e0a9
xor ebx, ebx
lea esi, [ebp - 0x418]
lea edi, [ebp - 0x82c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
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 0x40e505
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 0x40e190
mov esi, eax
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40e3b1
push esi
push str.Could_not_open_subkey.____d_
push 0x43f844
call fcn.0040e9c0
add esp, 0xc
mov eax, 4
lea esi, [ebp - 0x418]
cmp eax, 4
je 0x40e29c
jmp 0x40e037
mov dword [ebp - 0x82c], 0x200
push 0x200
push 0
lea eax, [ebp - 0x618]
push eax
call fcn.00414f70
add esp, 0xc
push 0x200
push 0
mov esi, edi
lea edi, [ebp - 0x818]
push edi
call fcn.00414f70
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 0x40e215
mov edi, eax
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40e3f5
push edi
push str.Could_not_obtain_name_from_registry.____d_
jmp 0x40e269
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 0x40e2ae
mov esi, eax
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40e439
push esi
push str.Could_not_obtain_issuer_from_registry.____d_
push 0x43f844
call fcn.0040e9c0
add esp, 0xc
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 4
lea esi, [ebp - 0x418]
lea edi, [ebp - 0x82c]
cmp eax, 4
jne 0x40e037
inc ebx
cmp ebx, dword [ebp - 0x820]
jb 0x40e0f0
jmp 0x40e0a9
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.0040d0b0
add esp, 8
test eax, eax
je 0x40e341
mov dword [ebp - 0x838], eax
lea esi, [ebp - 0x418]
lea edi, [ebp - 0x82c]
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40e47d
push dword [ebp - 0x838]
push str.Error_on_certificate_check.____d_
push 0x43f844
call fcn.0040e9c0
add esp, 0xc
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 4
cmp eax, 4
je 0x40e29c
jmp 0x40e037
push esi
call fcn.0040d870
add esp, 4
test eax, eax
lea edi, [ebp - 0x82c]
je 0x40e39b
mov esi, eax
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40e4c1
push esi
push str.Error_on_certificate_trust_check.____d_
push 0x43f844
call fcn.0040e9c0
add esp, 0xc
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e174
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x40e179
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40e161
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40e161
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40e20d
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40e20d
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40e263
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40e263
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40e30a
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40e30a
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40e377
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40e377
mov esi, eax
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40e643
push esi
push str.Could_not_enum_certs.____d_
jmp 0x40e09c
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40df87
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40df87
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40dfd9
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40dfd9
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40e096
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40e096
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40e019
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40e019
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40e528
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40e528