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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff3bc
xor eax, eax
mov dword [ebp - 0x40], eax
lea edx, [ebp - 4]
push edx
push 9
push 0
push 0x7686f4
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x49cd01
xor eax, eax
jmp 0x49d202
xor edx, edx
mov dword [ebp - 0x18], edx
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x49d1f7
mov dword [ebp - 0x30], 0x400
push 0x400
push 0
lea edx, [ebp - 0x444]
push edx
call fcn.0066c86c
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x444]
push eax
mov edx, dword [ebp - 0x18]
inc dword [ebp - 0x18]
push edx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x49d1ec
lea eax, [ebp - 0x444]
push eax
call fcn.0049c83c
pop ecx
mov byte [ebp - 0x41], al
lea edx, [ebp - 0xc]
push edx
push 1
push 0
lea ecx, [ebp - 0x444]
push ecx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x49cd0b
mov dword [ebp - 0x30], 0x400
mov dword [ebp - 0x34], 1
push 0x400
push 0
lea edx, [ebp - 0x844]
push edx
call fcn.0066c86c
add esp, 0xc
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x844]
push eax
lea edx, [ebp - 0x34]
push edx
push 0
push 0x76870c
push dword [ebp - 0xc]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x49d1e4
lea eax, [ebp - 0x844]
push eax
push 0x768713
lea edx, [ebp - 0xc44]
push edx
call fcn.00670e94
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push 0
lea eax, [ebp - 0xc44]
push eax
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
test edx, edx
jne 0x49cd0b
mov dword [ebp - 0x30], 0x400
mov dword [ebp - 0x34], 1
push 0x400
push 0
lea ecx, [ebp - 0x844]
push ecx
call fcn.0066c86c
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x844]
push edx
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0x768738
push dword [ebp - 0x14]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x49ce8e
push 0x76873e
lea edx, [ebp - 0x844]
push edx
call fcn.0066cbe8
add esp, 8
test eax, eax
je 0x49ce9b
push dword [ebp - 0x14]
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x49cd0b
mov dword [ebp - 0x30], 0x400
mov dword [ebp - 0x34], 1
push 0x400
push 0
lea ecx, [ebp - 0x844]
push ecx
call fcn.0066c86c
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x844]
push edx
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0x76874c
push dword [ebp - 0x14]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x49cef4
push dword [ebp - 0x14]
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x49cd0b
push dword [ebp + 8]
push 0x768756
lea edx, [ebp - 0x444]
push edx
call fcn.00670e94
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push 1
push 0
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0xc]
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
test edx, edx
jne 0x49cd0b
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
mov byte [ebp - 0x42], 0
lea ecx, [ebp - 8]
push ecx
push 9
push 0
push 0x768764
push dword [ebp - 0xc]
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x49cd0b
xor edx, edx
mov dword [ebp - 0x1c], edx
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], 0x400
push 0x400
push 0
lea eax, [ebp - 0x444]
push eax
call fcn.0066c86c
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x444]
push ecx
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
push eax
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x49d1d1
push 0xa
push 0x76876f
lea ecx, [ebp - 0x444]
push ecx
call fcn.0066cc80
add esp, 0xc
test eax, eax
jne 0x49d1d1
lea eax, [ebp - 0x444]
push eax
call fcn.0049c83c
pop ecx
mov byte [ebp - 0x43], al
mov byte [ebp - 0x44], 0
lea edx, [ebp - 0x444]
push edx
push 0x76877a
lea ecx, [ebp - 0x844]
push ecx
call fcn.00670e94
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 1
push 0
lea edx, [ebp - 0x844]
push edx
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x49d1d1
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x400
mov dword [ebp - 0x34], 1
push 0x400
push 0
lea edx, [ebp - 0x844]
push edx
call fcn.0066c86c
add esp, 0xc
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x844]
push eax
lea edx, [ebp - 0x34]
push edx
push 0
push 0x76878f
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x49d094
push 0x76879a
lea eax, [ebp - 0x844]
push eax
call fcn.0066cbe8
add esp, 8
test eax, eax
jne 0x49d094
inc dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x400
mov dword [ebp - 0x34], 1
push 0x400
push 0
lea edx, [ebp - 0x844]
push edx
call fcn.0066c86c
add esp, 0xc
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x844]
push eax
lea edx, [ebp - 0x34]
push edx
push 0
push 0x7687aa
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x49d0fb
push 0x7687af
lea eax, [ebp - 0x844]
push eax
call fcn.0066cbe8
add esp, 8
test eax, eax
jne 0x49d0fb
inc dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x400
mov dword [ebp - 0x34], 1
push 0x400
push 0
lea edx, [ebp - 0x844]
push edx
call fcn.0066c86c
add esp, 0xc
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x844]
push eax
lea edx, [ebp - 0x34]
push edx
push 0
push 0x7687bf
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x49d164
push 5
push 0x7687ca
lea eax, [ebp - 0x844]
push eax
call fcn.0066cc80
add esp, 0xc
test eax, eax
jne 0x49d164
inc dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
dec edx
jl 0x49d1c9
lea ecx, [ebp - 0x43a]
push ecx
call fcn.006749dc
pop ecx
imul edx, dword [ebp - 0x40], 0x23
mov dword [edx*8 + 0xbbcd7c], eax
imul eax, dword [ebp - 0x40], 0x23
mov cl, byte [ebp - 0x41]
mov byte [eax*8 + 0xbbce86], cl
imul eax, dword [ebp - 0x40], 0x23
mov dl, byte [ebp - 0x42]
mov byte [eax*8 + 0xbbce87], dl
imul ecx, dword [ebp - 0x40], 0x23
mov al, byte [ebp - 0x43]
mov byte [ecx*8 + 0xbbce88], al
imul edx, dword [ebp - 0x40], 0x23
mov cl, byte [ebp - 0x44]
mov byte [edx*8 + 0xbbce89], cl
imul eax, dword [ebp - 0x40], 0x23
mov byte [eax*8 + 0xbbcd81], 0
inc dword [ebp - 0x40]
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x49cf69
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
push dword [ebp - 0xc]
call sub.ADVAPI32.DLL_RegCloseKey
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x49cd16
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 0x40]
mov esp, ebp
pop ebp
ret