Function at 0x457820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d308d
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x689140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x12c], eax
mov edi, ecx
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x128], edi
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x24], 0
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], 0x100
push ecx
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test edx, edx
jne 0x457917
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
shr eax, 1
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x1c]
call fcn.00458a70
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [edi], ecx
mov ecx, dword [ebp - 0x24]
mov dword [edi + 4], edx
mov dword [edi + 8], esi
mov dword [edi + 0xc], ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.00445600
mov eax, edi
jmp 0x457aa5
cmp edx, 0xea
je 0x45795e
mov eax, dword [ebp + 8]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x134], eax
mov eax, esp
mov dword [ebp - 0x130], ecx
mov ecx, edx
mov dword [ebp - 0x13c], str.Cannot_query_registry_value_size
mov dword [ebp - 0x138], 0
movups xmm0, xmmword [ebp - 0x13c]
movups xmmword [eax], xmm0
call fcn.004555c0
add esp, 0x10
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x457994
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 4], ecx
lea ecx, [ebp - 0x1c]
mov dword [edi + 8], edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [edi + 0xc], eax
call fcn.00445600
mov eax, edi
jmp 0x457aa5
xor edi, edi
mov eax, dword [ebp - 0x18]
mov ecx, eax
mov edx, dword [ebp - 0x1c]
sub ecx, edx
shr esi, 1
sar ecx, 1
mov dword [ebp - 0x128], eax
cmp esi, ecx
jae 0x4579b3
lea eax, [edx + esi*2]
jmp 0x4579ef
jbe 0x4579f2
mov eax, dword [ebp - 0x14]
sub eax, edx
sar eax, 1
cmp esi, eax
jbe 0x4579cf
push ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.00458e40
mov edx, dword [ebp - 0x1c]
jmp 0x4579f2
sub esi, ecx
add esi, esi
push esi
push 0
push dword [ebp - 0x128]
call fcn.0059a470
mov eax, dword [ebp - 0x128]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
add eax, esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push edx
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x12c]
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
cmp edx, 0xea
jne 0x457a2a
inc edi
cmp edi, 5
jge 0x457ac0
mov esi, dword [ebp - 0x20]
jmp 0x457996
mov eax, dword [ebp + 8]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x134], eax
mov eax, esp
mov dword [ebp - 0x130], ecx
mov ecx, edx
mov dword [ebp - 0x13c], str.Cannot_query_registry_value_data
mov dword [ebp - 0x138], 0
movups xmm0, xmmword [ebp - 0x13c]
movups xmmword [eax], xmm0
call fcn.004555c0
mov esi, dword [ebp - 0x140]
add esp, 0x10
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], ecx
lea ecx, [ebp - 0x1c]
mov dword [esi + 8], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [esi + 0xc], eax
call fcn.00445600
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059860b
mov esp, ebp
pop ebp
ret
lea ecx, [ebp + 8]
call fcn.00407c10
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x13c]
lea eax, [ebp - 0x12c]
push eax
push 0x3e
push str.Cannot_query_registry_data_due_to__value_changed_too_often
call fcn.00458360
push 0x685890
lea eax, [ebp - 0x13c]
push eax
call fcn.00599dcb
int3