Function at 0x579850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x645624]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x174], eax
cmp dword [edi + 0x1c], 0x10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x158], eax
lea eax, [edi + 8]
mov dword [ebp - 0x14c], edi
jb 0x57988b
mov eax, dword [eax]
lea ecx, [ebp - 0x168]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x579b72
mov ecx, dword [edi + 0x24]
sub ecx, dword [edi + 0x20]
mov dword [ebp - 0x16c], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x579b66
xor esi, esi
mov dword [ebp - 0x170], esi
mov eax, dword [edi + 0x20]
xor ebx, ebx
add eax, esi
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x15c], ebx
cmp dword [eax + 0x14], 0x10
jb 0x5798ec
mov eax, dword [eax]
lea ecx, [ebp - 0x154]
push ecx
push eax
push dword [ebp - 0x168]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x150]
push eax
push 0
push 0
push 0
push 0
push dword [ebp - 0x154]
call esi
test eax, eax
jne 0x57996c
push 1
push dword [ebp - 0x150]
call fcn.00593ac8
mov ebx, eax
add esp, 8
mov dword [ebp - 0x15c], ebx
test ebx, ebx
je 0x579b87
lea eax, [ebp - 0x150]
push eax
push ebx
push 0
push 0
push 0
push dword [ebp - 0x154]
call esi
test eax, eax
je 0x57996c
push ebx
call fcn.00593b50
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x15c], ebx
push dword [ebp - 0x154]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x150]
cmp esi, 0x70
jb 0x579b1e
add esi, 0xfffffff0
mov eax, 0xaaaaaaab
mul esi
mov ecx, esi
mov edi, edx
shr edi, 6
lea eax, [edi + edi*2]
shl eax, 5
sub ecx, eax
test edi, edi
je 0x579b18
test ecx, ecx
jne 0x579b18
push 1
push esi
call fcn.00593ac8
push 1
push esi
mov dword [ebp - 0x164], eax
call fcn.00593ac8
mov ecx, dword [ebp - 0x164]
add esp, 0x10
mov dword [ebp - 0x160], eax
test ecx, ecx
je 0x579b18
test eax, eax
je 0x579b18
movups xmm0, xmmword [esi + ebx]
push esi
push ebx
push ecx
movups xmmword [ebp - 0x24], xmm0
call fcn.00581a60
mov ecx, dword [ebp - 0x158]
add esp, 0xc
call fcn.004c8190
mov ecx, dword [ebp - 0x158]
push esi
push dword [ebp - 0x160]
push dword [ebp - 0x164]
call fcn.004c8290
mov ecx, dword [ebp - 0x158]
lea eax, [ebp - 0x34]
push 0x10
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004c8290
lea eax, [ebp - 0xe8]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x14], xmm0
call fcn.004bf680
push esi
mov esi, dword [ebp - 0x160]
lea eax, [ebp - 0xe8]
push esi
push eax
call fcn.004bf6b0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.004bf7c0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004bff30
add esp, 0x20
test al, al
je 0x579b04
test edi, edi
je 0x579b04
mov ebx, dword [ebp - 0x174]
nop dword [eax]
lea ecx, [ebp - 0x148]
call fcn.005716a0
movups xmm0, xmmword [esi]
lea eax, [ebp - 0x94]
push eax
movups xmmword [ebp - 0x94], xmm0
lea ecx, [ebp - 0x148]
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebp - 0x84], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [ebp - 0x74], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [ebp - 0x64], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [ebp - 0x54], xmm0
movups xmm0, xmmword [esi + 0x50]
movups xmmword [ebp - 0x44], xmm0
call fcn.00571830
lea eax, [ebp - 0x148]
mov ecx, ebx
push eax
call fcn.00572810
lea esi, [esi + 0x60]
sub edi, 1
jne 0x579a90
mov ebx, dword [ebp - 0x15c]
mov esi, dword [ebp - 0x160]
push dword [ebp - 0x164]
call fcn.00593b50
push esi
call fcn.00593b50
add esp, 8
mov edi, dword [ebp - 0x14c]
test ebx, ebx
je 0x579b2b
push ebx
call fcn.00593b50
add esp, 4
mov ecx, dword [edi + 0x24]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x20]
mov ebx, dword [ebp - 0x16c]
mov esi, dword [ebp - 0x170]
inc ebx
imul ecx
add esi, 0x18
mov dword [ebp - 0x16c], ebx
sar edx, 2
mov eax, edx
mov dword [ebp - 0x170], esi
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x5798d1
push dword [ebp - 0x168]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b676
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 0x154]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push dword [ebp - 0x168]
call ebx
mov ecx, dword [ebp - 4]
mov eax, 0xfffffffd
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057b676
mov esp, ebp
pop ebp
ret 8