Function at 0x47c6e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [0x4da648]
push edi
mov ecx, esi
mov edi, eax
mov dword [esp + 0x1c], esi
call fcn.0041a450
test edi, edi
jne 0x47c72d
mov ebx, 0x57
mov eax, ebx
mov edx, dword [0x4d6b14]
test ebx, ebx
mov ebx, dword [ebp + 8]
mov dword [edx + 0x30], eax
setne al
movzx ecx, al
push ecx
call fcn.00439e90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x4d6b14]
mov edx, dword [ecx + 0xd0]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
or edx, 0x20019
push edx
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x47c7cd
mov edx, dword [ebp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push eax
lea ecx, [esp + 0x20]
push ecx
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call edi
mov ebx, eax
xor ecx, ecx
cmp ebx, ecx
jne 0x47c7c2
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 6
ja case.0x47c787.5
jmp dword [eax*4 + 0x47ca60]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
push edx
mov dword [esp + 0x2c], 4
call edi
mov ebx, eax
test ebx, ebx
jne 0x47c7c2
push 0x18
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, esi
call fcn.00401140
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0xffffffff
jne 0x47c708
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x47c70a
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x14]
push edx
push ecx
push ecx
push ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
call edi
mov ebx, eax
test ebx, ebx
jne 0x47c7c2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47c7c2
push 1
shr eax, 1
push ebx
add eax, 2
push eax
push ebx
push esi
call fcn.004833e0
cmp eax, 1
je 0x47c831
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 1
mov ecx, esi
call fcn.00401280
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x10]
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
push 0
push 0
push ecx
push edx
call edi
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x47c8b7
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x47c8b7
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0x47c878
dec ecx
jmp 0x47c87e
xor edx, edx
mov word [esi + ecx*2], dx
cmp dword [esp + 0x18], 7
jne 0x47c8bc
test ecx, ecx
je 0x47c891
cmp word [esi + ecx*2 - 2], 0
je 0x47c898
inc ecx
xor eax, eax
mov word [esi + ecx*2], ax
xor eax, eax
test ecx, ecx
je 0x47c8bc
mov edi, edi
cmp word [esi + eax*2], 0
jne 0x47c8b0
mov edx, 0xa
mov word [esi + eax*2], dx
inc eax
cmp eax, ecx
jb 0x47c8a0
jmp 0x47c8bc
xor eax, eax
mov word [esi], ax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47c8c1
mov esi, dword [esp + 0x1c]
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, esi
call fcn.0041a850
cmp byte [esi + 0x17], 0
jne 0x47c8e6
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x47c910
cmp dword [0x4dc284], 0
je 0x47c910
mov ecx, 0x4dc278
call fcn.00405180
test eax, eax
jne 0x47c7cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
and byte [esi + 0x15], 0x86
jmp 0x47c7cd
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x14]
push edx
push ecx
push ecx
push ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
call edi
mov ebx, eax
test ebx, ebx
jne 0x47ca3e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47ca3e
push 1
push ebx
lea edx, [eax + eax]
push edx
push ebx
push esi
call fcn.004833e0
cmp eax, 1
je 0x47c96f
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 1
mov ecx, esi
call fcn.00401280
mov esi, eax
xor ecx, ecx
mov word [esi], cx
mov eax, dword [esp + 0x14]
lea edi, [esi + eax*2]
lea edx, [esp + 0x14]
push edx
add edi, eax
mov eax, dword [ebp + 0x10]
push edi
push ecx
push ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x10]
mov ebx, eax
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x47c7cd
xor ecx, ecx
xor edx, edx
cmp dword [esp + 0x14], ecx
jbe 0x47c9fa
movzx eax, byte [edx + edi]
mov ebx, eax
and ebx, 0xf
mov bx, word [ebx*2 + str.0123456789ABCDEF]
shr eax, 4
mov word [esi + ecx*2 + 2], bx
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [esi + ecx*2], ax
inc edx
add ecx, 2
cmp edx, dword [esp + 0x14]
jb 0x47c9c4
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
xor edx, edx
mov word [esi + ecx*2], dx
cmp byte [eax + 0x17], dl
jne 0x47ca0c
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x17], 2
jne 0x47ca35
cmp dword [0x4dc284], edx
je 0x47ca35
mov ecx, 0x4dc278
call fcn.00405180
test eax, eax
jne 0x47c708
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
and byte [eax + 0x15], 0x86
jmp 0x47c708
mov eax, dword [esp + 0x10]
push eax
jmp 0x47c7c7
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 0x65e
jmp 0x47c708