Function at 0x5b1c40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x716b06
mov eax, dword fs:[0]
push eax
mov eax, 0x8474
call fcn.006b59e0
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x8454], eax
test edi, edi
jne 0x5b1c90
test ebx, ebx
je 0x5b1f83
lea ecx, [ebp - 0x8450]
push ecx
push 0x20219
push 0
mov ecx, eax
call fcn.00429100
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x5b1cda
mov ecx, dword [ebp - 0x8454]
lea eax, [ebp - 0x8450]
push eax
push 0x20119
push 0
call fcn.00429100
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5b1f72
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.006b47d0
add esp, 0xc
mov dword [ebp - 0x8468], 0x104
lea eax, [ebp - 0x8478]
mov dword [ebp - 0x8458], 0
push eax
lea eax, [ebp - 0x8470]
push eax
lea eax, [ebp - 0x846c]
push eax
lea eax, [ebp - 0x8480]
push eax
lea eax, [ebp - 0x8460]
push eax
lea eax, [ebp - 0x847c]
push eax
lea eax, [ebp - 0x845c]
push eax
lea eax, [ebp - 0x8458]
push eax
push 0
lea eax, [ebp - 0x8468]
push eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x8450]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test edi, edi
je 0x5b1e69
push dword [ebp - 0x845c]
lea eax, [ebp - 0x8449]
push eax
push dword [edi + 4]
push dword [edi]
call fcn.004326c0
mov eax, dword [edi]
xor esi, esi
add esp, 0x10
mov dword [edi + 4], eax
cmp dword [ebp - 0x8458], esi
jbe 0x5b1e69
jmp 0x5b1da0
lea eax, [ebp - 0x8478]
mov dword [ebp - 0x8464], 0xff
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x8464]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x8450]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x5b1e5c
mov dword [ebp - 0x8434], 7
mov dword [ebp - 0x8438], eax
mov word [ebp - 0x8448], ax
cmp word [ebp - 0x210], ax
jne 0x5b1dfe
xor ecx, ecx
jmp 0x5b1e16
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5b1e07
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x8448]
call fcn.00424cc0
lea eax, [ebp - 0x8448]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00431920
cmp dword [ebp - 0x8434], 8
mov dword [ebp - 4], 0xffffffff
jb 0x5b1e5c
push dword [ebp - 0x8448]
call fcn.00428680
add esp, 4
inc esi
cmp esi, dword [ebp - 0x8458]
jb 0x5b1da0
test ebx, ebx
je 0x5b1f72
push dword [ebp - 0x845c]
lea eax, [ebp - 0x8449]
push eax
push dword [ebx + 4]
push dword [ebx]
call fcn.004326c0
mov eax, dword [ebx]
add esp, 0x10
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x8460]
test eax, eax
je 0x5b1f72
xor esi, esi
test eax, eax
je 0x5b1f72
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, edi
xor eax, eax
mov dword [ebp - 0x8454], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebp - 0x8418], ax
lea eax, [ebp - 0x8454]
push eax
lea eax, [ebp - 0x8418]
push eax
push esi
push dword [ebp - 0x8450]
call edi
test eax, eax
jne 0x5b1f65
mov dword [ebp - 0x841c], 7
mov dword [ebp - 0x8420], eax
mov word [ebp - 0x8430], ax
cmp word [ebp - 0x8418], ax
je 0x5b1f1f
lea eax, [ebp - 0x8418]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b1f10
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x8418]
push eax
lea ecx, [ebp - 0x8430]
call fcn.00424cc0
lea eax, [ebp - 0x8430]
mov dword [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.00431920
cmp dword [ebp - 0x841c], 8
mov dword [ebp - 4], 0xffffffff
jb 0x5b1f65
push dword [ebp - 0x8430]
call fcn.00428680
add esp, 4
inc esi
cmp esi, dword [ebp - 0x8460]
jb 0x5b1eb0
mov eax, dword [ebp - 0x8450]
test eax, eax
je 0x5b1f83
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret