Function at 0x4575f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d492d
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x68a140]
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 0x4576e7
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.00458840
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.004456a0
mov eax, edi
jmp 0x457875
cmp edx, 0xea
je 0x45772e
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.00455390
add esp, 0x10
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x457764
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.004456a0
mov eax, edi
jmp 0x457875
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 0x457783
lea eax, [edx + esi*2]
jmp 0x4577bf
jbe 0x4577c2
mov eax, dword [ebp - 0x14]
sub eax, edx
sar eax, 1
cmp esi, eax
jbe 0x45779f
push ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.00458c10
mov edx, dword [ebp - 0x1c]
jmp 0x4577c2
sub esi, ecx
add esi, esi
push esi
push 0
push dword [ebp - 0x128]
call fcn.0059bcc0
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 0x4577fa
inc edi
cmp edi, 5
jge 0x457890
mov esi, dword [ebp - 0x20]
jmp 0x457766
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.00455390
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.004456a0
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.00599e5b
mov esp, ebp
pop ebp
ret
lea ecx, [ebp + 8]
call fcn.00407bd0
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.00458130
push 0x6866b8
lea eax, [ebp - 0x13c]
push eax
call fcn.0059b61b
int3