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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7c0
xor eax, eax
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 4]
push edx
push 9
push 0
push 0x771775
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x49cbe4
xor eax, eax
jmp 0x49cfaf
xor edx, edx
mov dword [ebp - 0x14], edx
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x49cfa4
mov dword [ebp - 0x2c], 0x400
push 0x400
push 0
lea edx, [ebp - 0x440]
push edx
call fcn.0066cc88
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x440]
push eax
mov edx, dword [ebp - 0x14]
inc dword [ebp - 0x14]
push edx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x49cf99
lea eax, [ebp - 0x440]
push eax
call fcn.0049cb24
pop ecx
mov byte [ebp - 0x3d], al
lea edx, [ebp - 0xc]
push edx
push 1
push 0
lea ecx, [ebp - 0x440]
push ecx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x49cbee
mov dword [ebp - 0x2c], 0x400
mov dword [ebp - 0x30], 1
push 0x400
push 0
lea edx, [ebp - 0x840]
push edx
call fcn.0066cc88
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x840]
push eax
lea edx, [ebp - 0x30]
push edx
push 0
push 0x77178d
push dword [ebp - 0xc]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x49cf91
push dword [ebp + 8]
lea eax, [ebp - 0x840]
push eax
call fcn.0066d004
add esp, 8
test eax, eax
jne 0x49cf91
mov byte [ebp - 0x3e], 0
lea edx, [ebp - 8]
push edx
push 9
push 0
push 0x771794
push dword [ebp - 0xc]
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x49cbee
xor eax, eax
mov dword [ebp - 0x18], eax
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x2c], 0x400
push 0x400
push 0
lea ecx, [ebp - 0x440]
push ecx
call fcn.0066cc88
add esp, 0xc
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x440]
push edx
mov ecx, dword [ebp - 0x18]
inc dword [ebp - 0x18]
push ecx
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x49cf7e
push 0xa
push 0x77179f
lea edx, [ebp - 0x440]
push edx
call fcn.0066d09c
add esp, 0xc
test eax, eax
jne 0x49cf7e
lea ecx, [ebp - 0x440]
push ecx
call fcn.0049cb24
pop ecx
mov byte [ebp - 0x3f], al
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x440]
push eax
push 0x7717aa
lea edx, [ebp - 0x840]
push edx
call fcn.006712b0
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
lea eax, [ebp - 0x840]
push eax
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
test edx, edx
jne 0x49cf7e
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], 0x400
mov dword [ebp - 0x30], 1
push 0x400
push 0
lea eax, [ebp - 0x840]
push eax
call fcn.0066cc88
add esp, 0xc
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x840]
push ecx
lea eax, [ebp - 0x30]
push eax
push 0
push 0x7717bf
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
test edx, edx
jne 0x49ce41
push 0x7717ca
lea ecx, [ebp - 0x840]
push ecx
call fcn.0066d004
add esp, 8
test eax, eax
jne 0x49ce41
inc dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0x400
mov dword [ebp - 0x30], 1
push 0x400
push 0
lea eax, [ebp - 0x840]
push eax
call fcn.0066cc88
add esp, 0xc
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x840]
push ecx
lea eax, [ebp - 0x30]
push eax
push 0
push 0x7717da
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
test edx, edx
jne 0x49cea8
push 0x7717df
lea ecx, [ebp - 0x840]
push ecx
call fcn.0066d004
add esp, 8
test eax, eax
jne 0x49cea8
inc dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0x400
mov dword [ebp - 0x30], 1
push 0x400
push 0
lea eax, [ebp - 0x840]
push eax
call fcn.0066cc88
add esp, 0xc
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x840]
push ecx
lea eax, [ebp - 0x30]
push eax
push 0
push 0x7717ef
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
test edx, edx
jne 0x49cf11
push 5
push 0x7717fa
lea ecx, [ebp - 0x840]
push ecx
call fcn.0066d09c
add esp, 0xc
test eax, eax
jne 0x49cf11
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
dec eax
jl 0x49cf76
lea edx, [ebp - 0x436]
push edx
call fcn.00674df8
pop ecx
imul ecx, dword [ebp - 0x3c], 0x23
mov dword [ecx*8 + 0xbca750], eax
imul eax, dword [ebp - 0x3c], 0x23
mov dl, byte [ebp - 0x3d]
mov byte [eax*8 + 0xbca85a], dl
imul ecx, dword [ebp - 0x3c], 0x23
mov al, byte [ebp - 0x3e]
mov byte [ecx*8 + 0xbca85b], al
imul edx, dword [ebp - 0x3c], 0x23
mov cl, byte [ebp - 0x3f]
mov byte [edx*8 + 0xbca85c], cl
imul eax, dword [ebp - 0x3c], 0x23
mov dl, byte [ebp - 0x40]
mov byte [eax*8 + 0xbca85d], dl
imul ecx, dword [ebp - 0x3c], 0x23
mov byte [ecx*8 + 0xbca755], 0
inc dword [ebp - 0x3c]
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x49cd16
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
push dword [ebp - 0xc]
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x49cbf9
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 0x3c]
mov esp, ebp
pop ebp
ret