Function at 0x5bfa98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407c84
xor eax, eax
push ebp
push 0x5bfcda
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407c9c
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00407c9c
call fcn.005b69d8
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x5bfcb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x28]
call fcn.0044fdec
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
call fcn.0044ff34
test al, al
je 0x5bfc9a
mov dl, 1
mov eax, dword [0x4321b4]
call fcn.0043e78c
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x4321b4]
call fcn.0043e78c
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x5bfc93
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
call fcn.0045046c
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xa0]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5bfc6d
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0
push dword [ebp - 4]
push 0x5bfcf4
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00408264
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov eax, dword [ebp - 0x28]
call fcn.0044ff34
test al, al
je 0x5bfc61
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
call fcn.004506e0
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x5bfc4b
inc esi
xor ebx, ebx
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0
lea ecx, [ebp - 0x38]
mov edx, ebx
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x38]
call fcn.00407d28
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
cmp dword [ebp - 0x24], 8
jne 0x5bfc47
push dword [ebp - 4]
push 0x5bfcf4
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00408264
lea ecx, [ebp - 0x40]
mov edx, ebx
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x10]
call fcn.00407c9c
jmp 0x5bfc4b
inc ebx
dec esi
jne 0x5bfbd3
mov eax, dword [ebp - 0x28]
call fcn.0044fdbc
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.005b8004
test al, al
je 0x5bfc6d
inc dword [ebp - 0x14]
dec dword [ebp - 0x2c]
jne 0x5bfb7b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bfc9a
mov eax, dword [ebp - 0x18]
call fcn.00405854
mov eax, dword [ebp - 0x1c]
call fcn.00405854
mov eax, dword [ebp - 0x28]
call fcn.0044fdbc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bfcb7
mov eax, dword [ebp - 0x28]
call fcn.00405854
ret