Function at 0x4770e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
lea eax, [esp + 0xc]
push esi
push edi
push eax
mov eax, dword [0x4d78c8]
mov edi, ecx
mov dword [edi + 8], 0
mov dword [edi], 0x4b431c
mov dword [edi + 4], 0
mov eax, dword [eax + 0x84]
or eax, 0x20019
push eax
push 0
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x47713e
mov ecx, dword [0x4d78c8]
push eax
mov dword [ecx + 0x38], eax
mov ecx, edi
call fcn.00429530
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp + 0xc]
push 0
push eax
push dword [esp + 0x28]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x34], eax
call eax
mov esi, eax
test esi, esi
jne 0x4772a7
mov eax, dword [esp + 0x20]
dec eax
cmp eax, 6
ja case.0x477174.5
jmp dword [eax*4 + 0x477458]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 4
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [esp + 0x28]
call dword [esp + 0x34]
mov esi, eax
test esi, esi
jne 0x4772a7
mov eax, dword [esp + 0x28]
mov dword [edi + 8], 1
mov dword [edi], eax
mov dword [edi + 4], esi
jmp 0x4772a7
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [esp + 0x28]
call dword [esp + 0x34]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
jne 0x4772a7
mov esi, dword [esp + 0x10]
test esi, esi
je 0x47744e
shr esi, 1
add esi, 2
cmp esi, 0xffffffff
jne 0x477211
xor esi, esi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x477202
sub esi, ecx
sar esi, 1
cmp esi, 0xff
ja 0x47727c
mov eax, dword [edi + 0x10]
mov dword [edi], eax
xor ecx, ecx
mov word [eax + esi*2], cx
mov dword [edi + 4], esi
mov esi, dword [edi]
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
push dword [ebp + 0xc]
push dword [esp + 0x28]
call dword [esp + 0x34]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4772cb
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4772cb
shr eax, 1
xor ecx, ecx
mov dword [esi + eax*2], ecx
cmp dword [esp + 0x20], 7
jne 0x4772d0
mov eax, esi
mov ecx, 0xa
cmp word [eax], 0
jne 0x477277
cmp word [eax + 2], 0
mov word [eax], cx
je 0x4772d0
add eax, 2
jmp 0x477267
lea eax, [esi*2 + 2]
push eax
call fcn.00497ab4
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
jne 0x47721c
push str.Out_of_memory.
mov ecx, edi
call fcn.00429450
test eax, eax
jne 0x477227
mov esi, dword [esp + 0x18]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4d78c8]
mov dword [eax + 0x38], esi
test esi, esi
je 0x4772c5
push esi
mov ecx, edi
call fcn.00429530
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [esi], ax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4772d3
sub esi, ecx
sar esi, 1
mov dword [edi + 4], esi
jmp 0x4772a3
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [esp + 0x28]
call dword [esp + 0x34]
mov esi, eax
test esi, esi
jne 0x4772a7
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4772a7
add ecx, ecx
mov dword [esp + 0x24], ecx
cmp ecx, 0xff
ja 0x477326
mov eax, dword [edi + 0x10]
jmp 0x477357
lea eax, [ecx*2 + 2]
push eax
call fcn.00497ab4
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
jne 0x477353
push str.Out_of_memory.
mov ecx, edi
call fcn.00429450
test eax, eax
je 0x4772a7
jmp 0x477362
mov ecx, dword [esp + 0x24]
mov dword [edi], eax
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [edi + 4], ecx
mov ecx, dword [edi]
xor eax, eax
mov dword [esp + 0x24], ecx
mov word [ecx], ax
mov eax, dword [esp + 0x10]
lea ecx, [ecx + eax*2]
add ecx, eax
lea eax, [esp + 0x10]
push eax
push ecx
push 0
push 0
push dword [ebp + 0xc]
mov dword [esp + 0x40], ecx
push dword [esp + 0x28]
call dword [esp + 0x34]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x4773c0
mov dword [edi + 4], 0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4d78c8]
mov ecx, edi
push esi
mov dword [eax + 0x38], esi
call fcn.00429530
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [str.0123456789ABCDEF]
mov ax, word [0x4d0c60]
xor edx, edx
xor edi, edi
mov word [esp + 0x50], ax
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [0x4d0c50]
movups xmmword [esp + 0x40], xmm0
cmp dword [esp + 0x10], edx
jbe 0x477422
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
movzx ecx, byte [edx + eax]
inc edx
mov eax, ecx
shr ecx, 4
and eax, 0xf
movzx eax, word [esp + eax*2 + 0x30]
mov word [esi + edi*2 + 2], ax
movzx eax, word [esp + ecx*2 + 0x30]
mov word [esi + edi*2], ax
add edi, 2
cmp edx, dword [esp + 0x10]
jb 0x4773f1
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov word [eax + edi*2], cx
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4d78c8]
pop edi
mov dword [eax + 0x38], esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, 0x65e
jmp 0x4773a0
mov esi, eax
jmp 0x4772a7