Function at 0x453f88
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.0040704c
xor eax, eax
push ebp
push 0x45422e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407064
lea eax, [ebp - 8]
call fcn.00407054
mov edx, eax
lea eax, [ebp - 4]
call fcn.00453e6c
mov eax, dword [ebp - 4]
call fcn.00453bb8
mov ebx, eax
test ebx, ebx
je 0x45420b
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.004070f0
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, dword [ebp - 0x10]
cmp eax, 7
ja case.0x45400e.5
jmp dword [eax*4 + 0x454015]
mov eax, esi
xor edx, edx
call fcn.00407064
jmp case.0x45400e.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.004070f0
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.004084e0
lea edx, [ebp - 0x118]
mov eax, esi
call fcn.004073c0
jmp case.0x45400e.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.004070f0
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, dword [ebp - 0x14]
shr edx, 1
mov eax, esi
call fcn.004073d8
mov eax, dword [esi]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x4540cf
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle case.0x45400e.5
lea eax, [ebp - 0x14]
push eax
mov eax, esi
call fcn.004079dc
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004070f0
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 0x45410d
sub eax, 4
mov eax, dword [eax]
mov edx, eax
dec edx
mov eax, esi
call fcn.004073d8
jmp case.0x45400e.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.004070f0
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, dword [ebp - 0x14]
add edx, edx
mov eax, esi
call fcn.004073d8
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.00406c28
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x454172
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x454172
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.00406480
test eax, eax
je 0x45417b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle case.0x45400e.5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
call fcn.00406a2c
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004070f0
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov edi, dword [ebp - 0x14]
cmp edi, 1
jl case.0x45400e.5
mov eax, esi
call fcn.004079dc
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.004079dc
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 0x4541ab
push ebx
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454235
lea eax, [ebp - 0xc]
call fcn.00406264
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040705c
ret