Function at 0x45f7a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa14
mov eax, dword [0x5af710]
xor eax, ebp
mov dword [esp + 0xa10], eax
xor eax, eax
mov dword [esp], ecx
push ebx
push esi
push edi
mov byte [esp + 0x818], 0
mov ecx, 0x7f
lea edi, [esp + 0x819]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x618], 0
mov ecx, 0x7f
lea edi, [esp + 0x619]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x7f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, dword [ebp + 8]
xor eax, eax
mov byte [esp + 0x418], 0
mov ecx, 0x7f
lea edi, [esp + 0x419]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x218], 0
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0x219]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.__regKeyVersion_
push ebx
stosb byte es:[edi], al
mov dword [esp + 0x18], 0x200
call fcn.0053c3a0
mov edi, dword [esp + 0x14]
mov esi, eax
mov eax, dword [ebp + 0xc]
add esp, 8
cmp esi, eax
mov dword [edi + 0xe0], esi
jae 0x45fa98
test esi, esi
je 0x45fa98
push esi
push ebx
lea eax, [esp + 0x620]
push eax
mov ecx, edi
call fcn.0045e7d0
test eax, eax
jl 0x45fa98
push esi
push ebx
lea ecx, [esp + 0x820]
push ecx
mov ecx, edi
call fcn.0045e840
test eax, eax
jl 0x45fa98
push esi
push ebx
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.0045edd0
test eax, eax
jl 0x45fa98
push esi
push ebx
lea eax, [esp + 0x420]
push eax
mov ecx, edi
call fcn.0045ecf0
test eax, eax
jl 0x45fa98
push 0
lea ecx, [esp + 0x61c]
push ecx
mov ecx, edi
call fcn.0045e920
mov ecx, dword [edi + 0xdc]
lea edx, [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45f935
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x21c]
push eax
push 0
push 0
lea ecx, [esp + 0x828]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45f94e
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa10]
xor ecx, ebp
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x218]
xor edx, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45f965
sub eax, esi
mov dword [esp + 0x14], eax
je 0x45f99e
cmp byte [esp + edx + 0x218], 0x2c
jne 0x45f986
mov byte [esp + edx + 0x218], 0x2e
lea eax, [esp + 0x218]
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45f991
sub eax, esi
cmp edx, eax
jb 0x45f974
lea eax, [esp + 0x18]
xor edx, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45f9a7
sub eax, esi
mov dword [esp + 0x14], eax
je 0x45f9dd
cmp byte [esp + edx + 0x18], 0x2c
jne 0x45f9c2
mov byte [esp + edx + 0x18], 0x2e
lea eax, [esp + 0x18]
inc edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45f9d0
sub eax, esi
cmp edx, eax
jb 0x45f9b6
lea edx, [esp + 0x418]
push str.HIGHER
push edx
xor esi, esi
call fcn.0053c3a0
add esp, 8
test eax, eax
je 0x45fa15
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x21c]
push ecx
mov ecx, edi
call fcn.0045f1c0
xor edx, edx
test eax, eax
setg dl
mov esi, edx
lea eax, [esp + 0x418]
push str.LOWER
push eax
call fcn.0053c3a0
add esp, 8
test eax, eax
je 0x45fa4b
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x21c]
push edx
mov ecx, edi
call fcn.0045f1c0
xor ecx, ecx
test eax, eax
setl cl
mov esi, ecx
lea edx, [esp + 0x418]
push str.SAME
push edx
call fcn.0053c3a0
add esp, 8
test eax, eax
je 0x45fa7f
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x21c]
push ecx
mov ecx, edi
call fcn.0045f1c0
test eax, eax
jne 0x45fa7f
or esi, 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa10]
xor ecx, ebp
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0xa1c]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 8