Function at 0x47e968
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2d4], edx
mov dword [ebp - 0x2d8], edx
mov dword [ebp - 0x2cc], edx
mov dword [ebp - 0x2d0], edx
mov dword [ebp - 0x2c8], edx
mov dword [ebp - 0x2c4], edx
mov dword [ebp - 0x2c0], edx
mov dword [ebp - 0x2bc], edx
mov dword [ebp - 0x2b8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47ee3e
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 0x47e9cd
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4fd1b0]
push eax
push 0
mov eax, dword [0x4fd1a0]
call fcn.004052ac
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47ee18
mov dl, 1
mov eax, dword [0x418de4]
call fcn.00403ea8
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 0x18], 0x104
jmp 0x47ea4f
lea eax, [ebp - 0x2b8]
lea edx, [ebp - 0x12d]
mov ecx, 0x105
call fcn.0040505c
mov edx, dword [ebp - 0x2b8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov dword [ebp - 0x18], 0x104
inc ebx
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12d]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumValueA
cmp eax, 0x103
jne 0x47ea23
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
dec ebx
test ebx, ebx
jb 0x47ee10
inc ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0xc]
mov edx, dword [0x4fd1a0]
call fcn.00404e84
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4fd1b0]
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 0x47eb25
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x232]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea ecx, [ebp - 0x2bc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x2bc]
call fcn.004052ac
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp dword [ebp - 0x1c], 1
je 0x47eb38
mov esi, 0x47ee4c
lea edi, [ebp - 0x232]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x47eb38
mov esi, 0x47ee4c
lea edi, [ebp - 0x232]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [0x4fd1a8]
call fcn.004052ac
mov edx, eax
lea eax, [ebp - 0x232]
call fcn.0040aa54
test eax, eax
je 0x47ee04
mov eax, 0x105
lea edx, [ebp - 0x12d]
mov byte [edx], 0
inc edx
dec eax
jne 0x47eb62
mov eax, dword [0x4fd1a8]
call fcn.004052ac
mov edx, eax
lea eax, [ebp - 0x232]
call fcn.0040aa54
lea edx, [ebp - 0x232]
sub eax, edx
push eax
lea eax, [ebp - 0x232]
call fcn.0040a87c
mov ebx, eax
pop eax
sub ebx, eax
mov eax, dword [0x4fd1a8]
call fcn.004052ac
call fcn.0040a87c
sub ebx, eax
inc ebx
push ebx
mov eax, dword [0x4fd1a8]
call fcn.004052ac
mov edx, eax
lea eax, [ebp - 0x232]
call fcn.0040aa54
mov ebx, eax
mov eax, dword [0x4fd1a8]
call fcn.004052ac
call fcn.0040a87c
add ebx, eax
mov edx, ebx
lea eax, [ebp - 0x12d]
pop ecx
call fcn.0040a8e0
xor eax, eax
push ebp
push 0x47ec20
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c0]
lea edx, [ebp - 0x12d]
mov ecx, 0x105
call fcn.0040505c
mov eax, dword [ebp - 0x2c0]
call fcn.00409c5c
mov dword [ebp - 0x24], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47ec2f
mov eax, 0x105
lea edx, [ebp - 0x12d]
mov byte [edx], 0
inc edx
dec eax
jne 0x47ec3a
lea ecx, [ebp - 0x2c4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x2c4]
call fcn.004052ac
call fcn.0040a87c
mov ebx, eax
lea ecx, [ebp - 0x2c8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x2c8]
call fcn.004052ac
push eax
mov eax, dword [0x4fd1ac]
call fcn.004052ac
mov edx, eax
pop eax
call fcn.0040aa54
mov esi, eax
lea ecx, [ebp - 0x2cc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2cc]
call fcn.004052ac
sub esi, eax
sub ebx, esi
mov eax, dword [0x4fd1ac]
call fcn.004052ac
call fcn.0040a87c
sub ebx, eax
inc ebx
push ebx
lea ecx, [ebp - 0x2d0]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x2d0]
call fcn.004052ac
push eax
mov eax, dword [0x4fd1ac]
call fcn.004052ac
mov edx, eax
pop eax
call fcn.0040aa54
mov ebx, eax
mov eax, dword [0x4fd1ac]
call fcn.004052ac
call fcn.0040a87c
add ebx, eax
mov edx, ebx
lea eax, [ebp - 0x12d]
pop ecx
call fcn.0040a8e0
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4fd1b0]
push eax
push 0
mov eax, dword [0x4fd1a4]
call fcn.004052ac
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
push 0x47ef5c
lea eax, [ebp - 0x2d8]
lea edx, [ebp - 0x12d]
mov ecx, 0x105
call fcn.0040505c
push dword [ebp - 0x2d8]
push 0x47ef7c
lea eax, [ebp - 0x2d4]
mov edx, 3
call fcn.0040516c
mov eax, dword [ebp - 0x2d4]
call fcn.004052ac
mov edx, eax
lea eax, [ebp - 0x232]
call fcn.0040a8b8
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x232]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x47edfb
cmp dword [ebp - 0x1c], 8
jne 0x47edfb
mov dword [ebp - 0x20], 0x80
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2b2]
push eax
push 0
push 0
lea eax, [ebp - 0x232]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
cmp dword [ebp - 0x20], 0
jbe 0x47edfb
cmp dword [ebp - 0x24], 8
jg 0x47edfb
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov cx, word [ebp - 0x29a]
mov word [eax + edx*2 + 0x84], cx
mov eax, dword [ebp - 4]
inc dword [eax + 0x80]
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x47ea92
mov eax, dword [ebp - 0x10]
call fcn.00403ed8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ee45
lea eax, [ebp - 0x2d8]
mov edx, 9
call fcn.00404e10
lea eax, [ebp - 0xc]
call fcn.00404dec
ret