Function at 0x49da78
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 0x49da80
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040573c
xor eax, eax
push ebp
push 0x49e1de
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.004057ac
mov eax, dword [ebp - 0x60]
mov edx, 0x49e1f4
call fcn.00405698
jne 0x49dad8
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004057ec
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.0x49db00
jmp dword [eax*4 + 0x49db07]
lea eax, [ebp - 0x34]
mov edx, 0x49e200
call fcn.00405324
jmp case.default.0x49db00
lea eax, [ebp - 0x34]
mov edx, 0x49e21c
call fcn.00405324
jmp case.default.0x49db00
lea eax, [ebp - 0x34]
mov edx, 0x49e238
call fcn.00405324
jmp case.default.0x49db00
lea eax, [ebp - 0x34]
mov edx, 0x49e254
call fcn.00405324
jmp case.default.0x49db00
lea eax, [ebp - 0x34]
mov edx, 0x49e268
call fcn.00405324
jmp case.default.0x49db00
lea eax, [ebp - 0x34]
mov edx, 0x49e288
call fcn.00405324
jmp case.default.0x49db00
lea eax, [ebp - 0x34]
mov edx, 0x49e2a4
call fcn.00405324
cmp dword [ebp - 4], 0
je 0x49dbc2
push 0x49e2bc
push dword [ebp - 0x34]
push 0x49e1f4
push dword [ebp - 4]
push 0x49e2c8
lea eax, [ebp - 0x64]
mov edx, 5
call fcn.0040560c
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.0042bd7c
xor eax, eax
push ebp
push 0x49e1a4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41c3d0]
call fcn.0040442c
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x49e103
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41c3d0]
call fcn.0040442c
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x49e0e6
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.0042c0cc
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x34]
call fcn.0040528c
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
mov edx, 0x49e2d4
call fcn.00405554
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xc9
jne 0x49dc3b
mov eax, dword [ebp - 0x5c]
dec eax
test eax, eax
jl 0x49dcd9
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 0x49dc7b
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.0040574c
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.0040a298
cmp dword [ebp - 0x68], 0
je 0x49dcd1
mov eax, dword [ebp - 0x34]
call fcn.0040574c
mov edx, eax
lea eax, [ebp - 0x6c]
call fcn.00405484
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 0x49dc67
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
mov edx, 0x49e2d4
call fcn.00405554
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xc9
jne 0x49dcde
mov eax, dword [ebp - 0x54]
dec eax
test eax, eax
jl 0x49dd6b
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 0x49dd1e
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.0040574c
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.0040574c
mov edx, eax
lea eax, [ebp - 0x70]
call fcn.00405484
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 0x49dd0a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x49e0cd
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.00405324
cmp dword [ebp - 0x34], 0
jne 0x49ddb5
lea eax, [ebp - 0x34]
mov edx, 0x49e2e0
call fcn.00405324
jmp 0x49ddcf
push 0x49e2ec
push dword [ebp - 0x34]
push 0x49e2ec
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.0040560c
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x34]
call fcn.0049d9e4
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x30]
mov ecx, 0x49e2f8
call fcn.00405598
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x38]
call fcn.0042c33c
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
sub al, 1
jb 0x49df06
sub al, 2
jb 0x49de1d
je 0x49dea7
dec al
je 0x49df06
jmp 0x49e0af
lea ecx, [ebp - 0x78]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x38]
call fcn.0042c3b8
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x34]
call fcn.0049d9e4
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x49e304
mov edx, 0x49e2ec
call fcn.004beee4
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x49e310
mov edx, 0x49e2bc
call fcn.004beee4
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x49e31c
mov edx, 0x49e2c8
call fcn.004beee4
push dword [ebp - 0x30]
push 0x49e2ec
push dword [ebp - 0x34]
push 0x49e2ec
lea eax, [ebp - 0x7c]
mov edx, 4
call fcn.0040560c
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 0x49e0c1
push dword [ebp - 0x30]
push 0x49e328
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x38]
call fcn.0042c444
lea ecx, [ebp - 0x88]
mov edx, 8
call fcn.0040a8a0
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.0040a084
push dword [ebp - 0x84]
lea eax, [ebp - 0x80]
mov edx, 3
call fcn.0040560c
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 0x49e0c1
cmp byte [ebp - 5], 0
jne 0x49df9c
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 8
call fcn.00403464
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
push 0
mov eax, dword [ebp - 0x38]
call fcn.0040574c
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 0x49df8d
push dword [ebp - 0x30]
push 0x49e338
lea ecx, [ebp - 0x90]
mov edx, 1
mov eax, dword [ebp - 0x28]
call fcn.0040a8a0
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.0040a084
push dword [ebp - 0x8c]
push 0x49e348
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.0040560c
jmp 0x49dfa9
lea eax, [ebp - 0x30]
mov edx, 0x49e354
call fcn.00405554
jmp 0x49dfa9
lea eax, [ebp - 0x30]
mov edx, 0x49e364
call fcn.00405554
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x38]
call fcn.0042c314
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xf4240
jle 0x49dfca
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.0042c488
mov eax, dword [ebp - 0x20]
dec eax
test eax, eax
jl 0x49e097
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.0040a8a0
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.0040a084
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x30]
call fcn.00405554
mov eax, dword [ebp - 0x20]
dec eax
cmp eax, dword [ebp - 0x24]
je 0x49e08b
lea eax, [ebp - 0x30]
mov edx, 0x49e374
call fcn.00405554
mov eax, dword [ebp - 0x30]
call fcn.0040554c
cmp eax, 0x4c
jle 0x49e08b
lea eax, [ebp - 0x9c]
mov ecx, 0x49e1f4
mov edx, dword [ebp - 0x30]
call fcn.00405598
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, 0x49e380
call fcn.00405324
inc dword [ebp - 0x24]
dec dword [ebp - 0x40]
jne 0x49dff9
cmp dword [ebp - 0x30], 0
je 0x49e0c1
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 0x49e0c1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov edx, 0x49e38c
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x3c]
jne 0x49dd87
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e0ed
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0042bae4
ret