Function at 0x489470
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 0x4e6e5d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x148
mov eax, dword [0x51c100]
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 - 0x140], eax
mov edi, ecx
mov dword [ebp - 0x13c], 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]
test eax, eax
jne 0x489593
mov esi, dword [ebp - 0x1c]
lea edi, [ebp - 0x34]
shr esi, 1
lea edx, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x138]
push esi
cmovae edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
cmovae edx, dword [ebp - 0x34]
sub edi, edx
push eax
sar edi, 1
push edi
call fcn.00425440
mov esi, dword [ebp - 0x13c]
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.0040a590
mov eax, esi
jmp 0x48966f
cmp eax, 0xea
je 0x4895a9
push str.Cannot_query_registry_value_size
mov ecx, eax
call fcn.00488490
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x489626
xor esi, esi
mov ecx, dword [ebp - 0x24]
shr eax, 1
cmp eax, ecx
ja 0x4895d1
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], eax
cmovae ecx, dword [ebp - 0x34]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x4895de
sub eax, ecx
lea ecx, [ebp - 0x34]
push 0
push eax
call fcn.0040c260
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x140]
push 0
push dword [ebx + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x489617
inc esi
cmp esi, 5
jge 0x48968d
mov eax, dword [ebp - 0x1c]
jmp 0x4895b2
push str.Cannot_query_registry_value_data
mov ecx, eax
call fcn.00488490
add esp, 4
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.0040a590
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.004a057b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Cannot_query_registry_data_due_to_value_changed_too_often
lea ecx, [ebp - 0x158]
call fcn.00488470
push 0x5193b0
lea eax, [ebp - 0x158]
push eax
call fcn.004a2f8b
int3