Function at 0x491b08
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x491b10
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055b8
xor eax, eax
push ebp
push 0x49226e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x60]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405628
mov eax, dword [ebp - 0x60]
mov edx, 0x492284
call fcn.00405514
jne 0x491b68
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00405668
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 0x80000000
cmp eax, 6
ja case.default.0x491b90
jmp dword [eax*4 + 0x491b97]
lea eax, [ebp - 0x34]
mov edx, 0x492290
call fcn.004051a0
jmp case.default.0x491b90
lea eax, [ebp - 0x34]
mov edx, 0x4922ac
call fcn.004051a0
jmp case.default.0x491b90
lea eax, [ebp - 0x34]
mov edx, 0x4922c8
call fcn.004051a0
jmp case.default.0x491b90
lea eax, [ebp - 0x34]
mov edx, 0x4922e4
call fcn.004051a0
jmp case.default.0x491b90
lea eax, [ebp - 0x34]
mov edx, 0x4922f8
call fcn.004051a0
jmp case.default.0x491b90
lea eax, [ebp - 0x34]
mov edx, 0x492318
call fcn.004051a0
jmp case.default.0x491b90
lea eax, [ebp - 0x34]
mov edx, 0x492334
call fcn.004051a0
cmp dword [ebp - 4], 0
je 0x491c52
push 0x49234c
push dword [ebp - 0x34]
push 0x492284
push dword [ebp - 4]
push 0x492358
lea eax, [ebp - 0x64]
mov edx, 5
call fcn.00405488
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 4]
call fcn.0043ee34
xor eax, eax
push ebp
push 0x492234
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41b034]
call fcn.00404288
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x492193
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41b034]
call fcn.00404288
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x492176
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0043f164
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x34]
call fcn.00405108
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
mov edx, 0x492364
call fcn.004053d0
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xc9
jne 0x491ccb
mov eax, dword [ebp - 0x5c]
dec eax
test eax, eax
jl 0x491d69
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x64
jae 0x491d0b
mov dword [ebp - 0x2c], 0x64
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x34]
call fcn.004055c8
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x34]
call fcn.00409de4
cmp dword [ebp - 0x68], 0
je 0x491d61
mov eax, dword [ebp - 0x34]
call fcn.004055c8
mov edx, eax
lea eax, [ebp - 0x6c]
call fcn.00405300
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x3c]
jne 0x491cf7
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
mov edx, 0x492364
call fcn.004053d0
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xc9
jne 0x491d6e
mov eax, dword [ebp - 0x54]
dec eax
test eax, eax
jl 0x491dfb
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x64
jae 0x491dae
mov dword [ebp - 0x2c], 0x64
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x34]
call fcn.004055c8
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0x34]
call fcn.004055c8
mov edx, eax
lea eax, [ebp - 0x70]
call fcn.00405300
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x3c]
jne 0x491d9a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x49215d
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x34]
call fcn.004051a0
cmp dword [ebp - 0x34], 0
jne 0x491e45
lea eax, [ebp - 0x34]
mov edx, 0x492370
call fcn.004051a0
jmp 0x491e5f
push 0x49237c
push dword [ebp - 0x34]
push 0x49237c
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00405488
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x34]
call fcn.00491a74
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x30]
mov ecx, 0x492388
call fcn.00405414
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x38]
call fcn.0043f3d4
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
sub al, 1
jb 0x491f96
sub al, 2
jb 0x491ead
je 0x491f37
dec al
je 0x491f96
jmp 0x49213f
lea ecx, [ebp - 0x78]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x38]
call fcn.0043f424
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x34]
call fcn.00491a74
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x492394
mov edx, 0x49237c
call fcn.0048d458
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x4923a0
mov edx, 0x49234c
call fcn.0048d458
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x4923ac
mov edx, 0x492358
call fcn.0048d458
push dword [ebp - 0x30]
push 0x49237c
push dword [ebp - 0x34]
push 0x49237c
lea eax, [ebp - 0x7c]
mov edx, 4
call fcn.00405488
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x492151
push dword [ebp - 0x30]
push 0x4923b8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x38]
call fcn.0043f49c
lea ecx, [ebp - 0x88]
mov edx, 8
call fcn.0040a3ec
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.00409bd0
push dword [ebp - 0x84]
lea eax, [ebp - 0x80]
mov edx, 3
call fcn.00405488
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x492151
cmp byte [ebp - 5], 0
jne 0x49202c
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 8
call fcn.0040345c
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
push 0
mov eax, dword [ebp - 0x38]
call fcn.004055c8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x49201d
push dword [ebp - 0x30]
push 0x4923c8
lea ecx, [ebp - 0x90]
mov edx, 1
mov eax, dword [ebp - 0x28]
call fcn.0040a3ec
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.00409bd0
push dword [ebp - 0x8c]
push 0x4923d8
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00405488
jmp 0x492039
lea eax, [ebp - 0x30]
mov edx, 0x4923e4
call fcn.004053d0
jmp 0x492039
lea eax, [ebp - 0x30]
mov edx, 0x4923f4
call fcn.004053d0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x38]
call fcn.0043f3ac
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xf4240
jle 0x49205a
mov dword [ebp - 0x20], 0xf4240
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x38]
call fcn.0043f4cc
mov eax, dword [ebp - 0x20]
dec eax
test eax, eax
jl 0x492127
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx]
lea ecx, [ebp - 0x98]
mov edx, 2
call fcn.0040a3ec
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.00409bd0
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x30]
call fcn.004053d0
mov eax, dword [ebp - 0x20]
dec eax
cmp eax, dword [ebp - 0x24]
je 0x49211b
lea eax, [ebp - 0x30]
mov edx, 0x492404
call fcn.004053d0
mov eax, dword [ebp - 0x30]
call fcn.004053c8
cmp eax, 0x4c
jle 0x49211b
lea eax, [ebp - 0x9c]
mov ecx, 0x492284
mov edx, dword [ebp - 0x30]
call fcn.00405414
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x30]
mov edx, 0x492410
call fcn.004051a0
inc dword [ebp - 0x24]
dec dword [ebp - 0x40]
jne 0x492089
cmp dword [ebp - 0x30], 0
je 0x492151
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x492151
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov edx, 0x49241c
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x3c]
jne 0x491e17
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49217d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0043ec78
ret