Function at 0x799e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x799e19
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 0x79a240
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 0x14]
cmp byte [eax + 8], 0
je 0x79a218
cmp dword [ebp - 8], 0
je 0x79a218
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 0x79a20f
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.0079a888
test al, al
jne 0x799eae
call fcn.00409f88
jmp 0x79a218
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
call fcn.00608f2c
test al, al
je 0x79a1e7
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.00799860
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 0x79a154
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.0x799f2c
jmp dword [eax*4 + 0x799f33]
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.00799860
jmp case.default.0x799f2c
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.00799860
jmp case.default.0x799f2c
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.00799860
jmp case.default.0x799f2c
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 0x79a0b4
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 0x79a07e
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 0x79a096
cmp edx, dword [eax - 4]
jb 0x79a09b
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 0x79a11d
cmp dword [ebp - 0x1c], 7
jne 0x79a11d
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.00799860
jmp case.default.0x799f2c
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.00799860
inc ebx
dec esi
jne 0x799f08
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 0x79a173
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
dec eax
test edx, edx
je 0x79a180
cmp eax, dword [edx - 4]
jb 0x79a185
call fcn.004089ac
inc eax
movzx eax, byte [edx + eax*2 - 2]
sub al, 0x2f
je 0x79a1a0
sub al, 0x2d
je 0x79a1a0
lea eax, [ebp - 8]
mov edx, 0x79a25c
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 0x79a1df
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.00799e10
inc ebx
dec esi
jne 0x79a1b2
mov eax, dword [ebp - 0x24]
call fcn.00608c10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x79a216
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 0x79a247
lea eax, [ebp - 0x64]
mov edx, 0x10
call fcn.0040a7f0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040a7f0
ret