Function at 0x4c31e7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x4ed384]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ecx]
xor ebx, ebx
push edi
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], ebx
call dword [eax + 4]
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x4c344e
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov esi, 0x4db01c
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004c21ae
add esp, 0x20
test eax, eax
jne 0x4c344e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
cmp eax, ebx
je 0x4c3252
push 0x12
push ebx
push ebx
push dword [ebp + 0x10]
call eax
mov dword [ebp - 0x5c], eax
jmp 0x4c3255
mov dword [ebp - 0x5c], ebx
push dword [ebp - 0x5c]
call fcn.004c4153
add esp, 4
test eax, eax
jne 0x4c3270
mov dword [ebp - 0x64], 0x80004005
jmp 0x4c344e
mov dword [ebp - 0x68], ebx
push 0x1c
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
cmp eax, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x40], ebx
je 0x4c32a4
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x68]
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x5c]
call eax
jmp 0x4c32a6
xor eax, eax
cmp eax, ebx
je 0x4c344e
mov esi, 0x20e
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 0x70], ecx
je 0x4c3447
mov eax, dword [ebp + 8]
mov dword [ecx], 6
mov eax, dword [eax + 0x38]
cmp eax, ebx
je 0x4c32ea
lea edx, [ebp - 0x58]
push edx
push ebx
push esi
push ecx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x5c]
call eax
jmp 0x4c32ec
xor eax, eax
cmp eax, ebx
je 0x4c3435
xor edi, edi
inc edi
cmp dword [ebp + 0x14], edi
jbe 0x4c3340
mov esi, dword [ebp + 0x10]
add esi, 0x10
cmp eax, ebx
je 0x4c3435
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x40]
cmp eax, ebx
je 0x4c3324
lea ecx, [ebp - 0x3c]
push ecx
push esi
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x5c]
call eax
jmp 0x4c3326
xor eax, eax
cmp eax, ebx
je 0x4c3337
cmp dword [ebp - 0x28], ebx
je 0x4c3335
test byte [ebp - 0x28], 4
je 0x4c3337
xor eax, eax
inc edi
add esi, 0x10
cmp edi, dword [ebp + 0x14]
jb 0x4c3302
cmp eax, ebx
je 0x4c3435
mov eax, dword [ebp + 0xc]
xor esi, esi
xor edi, edi
dec eax
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x6c], edi
jne 0x4c3390
push 0xab8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x4c337c
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, dword [ebp - 0x70]
add ecx, 4
push ecx
call fcn.004c2b13
mov edi, dword [ebp - 0x6c]
jmp 0x4c337e
xor eax, eax
cmp eax, ebx
mov esi, eax
mov dword [ebp - 0x60], esi
jne 0x4c338c
mov edi, 0x8007000e
cmp edi, ebx
jl 0x4c33f9
cmp dword [ebp + 0x1c], ebx
jne 0x4c339f
cmp dword [ebp + 0x18], ebx
jne 0x4c339f
cmp dword [ebp + 0x20], ebx
je 0x4c33cc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp + 0x1c], ebx
mov edi, eax
je 0x4c33ba
cmp edi, ebx
jl 0x4c33ba
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov edi, eax
cmp dword [ebp + 0x18], ebx
je 0x4c33cc
cmp edi, ebx
jl 0x4c33f9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov edi, eax
cmp edi, ebx
jl 0x4c33f9
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x60]
push eax
lea eax, [edi + 4]
call fcn.004c4a55
mov eax, dword [edi + 0x44]
cmp eax, ebx
je 0x4c3407
push 0x20019
push ebx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x5c]
call eax
mov edi, eax
jmp 0x4c3409
cmp esi, ebx
je 0x4c3435
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x4c3435
xor edi, edi
cmp edi, 0xffffffff
je 0x4c3435
lea eax, [ebp - 0x60]
push eax
add esi, 0xc
push esi
lea eax, [ebp - 0x74]
push eax
push ebx
push str.FriendlyName
push edi
mov dword [ebp - 0x60], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x70]
call dword [sym.imp.MSVCRT.dll_free]
inc dword [ebp - 0x68]
pop ecx
jmp 0x4c3273
mov dword [ebp - 0x64], 0x8007000e
cmp dword [ebp - 0x5c], ebx
je 0x4c3462
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
cmp eax, ebx
je 0x4c3462
push dword [ebp - 0x5c]
call eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], ebx
jne 0x4c3471
mov dword [ebp - 0x64], 0x80004005
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x64]
call fcn.004c7b01
pop edi
pop esi
pop ebx
leave
ret 0x1c