Function at 0x47bd70
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4eb3a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov edx, dword [esp + 0x34]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
cmp esi, ebx
jne 0x47bf66
mov eax, dword [esp + 0xc]
push ebp
lea eax, [eax*4 + 8]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x20], ebp
jl 0x47bded
lea eax, [eax + eax + 2]
push eax
call fcn.00449130
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x20], ebp
je 0x47bded
mov word [ebp], bx
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], eax
jle 0x47bf4f
push edi
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [ecx*4]
push ebx
lea ecx, [esp + 0x38]
push ecx
push ebp
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x54]
push eax
mov dword [esp + 0x34], ebx
push edx
mov word [ebp], bx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x47bf39
cmp word [ebp], bx
je 0x47bf39
mov eax, dword [esp + 0x44]
mov esi, dword [eax]
cmp esi, ebx
mov dword [esp + 0x10], ebx
je 0x47be80
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
lea ecx, [edi + 2]
push ecx
call fcn.00449130
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], eax
push 0x4f036c
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.00449510
push ebp
lea ecx, [esp + 0x14]
call fcn.00449510
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
push ebx
push edi
push ebx
push ebx
push 4
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
movzx edx, word [0x51c734]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
push ecx
or edx, 0xf003f
push edx
push ebx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x47bef8
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x34], bl
je 0x47bf35
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push ebx
push ecx
jmp 0x47bf2f
lea edx, [esp + 0x10]
push edx
push edi
push eax
call fcn.0047bd70
mov esi, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, ebx
je 0x47bf18
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x34], bl
je 0x47bf35
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x47be04
pop edi
cmp ebp, ebx
je 0x47bf65
mov ecx, dword [0x51d3c8]
add ebp, 0xfffffff8
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebp
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret