Function at 0x4d5043
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x517ad4]
and dword [ebp - 0x68], 0
and dword [ebp - 0x5c], 0
xor eax, ebp
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx]
push edi
mov ecx, ebx
mov dword [ebp - 0x6c], esi
call dword [eax + 4]
test esi, esi
je 0x4d52b0
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, 0x502df0
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.004d3fe1
add esp, 0x20
test eax, eax
jne 0x4d52b0
mov eax, dword [ebx + 0x34]
xor esi, esi
cmp eax, esi
je 0x4d50af
push 0x12
push esi
push esi
push dword [ebp - 0x6c]
call eax
mov dword [ebp - 0x5c], eax
jmp 0x4d50b2
mov dword [ebp - 0x5c], esi
push dword [ebp - 0x5c]
call fcn.004d5faa
add esp, 4
test eax, eax
jne 0x4d50cd
mov dword [ebp - 0x68], 0x80004005
jmp 0x4d52b0
mov dword [ebp - 0x70], esi
push 0x1c
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x3c]
cmp eax, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x40], esi
je 0x4d50fe
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x70]
push dword [ebp - 0x6c]
push esi
push dword [ebp - 0x5c]
call eax
jmp 0x4d5100
xor eax, eax
cmp eax, esi
je 0x4d52b0
mov esi, 0x20e
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov ecx, eax
xor edi, edi
cmp ecx, edi
mov dword [ebp - 0x74], ecx
je 0x4d52a9
mov dword [ecx], 6
mov eax, dword [ebx + 0x38]
cmp eax, edi
je 0x4d5143
lea edx, [ebp - 0x58]
push edx
push edi
push esi
push ecx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x5c]
call eax
jmp 0x4d5145
xor eax, eax
cmp eax, edi
je 0x4d5287
xor ecx, ecx
inc ecx
cmp dword [ebp + 0xc], ecx
mov dword [ebp - 0x60], ecx
jbe 0x4d519e
mov esi, dword [ebp - 0x6c]
add esi, 0x10
cmp eax, edi
je 0x4d5287
mov eax, dword [ebx + 0x40]
cmp eax, edi
je 0x4d517d
lea ecx, [ebp - 0x3c]
push ecx
push esi
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x5c]
call eax
jmp 0x4d517f
xor eax, eax
cmp eax, edi
je 0x4d5190
cmp dword [ebp - 0x28], edi
je 0x4d518e
test byte [ebp - 0x28], 4
je 0x4d5190
xor eax, eax
inc dword [ebp - 0x60]
mov ecx, dword [ebp - 0x60]
add esi, 0x10
cmp ecx, dword [ebp + 0xc]
jb 0x4d515e
cmp eax, edi
je 0x4d5287
mov eax, dword [ebp + 8]
xor esi, esi
dec eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], edi
jne 0x4d51f0
push 0xab8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x4d51d8
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0x74]
add ecx, 4
push ecx
call fcn.004d4964
mov edi, dword [ebp - 0x60]
jmp 0x4d51da
xor eax, eax
test eax, eax
mov esi, eax
mov dword [ebp - 0x64], esi
jne 0x4d51e8
mov edi, 0x8007000e
test edi, edi
jl 0x4d529b
xor eax, eax
cmp dword [ebp + 0x14], eax
jne 0x4d5201
cmp dword [ebp + 0x10], eax
jne 0x4d5201
cmp dword [ebp + 0x18], eax
je 0x4d5230
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp + 0x14], 0
mov edi, eax
je 0x4d521d
test edi, edi
jl 0x4d521d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov edi, eax
cmp dword [ebp + 0x10], 0
je 0x4d5230
test edi, edi
jl 0x4d529b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov edi, eax
test edi, edi
jl 0x4d529b
lea eax, [ebp - 0x64]
push eax
lea eax, [ebx + 4]
call fcn.0043a749
mov eax, dword [ebx + 0x44]
xor edi, edi
cmp eax, edi
je 0x4d525a
push 0x20019
push edi
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x5c]
call eax
mov edi, eax
cmp edi, 0xffffffff
je 0x4d5287
lea eax, [ebp - 0x64]
push eax
add esi, 0xc
push esi
lea eax, [ebp - 0x78]
push eax
push 0
push str.FriendlyName
push edi
mov dword [ebp - 0x64], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x74]
call dword [sym.imp.MSVCRT.dll_free]
inc dword [ebp - 0x70]
pop ecx
xor esi, esi
jmp 0x4d50d0
test esi, esi
je 0x4d5287
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x4d5287
mov dword [ebp - 0x68], 0x8007000e
cmp dword [ebp - 0x5c], 0
je 0x4d52c2
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4d52c2
push dword [ebp - 0x5c]
call eax
cmp dword [ebx + 8], 0
jne 0x4d52cf
mov dword [ebp - 0x68], 0x80004005
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x68]
pop edi
xor ecx, ebp
pop esi
call fcn.004ebd70
leave
ret 0x14