Function at 0x101254b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bb20
push 0x101ce27
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x654
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x10]
movzx ecx, ax
mov dword [ebp - 0x28], ecx
shr eax, 0x10
mov edi, eax
mov dword [ebp - 0x20], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0100a8e9
xor ebx, ebx
push ebx
mov eax, dword [esi + 8]
add eax, 0x28
push eax
call fcn.0100a927
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x10125bf
push esi
call fcn.0100a8cc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
test byte [ebp - 0x28], 2
je 0x101268d
mov dword [ebp - 0x34], 0x200
cmp edi, 2
jae 0x10127e3
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x30]
push eax
mov esi, 0x20019
push esi
call dword [sym.imp.NTDLL.DLL_RtlOpenCurrentUser]
test eax, eax
jl 0x10127e3
lea eax, [ebp - 0x23c]
push eax
push esi
push ebx
push dword [edi*4 + 0x100ba68]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
mov esi, eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
cmp esi, ebx
jne 0x101267b
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
cmp eax, ebx
jne 0x101266f
cmp dword [ebp - 0x2c], 1
jne 0x101266f
mov eax, dword [ebp - 0x34]
shr eax, 1
cmp word [ebp + eax*2 - 0x236], bx
jne 0x101266f
mov dword [ebp - 4], ebx
push 0x20003
push ebx
lea eax, [ebp - 0x234]
push eax
call dword [0x10230a0]
mov dword [ebp - 0x24], eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
cmp dword [ebp - 0x24], ebx
jne 0x101268d
push 0x7d
push 0x1b8
call dword [sym.imp.KERNEL32.DLL_Beep]
test byte [ebp - 0x28], 1
je 0x1012739
lea eax, [edi + 0x60f]
cmp eax, 0x610
ja 0x10127e3
mov edi, 0x100
push edi
lea ecx, [ebp - 0x660]
push ecx
push eax
push ebx
mov esi, dword [sym.imp.USER32.DLL_LoadStringW]
call esi
push edi
lea eax, [ebp - 0x458]
push eax
push 0x60e
push ebx
call esi
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x460]
push eax
mov esi, dword [sym.imp.NTDLL.DLL_RtlInitUnicodeString]
call esi
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x250]
push eax
call esi
lea eax, [ebp - 0x460]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x250]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], 0x10040
lea eax, [ebp - 0x254]
push eax
push 7
lea eax, [ebp - 0x248]
push eax
push 3
push 3
push 0x50000018
call dword [sym.imp.NTDLL.DLL_NtRaiseHardError]
mov edi, dword [ebp - 0x20]
test byte [ebp - 0x28], 4
je 0x10127e3
mov dword [ebp - 0x66c], ebx
cmp edi, 2
jae 0x10127e3
push 1
pop esi
mov dword [ebp - 4], esi
push ebx
call dword [0x102315c]
mov dword [ebp - 0x668], eax
cmp eax, ebx
jl 0x10127df
lea eax, [ebp - 0x66c]
push eax
push 0x100bb00
push esi
push ebx
push 0x100baf0
call dword [0x1023158]
mov dword [ebp - 0x668], eax
cmp eax, ebx
jl 0x10127d9
mov eax, dword [ebp - 0x66c]
mov ecx, dword [eax]
lea edx, [ebp - 0x664]
push edx
push 0x100bb10
push dword [edi*4 + 0x100ba70]
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0x668], eax
cmp eax, ebx
jl 0x10127cd
mov eax, dword [ebp - 0x664]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x664]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x66c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [0x1023160]
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x1c]
call fcn.0100a9e8
push dword [ebp + 8]
jmp 0x10125a7