Function at 0x798cd4
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 0x798fcf
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
cmp byte [ebx + 8], 0
je 0x798f9f
mov dl, 1
mov eax, dword [0x60799c]
call fcn.00608b7c
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x798f98
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.0079a888
test al, al
jne 0x798d5f
call fcn.00409f88
jmp 0x798f9f
cmp dword [ebp - 8], 0
jne 0x798d6f
call fcn.00409f88
jmp 0x798f9f
xor edx, edx
push ebp
push 0x798f6f
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 0x798f65
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00609c48
test al, al
je 0x798f3f
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00609884
and eax, 0x7f
cmp eax, 4
ja case.default.0x798dba
jmp dword [eax*4 + 0x798dc1]
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.00799860
jmp case.default.0x798dba
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.00799860
jmp case.default.0x798dba
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.00799860
jmp case.default.0x798dba
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 0x798ed4
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x798e9e
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 0x798eb6
cmp edx, dword [eax - 4]
jb 0x798ebb
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 0x798f1f
cmp dword [ebp - 0x14], 7
jne 0x798f1f
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.00799860
jmp case.default.0x798dba
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.00799860
jmp case.default.0x798dba
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.00799860
mov eax, dword [ebp - 0x1c]
call fcn.00608c10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x798f7d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x798f9f
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 0x798fd6
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