Function at 0x4a8184
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 0x4a818c
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405738
xor eax, eax
push ebp
push 0x4a88ea
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.004057a8
mov eax, dword [ebp - 0x60]
mov edx, 0x4a8900
call fcn.00405694
jne 0x4a81e4
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004057e8
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.0x4a820c
jmp dword [eax*4 + 0x4a8213]
lea eax, [ebp - 0x34]
mov edx, 0x4a890c
call fcn.00405310
jmp case.default.0x4a820c
lea eax, [ebp - 0x34]
mov edx, 0x4a8928
call fcn.00405310
jmp case.default.0x4a820c
lea eax, [ebp - 0x34]
mov edx, 0x4a8944
call fcn.00405310
jmp case.default.0x4a820c
lea eax, [ebp - 0x34]
mov edx, 0x4a8960
call fcn.00405310
jmp case.default.0x4a820c
lea eax, [ebp - 0x34]
mov edx, 0x4a8974
call fcn.00405310
jmp case.default.0x4a820c
lea eax, [ebp - 0x34]
mov edx, 0x4a8994
call fcn.00405310
jmp case.default.0x4a820c
lea eax, [ebp - 0x34]
mov edx, 0x4a89b0
call fcn.00405310
cmp dword [ebp - 4], 0
je 0x4a82ce
push 0x4a89c8
push dword [ebp - 0x34]
push 0x4a8900
push dword [ebp - 4]
push 0x4a89d4
lea eax, [ebp - 0x64]
mov edx, 5
call fcn.00405608
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.00446904
xor eax, eax
push ebp
push 0x4a88b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41c338]
call fcn.00404418
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4a880f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41c338]
call fcn.00404418
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4a87f2
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.00446c54
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x34]
call fcn.00405278
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
mov edx, 0x4a89e0
call fcn.00405550
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xc9
jne 0x4a8347
mov eax, dword [ebp - 0x5c]
dec eax
test eax, eax
jl 0x4a83e5
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 0x4a8387
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.00405748
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.0040a348
cmp dword [ebp - 0x68], 0
je 0x4a83dd
mov eax, dword [ebp - 0x34]
call fcn.00405748
mov edx, eax
lea eax, [ebp - 0x6c]
call fcn.00405480
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 0x4a8373
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
mov edx, 0x4a89e0
call fcn.00405550
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xc9
jne 0x4a83ea
mov eax, dword [ebp - 0x54]
dec eax
test eax, eax
jl 0x4a8477
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 0x4a842a
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.00405748
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.00405748
mov edx, eax
lea eax, [ebp - 0x70]
call fcn.00405480
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 0x4a8416
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4a87d9
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.00405310
cmp dword [ebp - 0x34], 0
jne 0x4a84c1
lea eax, [ebp - 0x34]
mov edx, 0x4a89ec
call fcn.00405310
jmp 0x4a84db
push 0x4a89f8
push dword [ebp - 0x34]
push 0x4a89f8
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00405608
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x34]
call fcn.004a80f0
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x30]
mov ecx, 0x4a8a04
call fcn.00405594
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x38]
call fcn.00446ec4
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
sub al, 1
jb 0x4a8612
sub al, 2
jb 0x4a8529
je 0x4a85b3
dec al
je 0x4a8612
jmp 0x4a87bb
lea ecx, [ebp - 0x78]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x38]
call fcn.00446f40
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x34]
call fcn.004a80f0
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x4a8a10
mov edx, 0x4a89f8
call fcn.0049e218
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x4a8a1c
mov edx, 0x4a89c8
call fcn.0049e218
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x4a8a28
mov edx, 0x4a89d4
call fcn.0049e218
push dword [ebp - 0x30]
push 0x4a89f8
push dword [ebp - 0x34]
push 0x4a89f8
lea eax, [ebp - 0x7c]
mov edx, 4
call fcn.00405608
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 0x4a87cd
push dword [ebp - 0x30]
push 0x4a8a34
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x38]
call fcn.00446fcc
lea ecx, [ebp - 0x88]
mov edx, 8
call fcn.0040a950
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.0040a134
push dword [ebp - 0x84]
lea eax, [ebp - 0x80]
mov edx, 3
call fcn.00405608
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 0x4a87cd
cmp byte [ebp - 5], 0
jne 0x4a86a8
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 8
call fcn.00403450
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
push 0
mov eax, dword [ebp - 0x38]
call fcn.00405748
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 0x4a8699
push dword [ebp - 0x30]
push 0x4a8a44
lea ecx, [ebp - 0x90]
mov edx, 1
mov eax, dword [ebp - 0x28]
call fcn.0040a950
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.0040a134
push dword [ebp - 0x8c]
push 0x4a8a54
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00405608
jmp 0x4a86b5
lea eax, [ebp - 0x30]
mov edx, 0x4a8a60
call fcn.00405550
jmp 0x4a86b5
lea eax, [ebp - 0x30]
mov edx, 0x4a8a70
call fcn.00405550
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x38]
call fcn.00446e9c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xf4240
jle 0x4a86d6
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.00447010
mov eax, dword [ebp - 0x20]
dec eax
test eax, eax
jl 0x4a87a3
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.0040a950
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.0040a134
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x30]
call fcn.00405550
mov eax, dword [ebp - 0x20]
dec eax
cmp eax, dword [ebp - 0x24]
je 0x4a8797
lea eax, [ebp - 0x30]
mov edx, 0x4a8a80
call fcn.00405550
mov eax, dword [ebp - 0x30]
call fcn.00405548
cmp eax, 0x4c
jle 0x4a8797
lea eax, [ebp - 0x9c]
mov ecx, 0x4a8900
mov edx, dword [ebp - 0x30]
call fcn.00405594
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, 0x4a8a8c
call fcn.00405310
inc dword [ebp - 0x24]
dec dword [ebp - 0x40]
jne 0x4a8705
cmp dword [ebp - 0x30], 0
je 0x4a87cd
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 0x4a87cd
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov edx, 0x4a8a98
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x3c]
jne 0x4a8493
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a87f9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0044666c
ret