Function at 0x457d00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5499fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov dword [ebp - 0x20], 0
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ebx, dword [ebp + 0x10]
mov ecx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x104
cmp byte [ebp + 0xc], al
je 0x457e57
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp dword [ebx + 0x14], 8
mov eax, ebx
mov dword [ebp - 4], 1
jb 0x457d83
mov eax, dword [ebx]
lea edx, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push edx
push 0x20019
push 0
push eax
push 0x80000001
call ecx
test eax, eax
jne 0x457daa
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
test eax, eax
jne 0x457e42
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x228]
mov dword [ebp + 0xc], 0x208
push eax
lea eax, [ebp + 0x10]
push eax
push 0
push 0x554358
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x457e42
mov eax, dword [ebp + 0x10]
cmp eax, 1
je 0x457dee
cmp eax, 2
jne 0x457e42
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x457e0b
test cl, 1
jne 0x457e42
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x22a], 0
je 0x457e14
jmp 0x457e42
xor eax, eax
mov word [ebp - 0x228], ax
mov eax, ecx
lea ecx, [ebp - 0x228]
shr eax, 1
lea edx, [ecx + 2]
mov dword [ebp - 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457e24
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0041ffd0
mov byte [ebp - 4], 0
test edi, edi
je 0x457e51
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [esi + 0x10], 0
jne 0x457f39
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp dword [ebx + 0x14], 8
mov dword [ebp - 4], 3
jb 0x457e7b
mov ebx, dword [ebx]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0x20019
push 0
push ebx
push 0x80000002
call ecx
test eax, eax
jne 0x457ea2
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
test eax, eax
jne 0x457f2e
mov eax, dword [ebp - 0x10]
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp + 0x10]
push eax
push 0
push 0x554358
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x457f2e
mov eax, dword [ebp + 0x10]
cmp eax, 1
je 0x457ee4
cmp eax, 2
jne 0x457f2e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x457efe
test al, 1
jne 0x457f2e
shr eax, 1
cmp word [ebp + eax*2 - 0x22a], 0
je 0x457f07
jmp 0x457f2e
xor eax, eax
mov word [ebp - 0x228], ax
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457f10
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0041ffd0
test edi, edi
je 0x457f39
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc