Function at 0x799078
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 0x799353
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
cmp byte [ebx + 8], 0
je 0x799323
mov dl, 1
mov eax, dword [0x60799c]
call fcn.00608b7c
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x79931c
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 0x799103
call fcn.00409f88
jmp 0x799323
cmp dword [ebp - 8], 0
jne 0x799113
call fcn.00409f88
jmp 0x799323
xor edx, edx
push ebp
push 0x7992f3
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 0x7992e9
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00609c48
test al, al
je case.default.0x79915e
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00609884
and eax, 0x7f
cmp eax, 4
ja case.default.0x79915e
jmp dword [eax*4 + 0x799165]
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.0x79915e
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.0x79915e
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.0x79915e
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 0x799278
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x799242
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 0x79925a
cmp edx, dword [eax - 4]
jb 0x79925f
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 0x7992c3
cmp dword [ebp - 0x14], 7
jne 0x7992c3
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.0x79915e
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
mov eax, dword [ebp - 0x1c]
call fcn.00608c10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x799301
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x799323
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 0x79935a
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