Function at 0x572170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fb078
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
call fcn.00571f30
push 0
push 0x61baf2
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
call fcn.00407200
push 0x104
mov dword [ebp - 4], 0
call fcn.0059a123
add esp, 4
mov dword [ebp - 0x6c], eax
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x74], 0x104
mov ecx, esi
call fcn.00572090
cmp dword [ebp - 0x48], 0x10
lea ecx, [ebp - 0x5c]
mov esi, dword [ebp - 0x4c]
lea eax, [ebp - 0x5c]
cmovae ecx, dword [ebp - 0x5c]
add esi, ecx
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 0x34], 0
cmovae eax, dword [ebp - 0x5c]
mov dword [ebp - 0x70], eax
xor eax, eax
mov edi, dword [ebp - 0x70]
mov word [ebp - 0x44], ax
mov eax, esi
sub eax, edi
cmp eax, 7
je 0x57225a
push 1
push eax
lea ecx, [ebp - 0x44]
call fcn.004074a0
test al, al
je 0x57225a
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], 0
cmovae eax, dword [ebp - 0x44]
xor ecx, ecx
mov word [eax], cx
push dword [ebp - 0x64]
lea ecx, [ebp - 0x44]
push esi
push edi
call fcn.00572400
mov byte [ebp - 4], 1
lea edi, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebx + 0x14]
cmovae edi, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x572282
mov eax, dword [ebx]
jmp 0x572284
mov eax, ebx
mov esi, dword [ebx + 0x10]
add esi, eax
cmp ecx, 0x10
jb 0x572290
mov ebx, dword [ebx]
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, esi
sub eax, ebx
mov dword [ebp - 0x1c], 0
cmp eax, 7
je 0x5722d3
push 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.004074a0
test al, al
je 0x5722d3
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax], cx
push dword [ebp - 0x64]
lea ecx, [ebp - 0x2c]
push esi
push ebx
call fcn.00572400
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
lea esi, [ebp - 0x2c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmovae esi, dword [ebp - 0x2c]
push eax
push 0x20119
push 0
push edi
push dword [ebp - 0x68]
call ebx
test eax, eax
je 0x57231f
lea eax, [ebp - 0x60]
push eax
push 0x20219
push 0
push edi
push dword [ebp - 0x68]
call ebx
test eax, eax
jne 0x572365
mov ebx, dword [ebp - 0x6c]
lea eax, [ebp - 0x74]
push eax
push ebx
push 0
push 0
push esi
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x572368
cmp byte [ebx], al
jne 0x57234b
xor ecx, ecx
push ecx
mov ecx, dword [ebp - 0x64]
push ebx
call fcn.00407200
jmp 0x572368
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x572350
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x64]
push ebx
call fcn.00407200
jmp 0x572368
mov ebx, dword [ebp - 0x6c]
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00599f1f
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, 8
jb 0x57238f
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
cmp eax, 8
jb 0x5723b8
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
cmp eax, 0x10
jb 0x5723e1
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00407440
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret