Function at 0x799918
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x799921
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
call fcn.0040a874
mov eax, dword [ebp - 8]
call fcn.0040a874
xor eax, eax
push ebp
push 0x799d48
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 0x14]
cmp byte [eax + 8], 0
je 0x799d20
cmp dword [ebp - 8], 0
je 0x799d20
mov dl, 1
mov eax, dword [0x47e80c]
call fcn.004a2178
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x60799c]
call fcn.00608b7c
mov dword [ebp - 0x24], eax
xor edx, edx
push ebp
push 0x799d17
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.0079a390
test al, al
jne 0x7999b6
call fcn.00409f88
jmp 0x799d20
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
call fcn.00608f2c
test al, al
je 0x799cef
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
mov dx, 1
mov eax, dword [ebp - 0x14]
call fcn.00799368
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x48]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
call fcn.006094c0
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x799c5c
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.00609884
and eax, 0x7f
cmp eax, 4
ja case.default.0x799a34
jmp dword [eax*4 + 0x799a3b]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x2c]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x34]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x24]
call fcn.00609928
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
mov dx, 4
mov eax, dword [ebp - 0x14]
call fcn.00799368
jmp case.default.0x799a34
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x38]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
call fcn.00609928
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
mov dx, 5
mov eax, dword [ebp - 0x14]
call fcn.00799368
jmp case.default.0x799a34
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x44]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x4c]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x24]
call fcn.00609abc
lea edx, [ebp - 0x48]
call fcn.00424120
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
mov dx, 3
mov eax, dword [ebp - 0x14]
call fcn.00799368
jmp case.default.0x799a34
lea ecx, [ebp - 0x50]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x24]
call fcn.00609858
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x20]
call fcn.0040b98c
cmp dword [ebp - 0x20], 0
jle 0x799bbc
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x799b86
sub edi, 4
mov edi, dword [edi]
push edi
lea eax, [ebp - 0xc]
call fcn.0040ad48
mov edx, 1
dec edx
test eax, eax
je 0x799b9e
cmp edx, dword [eax - 4]
jb 0x799ba3
call fcn.004089ac
inc edx
lea ecx, [eax + edx*2 - 2]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
call fcn.00609b00
lea edx, [ebp - 0xc]
xchg edx, eax
call fcn.0040b98c
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
lea ecx, [ebp - 0x54]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x54]
call fcn.0040b7f8
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x799c25
cmp dword [ebp - 0x1c], 7
jne 0x799c25
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x58]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
mov dx, 6
mov eax, dword [ebp - 0x14]
call fcn.00799368
jmp case.default.0x799a34
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x5c]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
mov dx, 7
mov eax, dword [ebp - 0x14]
call fcn.00799368
inc ebx
dec esi
jne 0x799a10
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x48]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
call fcn.006093f8
mov eax, dword [ebp - 8]
test eax, eax
je 0x799c7b
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
dec eax
test edx, edx
je 0x799c88
cmp eax, dword [edx - 4]
jb 0x799c8d
call fcn.004089ac
inc eax
movzx eax, byte [edx + eax*2 - 2]
sub al, 0x2f
je 0x799ca8
sub al, 0x2d
je 0x799ca8
lea eax, [ebp - 8]
mov edx, 0x799d64
call fcn.0040ba0c
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x799ce7
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x64]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
mov edx, dword [ebp - 8]
call fcn.0040ba64
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.00799918
inc ebx
dec esi
jne 0x799cba
mov eax, dword [ebp - 0x24]
call fcn.00608c10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x799d1e
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x18], edx
call fcn.00408ac4
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [ebp - 0x24], edx
call fcn.00408ac4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x799d4f
lea eax, [ebp - 0x64]
mov edx, 0x10
call fcn.0040a7f0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040a7f0
ret