Function at 0x7987dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040a874
mov eax, dword [ebp - 8]
call fcn.0040a874
mov eax, dword [ebp + 8]
call fcn.0040a874
xor eax, eax
push ebp
push 0x798ad7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
cmp byte [ebx + 8], 0
je 0x798aa7
mov dl, 1
mov eax, dword [0x60799c]
call fcn.00608b7c
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x798aa0
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.0079a390
test al, al
jne 0x798867
call fcn.00409f88
jmp 0x798aa7
cmp dword [ebp - 8], 0
jne 0x798877
call fcn.00409f88
jmp 0x798aa7
xor edx, edx
push ebp
push 0x798a77
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
call fcn.00608f2c
test al, al
je 0x798a6d
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00609c48
test al, al
je 0x798a47
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00609884
and eax, 0x7f
cmp eax, 4
ja case.default.0x7988c2
jmp dword [eax*4 + 0x7988c9]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
call fcn.0060a450
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebx + 4]
mov dx, 4
mov eax, ebx
call fcn.00799368
jmp case.default.0x7988c2
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
call fcn.0060a450
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebx + 4]
mov dx, 5
mov eax, ebx
call fcn.00799368
jmp case.default.0x7988c2
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00609abc
lea edx, [ebp - 0x28]
call fcn.00424120
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebx + 4]
mov dx, 3
mov eax, ebx
call fcn.00799368
jmp case.default.0x7988c2
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00609858
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x18]
call fcn.0040b98c
cmp dword [ebp - 0x18], 0
jle 0x7989dc
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x7989a6
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0xc]
call fcn.0040ad48
mov edx, 1
dec edx
test eax, eax
je 0x7989be
cmp edx, dword [eax - 4]
jb 0x7989c3
call fcn.004089ac
inc edx
lea ecx, [eax + edx*2 - 2]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00609b00
lea edx, [ebp - 0xc]
xchg edx, eax
call fcn.0040b98c
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp + 8]
call fcn.0040b7f8
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x798a27
cmp dword [ebp - 0x14], 7
jne 0x798a27
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebx + 4]
mov dx, 6
mov eax, ebx
call fcn.00799368
jmp case.default.0x7988c2
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebx + 4]
mov dx, 7
mov eax, ebx
call fcn.00799368
jmp case.default.0x7988c2
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebx + 4]
mov dx, 2
mov eax, ebx
call fcn.00799368
mov eax, dword [ebp - 0x1c]
call fcn.00608c10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x798a85
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x798aa7
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x1c], edx
call fcn.00408ac4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x798ade
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.0040a7f0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a7f0
lea eax, [ebp + 8]
call fcn.0040a790
ret