Function at 0x1066972
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x10cd598]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
lea ecx, [ebp - 0x5c]
push ecx
mov esi, 0x1004f58
push esi
push eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x52], bl
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x51], bl
mov dword [edi], ebx
mov dword [edi + 4], ebx
call dword [sym.imp.certcli.dll_CAGetCAProperty]
mov dword [ebp - 0x58], eax
cmp eax, ebx
je 0x10669f2
push eax
push 0x876
call fcn.01088aa0
push eax
call fcn.01099014
push 0x1004208
call fcn.01099014
add esp, 0xc
push dword [ebp - 0x58]
push 0x116013a
push esi
call fcn.01089421
jmp 0x1066ba1
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x1066af0
cmp dword [eax], ebx
je 0x1066af0
push ebx
lea ecx, [ebp - 0x60]
push ecx
push ebx
lea ecx, [ebp - 0x70]
push ecx
push ebx
push 0x1003f78
push dword [eax]
call fcn.010aa8d0
mov esi, eax
cmp esi, ebx
jne 0x1066acf
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push 0x1013050
push dword [ebp - 0x60]
mov dword [ebp - 0x64], 4
call esi
cmp eax, ebx
jne 0x1066a70
cmp dword [ebp - 0x58], 4
jne 0x1066a70
push dword [ebp - 0x6c]
lea eax, [ebp - 0x1c]
push 0x1004478
push 0xc
push eax
call fcn.0102dd8f
add esp, 0x10
mov byte [ebp - 0x52], 1
jmp 0x1066a7b
push eax
push 0x1012ea0
call fcn.01088c53
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push 0x1013030
push dword [ebp - 0x60]
mov dword [ebp - 0x64], 0x34
call esi
cmp eax, ebx
jne 0x1066ab9
cmp dword [ebp - 0x58], 1
jne 0x1066ab9
mov eax, dword [ebp - 0x64]
shr eax, 1
cmp eax, 0x1a
jb 0x1066ac6
mov dword [ebp - 0x68], 0x19
mov eax, dword [ebp - 0x68]
jmp 0x1066ac6
push eax
push 0x1012ea0
call fcn.01088c53
mov eax, ebx
xor ecx, ecx
mov word [ebp + eax*2 - 0x50], cx
jmp 0x1066aec
push esi
push 0x1012ff0
call fcn.01088c53
mov eax, dword [ebp - 0x5c]
push esi
push 0x156013a
push dword [eax]
call fcn.01089421
mov eax, ebx
cmp eax, ebx
jne 0x1066b00
push 0x1005958
push 0x1a
lea eax, [ebp - 0x50]
push eax
call fcn.0102d982
cmp byte [ebp - 0x52], bl
jne 0x1066b15
push 0x1002780
push 0xc
lea eax, [ebp - 0x1c]
push eax
call fcn.0102d982
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x6c]
lea eax, [ebp - 0x50]
push eax
call fcn.0108cfce
cmp eax, ebx
je 0x1066b3e
push eax
push 0x166013a
lea eax, [ebp - 0x50]
push eax
call fcn.01089421
jmp 0x1066b55
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push edi
call fcn.0108eb99
mov byte [ebp - 0x51], 1
mov esi, 0x1004208
push esi
call fcn.01099014
pop ecx
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x871
call fcn.01088aa0
push eax
call fcn.01099014
add esp, 0xc
cmp byte [ebp - 0x51], bl
je 0x1066b97
push 0x10129f4
call fcn.01099014
pop ecx
push edi
push ebx
push ebx
push ebx
call fcn.0103d073
jmp 0x1066b9e
push esi
call fcn.01099014
pop ecx
mov dword [ebp - 0x58], ebx
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x5c], ebx
je 0x1066bbb
push dword [ebp - 0x5c]
push dword [ebp - 0x7c]
call dword [sym.imp.certcli.dll_CAFreeCAProperty]
cmp dword [ebp - 0x60], ebx
pop edi
pop esi
pop ebx
je 0x1066bcc
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x58]
xor ecx, ebp
call fcn.01074bd5
leave
ret 8