Function at 0x4793d0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4e6f60
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 0x4795c6
mov eax, dword [esp + 0xc]
push ebp
lea eax, [eax*4 + 8]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x20], ebp
jl 0x47944d
lea eax, [eax + eax + 2]
push eax
call fcn.00445f00
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x20], ebp
je 0x47944d
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 0x4795af
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 0x479599
cmp word [ebp], bx
je 0x479599
mov eax, dword [esp + 0x44]
mov esi, dword [eax]
cmp esi, ebx
mov dword [esp + 0x10], ebx
je 0x4794e0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
lea ecx, [edi + 2]
push ecx
call fcn.00445f00
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 0x4ec34c
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.004462e0
push ebp
lea ecx, [esp + 0x14]
call fcn.004462e0
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 [0x518dc4]
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 0x479558
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x34], bl
je 0x479595
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push ebx
push ecx
jmp 0x47958f
lea edx, [esp + 0x10]
push edx
push edi
push eax
call fcn.004793d0
mov esi, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, ebx
je 0x479578
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x34], bl
je 0x479595
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
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 0x479464
pop edi
cmp ebp, ebx
je 0x4795c5
mov ecx, dword [0x51927c]
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