Function at 0x472d97
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x228], edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x218], edi
test ecx, ecx
je 0x472deb
mov dword [ecx], edi
lea edx, [ebp - 0x218]
mov ecx, eax
call fcn.004c723f
mov esi, eax
test esi, esi
je 0x472e15
push esi
push 0x5560138
call dword [sym.imp.certcli.dll_Ordinal_357]
mov edi, dword [ebp - 0x218]
jmp 0x472fb4
mov esi, dword [ebp - 0x214]
push ebx
mov ebx, esi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, di
jne 0x472e21
lea eax, [ebp - 0x210]
sub ebx, ecx
push eax
push dword [0x518598]
sar ebx, 1
push edi
mov edi, dword [ebp - 0x218]
push edi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x472eef
push eax
push eax
push 0x5620138
push edi
call dword [sym.imp.certcli.dll_Ordinal_360]
and dword [ebp - 0x210], 0
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x472eef
xor ecx, ecx
mov ebx, eax
mov word [eax], cx
sub ebx, edi
lea eax, [ebp - 0x210]
shr ebx, 1
push eax
push dword [0x518598]
inc ebx
push ecx
push edi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, 2
jne 0x472ed3
cmp dword [ebp + 8], 0
je 0x472ed7
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
je 0x472ee9
push esi
push 0x5740138
jmp 0x472edd
test esi, esi
je 0x472ee9
push esi
push 0x5760138
push edi
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x472fb3
mov esi, dword [ebp - 0x214]
cmp dword [ebp - 0x210], 0
je 0x472f6f
lea esi, [esi + ebx*2]
xor eax, eax
cmp ax, word [esi]
je 0x472f6f
xor ecx, ecx
lea eax, [ebp - 0x214]
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x20c]
mov ebx, ecx
push eax
push ecx
jmp 0x472f4d
push 0xffffffffffffffff
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
dec eax
sub eax, 1
je 0x472f69
inc ebx
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x472f1b
jmp 0x472f6f
lea esi, [ebp - 0x20c]
mov edx, dword [ebp - 0x220]
mov ecx, esi
call fcn.004c723f
mov esi, eax
test esi, esi
je 0x472f90
push esi
push 0x5960138
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x472fb3
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x472fa9
mov eax, dword [ebp - 0x210]
and dword [ebp - 0x210], 0
mov dword [ecx], eax
mov eax, dword [ebp - 0x228]
mov dword [eax], edi
xor edi, edi
pop ebx
test edi, edi
je 0x472fbf
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x210], 0
je 0x472fd4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.004c738c
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005036b0
leave
ret 0x10