Function at 0x799570
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 0x79984b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
cmp byte [ebx + 8], 0
je 0x79981b
mov dl, 1
mov eax, dword [0x60799c]
call fcn.00608b7c
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x799814
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 0x7995fb
call fcn.00409f88
jmp 0x79981b
cmp dword [ebp - 8], 0
jne 0x79960b
call fcn.00409f88
jmp 0x79981b
xor edx, edx
push ebp
push 0x7997eb
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 0x7997e1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00609c48
test al, al
je case.default.0x799656
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00609884
and eax, 0x7f
cmp eax, 4
ja case.default.0x799656
jmp dword [eax*4 + 0x79965d]
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.0x799656
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.0x799656
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.0x799656
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 0x799770
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x79973a
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 0x799752
cmp edx, dword [eax - 4]
jb 0x799757
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 0x7997bb
cmp dword [ebp - 0x14], 7
jne 0x7997bb
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.0x799656
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
mov eax, dword [ebp - 0x1c]
call fcn.00608c10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x7997f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x79981b
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 0x799852
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