Function at 0x4552c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040713c
xor eax, eax
push ebp
push 0x45556a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407154
lea eax, [ebp - 8]
call fcn.00407144
mov edx, eax
lea eax, [ebp - 4]
call fcn.004551a8
mov eax, dword [ebp - 4]
call fcn.00454ef4
mov ebx, eax
test ebx, ebx
je 0x455547
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004071e0
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, dword [ebp - 0x10]
cmp eax, 7
ja case.0x45534a.5
jmp dword [eax*4 + 0x455351]
mov eax, esi
xor edx, edx
call fcn.00407154
jmp case.0x45534a.5
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004071e0
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x118]
call fcn.004085c0
lea edx, [ebp - 0x118]
mov eax, esi
call fcn.004074a0
jmp case.0x45534a.5
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004071e0
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, dword [ebp - 0x14]
shr edx, 1
mov eax, esi
call fcn.004074b8
mov eax, dword [esi]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x45540b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle case.0x45534a.5
lea eax, [ebp - 0x14]
push eax
mov eax, esi
call fcn.00407abc
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004071e0
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, dword [esi]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x455449
sub eax, 4
mov eax, dword [eax]
mov edx, eax
dec edx
mov eax, esi
call fcn.004074b8
jmp case.0x45534a.5
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004071e0
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, dword [ebp - 0x14]
add edx, edx
mov eax, esi
call fcn.004074b8
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.00406c7c
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4554ae
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x4554ae
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.004064d4
test eax, eax
je 0x4554b7
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle case.0x45534a.5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
call fcn.00406a80
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004071e0
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov edi, dword [ebp - 0x14]
cmp edi, 1
jl case.0x45534a.5
mov eax, esi
call fcn.00407abc
mov edx, edi
add edx, edx
lea eax, [eax + edx*2 - 2]
push eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + edi - 1]
and al, 0xf0
movzx eax, al
shr eax, 4
movzx eax, word [eax*2 + str.0123456789ABCDEFmsctls_progress32]
pop edx
mov word [edx], ax
mov eax, esi
call fcn.00407abc
mov edx, edi
add edx, edx
lea eax, [eax + edx*2 - 4]
push eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + edi - 1]
and al, 0xf
movzx eax, al
movzx eax, word [eax*2 + str.0123456789ABCDEFmsctls_progress32]
pop edx
mov word [edx], ax
dec edi
test edi, edi
jne 0x4554e7
push ebx
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455571
lea eax, [ebp - 0xc]
call fcn.004062b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040714c
ret