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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x20c], edx
mov dword [ebp - 0x208], edx
mov dword [ebp - 0x204], edx
mov dword [ebp - 0x200], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47e890
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x80], edx
xor eax, eax
mov edx, dword [ebp - 4]
mov word [edx + eax*2 + 0x84], 0
inc eax
cmp eax, 9
jne 0x47e43c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4fd19c]
push eax
push 0
mov eax, dword [0x4fd188]
call fcn.004052ac
push eax
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dl, 1
mov eax, dword [0x418de4]
call fcn.00403ea8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x104
xor ebx, ebx
jmp 0x47e4b6
lea eax, [ebp - 0x200]
lea edx, [ebp - 0x139]
mov ecx, 0x105
call fcn.0040505c
mov edx, dword [ebp - 0x200]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov dword [ebp - 0x20], 0x104
inc ebx
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x139]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExA
cmp eax, 0x103
jne 0x47e48a
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
dec ebx
test ebx, ebx
jb 0x47e85a
inc ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], 0
xor ebx, ebx
push dword [0x4fd188]
push 0x47e8a8
lea ecx, [ebp - 0x204]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x204]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040516c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4fd19c]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.004052ac
push eax
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47e84e
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [0x4fd18c]
call fcn.004052ac
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
cmp dword [ebp - 0x24], 3
jne 0x47e845
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x179]
push eax
push 0
push 0
mov eax, dword [0x4fd18c]
call fcn.004052ac
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x47e5be
mov edx, dword [ebp - 0x28]
dec edx
test edx, edx
jb 0x47e5c0
inc edx
lea eax, [ebp - 0x179]
cmp byte [eax], 0
je 0x47e5b8
mov bl, 1
inc eax
dec edx
jne 0x47e5b1
jmp 0x47e5c0
mov bl, 1
mov dword [ebp - 0x28], 0x104
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x139]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [0x4fd198]
call fcn.004052ac
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
cmp dword [ebp - 0x24], 1
je 0x47e5f4
mov bl, 1
test bl, bl
jne 0x47e845
lea eax, [ebp - 0x139]
call fcn.0040a87c
test eax, eax
jbe 0x47e845
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 0x208]
lea edx, [ebp - 0x139]
mov ecx, 0x105
call fcn.0040505c
mov ecx, dword [ebp - 0x208]
lea eax, [ebp - 0xc]
mov edx, 0x47e8b4
call fcn.004050f8
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4fd19c]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.004052ac
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47e84e
mov dword [ebp - 0x28], 0x104
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x139]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [0x4fd194]
call fcn.004052ac
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x139]
mov ecx, 0x105
call fcn.0040505c
cmp dword [ebp - 0x24], 1
je 0x47e6b5
lea eax, [ebp - 0x2c]
call fcn.00404dec
mov eax, dword [ebp - 0x2c]
call fcn.004052ac
mov edx, 0x47e8bc
call fcn.0040aa54
test eax, eax
je 0x47e845
mov eax, 0x105
lea edx, [ebp - 0x139]
mov byte [edx], 0
inc edx
dec eax
jne 0x47e6da
mov eax, dword [ebp - 0x2c]
call fcn.004052ac
mov edx, 0x47e8bc
call fcn.0040aa54
lea edx, [ebp - 0x2c]
sub eax, edx
push eax
mov eax, dword [ebp - 0x2c]
call fcn.004052ac
call fcn.0040a87c
pop edx
sub eax, edx
sub eax, 2
push eax
mov eax, dword [ebp - 0x2c]
call fcn.004052ac
mov edx, 0x47e8bc
call fcn.0040aa54
mov edx, eax
add edx, 3
lea eax, [ebp - 0x139]
pop ecx
call fcn.0040a8e0
xor eax, eax
push ebp
push 0x47e76c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x139]
mov ecx, 0x105
call fcn.0040505c
mov eax, dword [ebp - 0x20c]
call fcn.00409c5c
mov dword [ebp - 0x30], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47e77b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
push dword [0x4fd188]
push 0x47e8a8
lea ecx, [ebp - 0x210]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x210]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040516c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4fd19c]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.004052ac
push eax
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x28], 0x80
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1fa]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [0x4fd190]
call fcn.004052ac
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
cmp dword [ebp - 0x24], 3
jne 0x47e845
mov eax, 0x40
lea edx, [ebp - 0x1fa]
cmp word [edx], 0xc
jne 0x47e83f
cmp word [edx + 2], 0
je 0x47e83f
cmp dword [ebp - 0x30], 8
jg 0x47e83f
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x30]
mov dx, word [edx + 2]
mov word [ecx + ebx*2 + 0x84], dx
mov edx, dword [ebp - 4]
inc dword [edx + 0x80]
jmp 0x47e845
add edx, 2
dec eax
jne 0x47e80f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
inc dword [ebp - 0x14]
dec dword [ebp - 0x34]
jne 0x47e4f9
mov eax, dword [ebp - 0x10]
call fcn.00403ed8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e897
lea eax, [ebp - 0x210]
mov edx, 5
call fcn.00404e10
lea eax, [ebp - 0x2c]
call fcn.00404dec
lea eax, [ebp - 0xc]
call fcn.00404dec
ret