Function at 0x453564
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x45356c
push ebx
xor eax, eax
push ebp
push 0x453810
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x45381c
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4537e8
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x4537df
mov eax, dword [ebp - 0x1c]
add eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, eax
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov ebx, eax
mov eax, dword [ebp - 0x18]
dec eax
cmp eax, 0
jb 0x4537d9
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
push eax
push ebx
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyA
test eax, eax
jne 0x4537d9
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.004057a0
mov edx, dword [ebp - 0x20]
mov ecx, 0x453838
mov eax, dword [ebp - 0x10]
call fcn.0042d230
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.004057a0
mov edx, dword [ebp - 0x24]
mov ecx, 0x45384c
mov eax, dword [ebp - 0x10]
call fcn.0042d230
mov eax, dword [ebp - 8]
call fcn.00405868
cmp eax, 4
jne 0x453665
mov eax, dword [ebp - 8]
cmp dword [eax], 0x16
je 0x4537cc
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x45385c
call fcn.00411ccc
test eax, eax
jne 0x4537cc
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 4]
mov edx, 0x453870
call fcn.004058c0
mov eax, dword [ebp - 0x28]
call fcn.00405a38
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4537cc
lea eax, [ebp - 4]
push eax
mov ecx, 0x453880
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0042d230
cmp dword [ebp - 4], 0
je 0x4537c3
mov eax, dword [ebp - 4]
mov edx, 0x453890
call fcn.004059d0
je 0x4537c3
mov eax, dword [ebp - 4]
mov edx, 0x4538a4
call fcn.004059d0
je 0x4537c3
mov eax, dword [ebp - 4]
mov edx, 0x4538b8
call fcn.004059d0
je 0x4537c3
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov edx, 0x4538cc
call fcn.004058c0
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov eax, 0x80000002
call fcn.0042d230
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.00405640
lea eax, [ebp - 8]
push eax
mov ecx, 0x453900
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0042d230
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x453914
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0042d230
cmp dword [ebp - 0xc], 0
je 0x453787
push 0x45393c
push dword [ebp - 0xc]
push 0x453948
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 4
call fcn.0040593c
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x453954
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0042d230
cmp dword [ebp - 0xc], 0
je 0x4537b0
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4538cc
call fcn.004058c0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00453354
pop ecx
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4535f6
push ebx
call sub.kernel32.dll_LocalFree
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453817
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.004055cc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004055cc
ret