Function at 0x6e91f870
Capabilities:
Query or enumerate registry key

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
mov edi, 4
push esi
push ebx
push ecx
sub esp, 0x258
mov esi, dword [ecx + 8]
mov dword [ebp - 0x228], edi
mov eax, dword [ecx]
test byte [0x6e928d50], 8
mov dword [ebp - 0x240], esi
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x23c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x244], esi
jne 0x6e91fb20
mov eax, dword [ebp - 0x23c]
and eax, 0xff0000
mov dword [ebp - 0x248], eax
cmp eax, 0x60000
je 0x6e91fc00
ja 0x6e91f930
cmp eax, 0x40000
je 0x6e91fbc0
jbe 0x6e91f988
cmp dword [ebp - 0x248], 0x50000
mov ebx, 2
jne 0x6e91f910
test byte [0x6e928d50], 1
jne 0x6e91fc3e
lea esi, [esi]
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], ebx
xor edi, edi
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [ebp - 0x248]
cmp eax, 0x80000
je 0x6e91fba8
cmp eax, 0x90000
jne 0x6e91faa0
test byte [0x6e928d50], 1
mov ebx, 2
je 0x6e91f910
mov dword [esp], 0
mov eax, str.CRYPT_OpenParentStore
mov edi, str.CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE_n
mov dword [esp + 8], eax
mov eax, 0x6e928d50
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
call fcn.6e91c5a0
jmp 0x6e91f910
cmp eax, 0x10000
je 0x6e91fb08
cmp eax, 0x20000
jne 0x6e91fc71
mov edx, str.SoftwareMicrosoftSystemCertificates
mov eax, 0x80000002
lea ecx, [ebp - 0x22c]
xor esi, esi
mov dword [esp + 0x10], ecx
mov ebx, 0x20019
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.advapi32.dll_RegOpenKeyExW
sub esp, 0x14
test eax, eax
jne 0x6e91fc6a
xor ebx, ebx
mov edi, 1
lea esi, [ebp - 0x220]
lea esi, [esi]
lea edi, [edi]
mov eax, ebx
mov ecx, 0x104
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x22c]
xor edx, edx
mov dword [ebp - 0x224], ecx
xor ecx, ecx
inc ebx
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x1c], edx
xor edx, edx
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x224]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.advapi32.dll_RegEnumKeyExW
sub esp, 0x20
test eax, eax
mov edx, eax
je 0x6e91fac0
cmp eax, 0x103
je 0x6e91fa53
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], edx
cmp dword [ebp - 0x248], 0x20000
jne 0x6e91f91b
mov dword [esp], str.Root
mov eax, dword [ebp - 0x240]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x228]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x23c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x244]
call eax
sub esp, 0x14
mov edi, eax
jmp 0x6e91f91b
cmp eax, 0x70000
jne 0x6e91fc71
mov edx, str.SoftwarePoliciesMicrosoftSystemCertificates
mov eax, 0x80000001
jmp 0x6e91f9a8
mov dword [esp], esi
mov eax, dword [ebp - 0x240]
xor edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x228]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x23c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x244]
call eax
sub esp, 0x14
test eax, eax
mov edi, eax
jne 0x6e91f9f0
jmp 0x6e91f91b
mov edx, str.SoftwareMicrosoftSystemCertificates
mov eax, 0x80000001
jmp 0x6e91f9a8
mov ebx, dword [ebp - 0x240]
mov edx, str.__08x___p___p___p__n
mov ecx, str.CertEnumSystemStore
mov dword [esp + 0x1c], esi
mov edi, dword [ebp - 0x23c]
mov esi, 0x6e928d50
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], 3
call fcn.6e91c5a0
test byte [0x6e928d50], 8
je 0x6e91f8bc
mov dword [esp + 0x14], ebx
mov eax, str.__08x___p__n
mov dword [esp + 0xc], eax
mov eax, str.CRYPT_OpenParentStore
mov dword [esp + 8], eax
mov eax, 0x6e928d50
mov dword [esp + 0x10], edi
mov dword [esp + 4], eax
mov dword [esp], 3
call fcn.6e91c5a0
jmp 0x6e91f8bc
mov edx, str.SoftwarePoliciesMicrosoftSystemCertificates
mov eax, 0x80000002
jmp 0x6e91f9a8
test byte [0x6e928d50], 1
mov ebx, 2
je 0x6e91f910
mov dword [esp], 0
mov eax, str.CRYPT_OpenParentStore
mov edi, str.CERT_SYSTEM_STORE_CURRENT_SERVICE_n
mov dword [esp + 8], eax
mov eax, 0x6e928d50
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
call fcn.6e91c5a0
jmp 0x6e91f910
test byte [0x6e928d50], 1
mov ebx, 2
je 0x6e91f910
mov dword [esp], 0
mov eax, str.CERT_SYSTEM_STORE_USERS_n
mov dword [esp + 0xc], eax
mov eax, str.CRYPT_OpenParentStore
mov dword [esp + 8], eax
mov eax, 0x6e928d50
mov dword [esp + 4], eax
call fcn.6e91c5a0
jmp 0x6e91f910
mov edx, str.CERT_SYSTEM_STORE_SERVICES_n
mov ecx, str.CRYPT_OpenParentStore
mov dword [esp + 0xc], edx
mov esi, 0x6e928d50
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], 0
call fcn.6e91c5a0
jmp 0x6e91f910
mov ebx, eax
jmp 0x6e91f910
mov ebx, 2
jmp 0x6e91f910