Function at 0x47e490
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x34
cmp dword [0x4f3e00], 0
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x4ec48c]
mov ebp, dword [eax + 0xb0]
mov esi, ecx
mov dword [esp + 0x24], ebp
je 0x47e4e6
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4f3e00]
test eax, eax
je 0x47e4e1
cmp dword [esp + 0x28], 0
je 0x47e4e1
mov eax, dword [0x4ec48c]
mov dword [eax + 0xb0], 0x200
jmp 0x47e4e6
mov eax, dword [0x4ec48c]
xor bl, bl
mov byte [esp + 0x16], bl
mov dword [esp + 0x1c], 0
mov byte [esp + 0x17], bl
test edi, edi
je 0x47e78b
cmp dword [esp + 0x48], 0
je 0x47e78b
lea ecx, [esp + 0x17]
push ecx
push 0
push edi
mov eax, 2
call fcn.0041acf0
mov edi, eax
add esp, 0xc
mov dword [esp + 0x28], edi
test edi, edi
je 0x47e740
mov eax, dword [0x4ec48c]
mov ecx, dword [eax + 0xb0]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x4c]
or ecx, 0x20019
push ecx
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47e740
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push eax
lea eax, [esp + 0x28]
push eax
push 0
push ebp
push ecx
call ebx
test eax, eax
jne 0x47e734
mov eax, dword [esp + 0x20]
dec eax
cmp eax, 6
ja case.0x47e58c.5
jmp dword [eax*4 + 0x47e79c]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push 0
push ebp
push ecx
mov dword [esp + 0x30], 4
call ebx
test eax, eax
jne case.0x47e58c.5
mov edx, dword [esp + 0x2c]
push eax
push edx
mov eax, esi
call fcn.00413c20
test eax, eax
je 0x47e734
jmp case.0x47e58c.5
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push ebp
push ecx
mov dword [esp + 0x30], 0
call ebx
test eax, eax
jne case.0x47e58c.5
mov eax, dword [esp + 0x18]
test eax, eax
je case.0x47e58c.5
lea edi, [eax + 2]
call fcn.00413990
test eax, eax
je 0x47e734
mov esi, dword [esi + 4]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push esi
push 0
push 0
push ebp
push eax
call ebx
test eax, eax
jne 0x47e65b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47e65b
mov word [eax + esi], 0
cmp dword [esp + 0x20], 7
jne case.0x47e58c.5
mov eax, esi
cmp byte [eax], 0
jne 0x47e658
cmp byte [eax + 1], 0
mov byte [eax], 0xa
je case.0x47e58c.5
inc eax
jmp 0x47e646
mov byte [esi], 0
jmp case.0x47e58c.5
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
push ebp
push edx
mov dword [esp + 0x30], 0
call ebx
test eax, eax
jne case.0x47e58c.5
mov eax, dword [esp + 0x18]
test eax, eax
je case.0x47e58c.5
lea edi, [eax + eax]
call fcn.00413990
test eax, eax
je 0x47e734
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x4c]
mov byte [esi], 0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
lea ebp, [esi + eax]
mov eax, dword [esp + 0x20]
push ebp
push 0
push 0
push edx
push eax
call ebx
test eax, eax
jne case.0x47e58c.5
mov edx, dword [str.0123456789ABCDEF]
mov eax, dword [0x4e4100]
mov dword [esp + 0x30], edx
mov edx, dword [0x4e4104]
xor ecx, ecx
mov dword [esp + 0x34], eax
mov eax, dword [0x4e4108]
mov dword [esp + 0x38], edx
mov dl, byte [0x4e410c]
xor edi, edi
mov dword [esp + 0x3c], eax
mov byte [esp + 0x40], dl
cmp dword [esp + 0x18], ecx
jbe 0x47e72b
movzx eax, byte [edi + ebp]
mov edx, eax
shr eax, 4
and edx, 0xf
mov dl, byte [esp + edx + 0x30]
and eax, 0xf
mov al, byte [esp + eax + 0x30]
mov byte [ecx + esi + 1], dl
mov byte [ecx + esi], al
inc edi
add ecx, 2
cmp edi, dword [esp + 0x18]
jb 0x47e703
mov byte [ecx + esi], 0
mov byte [esp + 0x16], 1
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov bl, byte [esp + 0x16]
cmp byte [esp + 0x17], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x47e754
test edi, edi
je 0x47e754
push edi
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47e775
push eax
call esi
mov ecx, dword [0x4ec48c]
mov dword [ecx + 0xb0], ebp
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov edx, dword [0x4ec48c]
mov dword [edx + 0xb0], ebp
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
pop edi
pop esi
mov dword [eax + 0xb0], ebp
pop ebp
mov al, bl
pop ebx
add esp, 0x34
ret