Function at 0x495680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef038
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x160
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x13c], eax
mov edi, ecx
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x18], edi
xorps xmm0, xmm0
xor ecx, ecx
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x1c], 0x100
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push dword [ebx + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test edx, edx
jne 0x4957a5
mov esi, dword [ebp - 0x1c]
lea edi, [ebp - 0x34]
shr esi, 1
lea edx, [ebp - 0x34]
cmp dword [ebp - 0x20], 7
lea eax, [ebp - 0x138]
push esi
cmova edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
cmova edx, dword [ebp - 0x34]
sub edi, edx
push eax
sar edi, 1
push edi
call fcn.0040e7b0
mov esi, dword [ebp - 0x154]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x18]
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x34]
mov dword [esi + 0x14], 0
mov word [ebp - 0x34], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
call fcn.0040a900
mov eax, esi
jmp 0x4958f4
cmp edx, 0xea
je 0x4957ec
mov eax, dword [ebx + 8]
sub esp, 0x10
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x144], eax
mov eax, esp
mov dword [ebp - 0x140], ecx
mov ecx, edx
mov dword [ebp - 0x14c], str.Cannot_query_registry_value_size
mov dword [ebp - 0x148], 0
movups xmm0, xmmword [ebp - 0x14c]
movups xmmword [eax], xmm0
call fcn.004944e0
add esp, 0x10
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4958ab
xor esi, esi
nop dword [eax]
mov ecx, dword [ebp - 0x24]
shr eax, 1
cmp eax, ecx
ja 0x49581f
cmp dword [ebp - 0x20], 7
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], eax
cmova ecx, dword [ebp - 0x34]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x49582c
sub eax, ecx
lea ecx, [ebp - 0x34]
push 0
push eax
call fcn.0040b8e0
cmp dword [ebp - 0x20], 7
lea ecx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x13c]
push 0
push dword [ebx + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
cmp edx, 0xea
jne 0x49586c
inc esi
cmp esi, 5
jge 0x495912
mov eax, dword [ebp - 0x1c]
jmp 0x495800
mov eax, dword [ebx + 8]
sub esp, 0x10
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x144], eax
mov eax, esp
mov dword [ebp - 0x140], ecx
mov ecx, edx
mov dword [ebp - 0x14c], str.Cannot_query_registry_value_data
mov dword [ebp - 0x148], 0
movups xmm0, xmmword [ebp - 0x14c]
movups xmmword [eax], xmm0
call fcn.004944e0
add esp, 0x10
xorps xmm0, xmm0
lea ecx, [ebp - 0x34]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
xor eax, eax
movups xmm0, xmmword [ebp - 0x34]
mov dword [edi + 0x14], 0
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x18]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov dword [edi + 0x18], eax
call fcn.0040a900
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea ecx, [ebx + 8]
call fcn.00458960
push 0x3e
push str.Cannot_query_registry_data_due_to__value_changed_too_often
lea edx, [ebp - 0x13c]
mov dword [ebp - 0x13c], eax
lea ecx, [ebp - 0x170]
call fcn.0040e620
add esp, 8
push eax
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 1
call fcn.00495d90
push 0x542970
lea eax, [ebp - 0x150]
push eax
call fcn.004a869b
int3