Function at 0x495960
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 0x4ef088
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd0
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 - 0xac], eax
mov edi, ecx
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x24], edi
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x24], 0
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], 0x80
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 0x495a45
push dword [ebp - 0x28]
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call fcn.00448de0
mov ecx, dword [ebp - 0x20]
mov eax, edi
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [edi], ecx
mov ecx, dword [ebp - 0x24]
mov dword [edi + 4], edx
mov dword [edi + 8], esi
mov dword [edi + 0xc], ecx
jmp 0x495b8a
cmp edx, 0xea
je 0x495a8c
mov eax, dword [ebx + 8]
sub esp, 0x10
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0xb4], eax
mov eax, esp
mov dword [ebp - 0xb0], ecx
mov ecx, edx
mov dword [ebp - 0xbc], str.Cannot_query_registry_value_size
mov dword [ebp - 0xb8], 0
movups xmm0, xmmword [ebp - 0xbc]
movups xmmword [eax], xmm0
call fcn.004944e0
add esp, 0x10
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x495ab1
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov eax, edi
jmp 0x495b8a
xor edi, edi
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
sub esi, edx
cmp eax, esi
jae 0x495ac6
add eax, edx
mov dword [ebp - 0x1c], eax
jmp 0x495af7
jbe 0x495af7
mov ecx, dword [ebp - 0x18]
sub ecx, edx
cmp eax, ecx
jbe 0x495add
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00425570
jmp 0x495af4
mov ecx, dword [ebp - 0x1c]
sub eax, esi
push eax
push 0
push ecx
lea esi, [ecx + eax]
call fcn.004a8c90
add esp, 0xc
mov dword [ebp - 0x1c], esi
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x28]
push eax
push edx
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0xac]
push 0
push dword [ebx + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
cmp edx, 0xea
jne 0x495b2c
inc edi
cmp edi, 5
jge 0x495ba8
mov eax, dword [ebp - 0x28]
jmp 0x495ab3
mov eax, dword [ebx + 8]
sub esp, 0x10
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0xb4], eax
mov eax, esp
mov dword [ebp - 0xb0], ecx
mov ecx, edx
mov dword [ebp - 0xbc], str.Cannot_query_registry_value_data
mov dword [ebp - 0xb8], 0
movups xmm0, xmmword [ebp - 0xbc]
movups xmmword [eax], xmm0
call fcn.004944e0
mov esi, dword [ebp - 0xc4]
add esp, 0x10
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov eax, esi
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 - 0xac]
mov dword [ebp - 0xac], eax
lea ecx, [ebp - 0xe0]
call fcn.0040e620
add esp, 8
push eax
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 1
call fcn.00495d90
push 0x542970
lea eax, [ebp - 0xc0]
push eax
call fcn.004a869b
int3