Function at 0x5522d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x629688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x178], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x164], eax
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
push esi
push edi
mov dword [ebp - 0x14c], ebx
jb 0x55230b
mov eax, dword [eax]
lea ecx, [ebp - 0x15c]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x5525e8
mov ecx, dword [ebx + 0x24]
sub ecx, dword [ebx + 0x20]
mov dword [ebp - 0x174], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x5525dc
xor edi, edi
mov dword [ebp - 0x170], edi
mov eax, dword [ebx + 0x20]
xor esi, esi
add eax, edi
mov dword [ebp - 0x150], esi
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x160], esi
jb 0x55236c
mov eax, dword [eax]
lea ecx, [ebp - 0x154]
push ecx
push eax
push dword [ebp - 0x15c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edi, 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 edi
test eax, eax
jne 0x5523ec
push 1
push dword [ebp - 0x150]
call fcn.005882d3
mov esi, eax
add esp, 8
mov dword [ebp - 0x160], esi
test esi, esi
je 0x5525fd
lea eax, [ebp - 0x150]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x154]
call edi
test eax, eax
je 0x5523ec
push esi
call fcn.005864b7
add esp, 4
xor esi, esi
mov dword [ebp - 0x160], esi
push dword [ebp - 0x154]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x150]
cmp edi, 0x70
jb 0x552594
add edi, 0xfffffff0
mov eax, 0xaaaaaaab
mul edi
mov ebx, edx
shr ebx, 6
mov ecx, edi
lea eax, [ebx + ebx*2]
shl eax, 5
sub ecx, eax
test ebx, ebx
je 0x55258e
test ecx, ecx
jne 0x55258e
push 1
push edi
call fcn.005882d3
push 1
push edi
mov dword [ebp - 0x158], eax
call fcn.005882d3
mov ecx, dword [ebp - 0x158]
add esp, 0x10
mov dword [ebp - 0x168], eax
test ecx, ecx
je 0x55258e
test eax, eax
je 0x55258e
movq xmm0, qword [edi + esi]
push edi
movq qword [ebp - 0x24], xmm0
movq xmm0, qword [edi + esi + 8]
push esi
push ecx
movq qword [ebp - 0x1c], xmm0
call fcn.00587170
mov ecx, dword [ebp - 0x164]
add esp, 0xc
call fcn.004070b0
mov ecx, dword [ebp - 0x164]
push edi
push dword [ebp - 0x168]
push dword [ebp - 0x158]
call fcn.004071b0
mov ecx, dword [ebp - 0x164]
push 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004071b0
xorps xmm0, xmm0
lea eax, [ebp - 0xe8]
push eax
movq qword [ebp - 0x14], xmm0
movq qword [ebp - 0xc], xmm0
call fcn.00410f30
push edi
mov edi, dword [ebp - 0x168]
lea eax, [ebp - 0xe8]
push edi
push eax
call fcn.00410f60
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.00411060
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00411820
add esp, 0x20
test al, al
je 0x55257a
test ebx, ebx
je 0x55257a
mov esi, edi
mov dword [ebp - 0x16c], edi
lea ebx, [ebx]
lea ecx, [ebp - 0x148]
call fcn.00547f10
mov ecx, 0x18
lea edi, [ebp - 0x94]
lea eax, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x148]
call fcn.005480c0
mov ecx, dword [ebp - 0x178]
lea eax, [ebp - 0x148]
push eax
call fcn.00548ee0
mov esi, dword [ebp - 0x16c]
add esi, 0x60
mov dword [ebp - 0x16c], esi
dec ebx
jne 0x552520
mov esi, dword [ebp - 0x160]
mov edi, dword [ebp - 0x168]
push dword [ebp - 0x158]
call fcn.005864b7
push edi
call fcn.005864b7
add esp, 8
mov ebx, dword [ebp - 0x14c]
test esi, esi
je 0x5525a1
push esi
call fcn.005864b7
add esp, 4
mov ecx, dword [ebx + 0x24]
sub ecx, dword [ebx + 0x20]
mov esi, dword [ebp - 0x174]
mov edi, dword [ebp - 0x170]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
inc esi
add edi, 0x18
add eax, edx
mov dword [ebp - 0x174], esi
mov dword [ebp - 0x170], edi
cmp esi, eax
jb 0x552351
push dword [ebp - 0x15c]
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.00586d1b
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 0x154]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push dword [ebp - 0x15c]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0xfffffffd
pop ebx
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 8