Function at 0x4baf11
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [eax + 4]
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x4bb170
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, 0x4d0be4
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.004b9ee3
add esp, 0x20
test eax, eax
jne 0x4bb170
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
cmp eax, ebx
je 0x4baf74
push 0x12
push ebx
push ebx
push dword [ebp + 0x10]
call eax
mov dword [ebp - 4], eax
jmp 0x4baf77
mov dword [ebp - 4], ebx
push dword [ebp - 4]
call fcn.004bbf38
add esp, 4
test eax, eax
jne 0x4baf92
mov dword [ebp - 8], 0x80004005
jmp 0x4bb170
mov dword [ebp - 0xc], ebx
push 0x1c
pop eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
cmp eax, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x58], ebx
je 0x4bafc6
lea ecx, [ebp - 0x38]
push ecx
push dword [ebp - 0xc]
push dword [ebp + 0x10]
push ebx
push dword [ebp - 4]
call eax
jmp 0x4bafc8
xor eax, eax
cmp eax, ebx
je 0x4bb170
mov esi, 0x20d
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 0x18], ecx
je 0x4bb169
mov eax, dword [ebp + 8]
mov dword [ecx], 5
mov eax, dword [eax + 0x38]
cmp eax, ebx
je 0x4bb00c
lea edx, [ebp - 0x70]
push edx
push ebx
push esi
push ecx
lea ecx, [ebp - 0x38]
push ecx
push dword [ebp - 4]
call eax
jmp 0x4bb00e
xor eax, eax
cmp eax, ebx
je 0x4bb157
xor edi, edi
inc edi
cmp dword [ebp + 0x14], edi
jbe 0x4bb062
mov esi, dword [ebp + 0x10]
add esi, 0x10
cmp eax, ebx
je 0x4bb157
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x40]
cmp eax, ebx
je 0x4bb046
lea ecx, [ebp - 0x54]
push ecx
push esi
lea ecx, [ebp - 0x38]
push ecx
push dword [ebp - 4]
call eax
jmp 0x4bb048
xor eax, eax
cmp eax, ebx
je 0x4bb059
cmp dword [ebp - 0x40], ebx
je 0x4bb057
test byte [ebp - 0x40], 4
je 0x4bb059
xor eax, eax
inc edi
add esi, 0x10
cmp edi, dword [ebp + 0x14]
jb 0x4bb024
cmp eax, ebx
je 0x4bb157
mov eax, dword [ebp + 0xc]
xor esi, esi
xor edi, edi
dec eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
jne 0x4bb0b2
push 0x5b0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x4bb09e
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, 4
push ecx
call fcn.004ba81c
mov edi, dword [ebp - 0x10]
jmp 0x4bb0a0
xor eax, eax
cmp eax, ebx
mov esi, eax
mov dword [ebp - 0x14], esi
jne 0x4bb0ae
mov edi, 0x8007000e
cmp edi, ebx
jl 0x4bb11b
cmp dword [ebp + 0x1c], ebx
jne 0x4bb0c1
cmp dword [ebp + 0x18], ebx
jne 0x4bb0c1
cmp dword [ebp + 0x20], ebx
je 0x4bb0ee
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp + 0x1c], ebx
mov edi, eax
je 0x4bb0dc
cmp edi, ebx
jl 0x4bb0dc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov edi, eax
cmp dword [ebp + 0x18], ebx
je 0x4bb0ee
cmp edi, ebx
jl 0x4bb11b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov edi, eax
cmp edi, ebx
jl 0x4bb11b
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 4]
call fcn.004bc853
mov eax, dword [edi + 0x44]
cmp eax, ebx
je 0x4bb129
push 0x20019
push ebx
lea ecx, [ebp - 0x38]
push ecx
push dword [ebp - 4]
call eax
mov edi, eax
jmp 0x4bb12b
cmp esi, ebx
je 0x4bb157
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x4bb157
xor edi, edi
cmp edi, 0xffffffff
je 0x4bb157
lea eax, [ebp - 0x14]
push eax
add esi, 0xc
push esi
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.FriendlyName
push edi
mov dword [ebp - 0x14], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_free]
inc dword [ebp - 0xc]
pop ecx
jmp 0x4baf95
mov dword [ebp - 8], 0x8007000e
cmp dword [ebp - 4], ebx
je 0x4bb184
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
cmp eax, ebx
je 0x4bb184
push dword [ebp - 4]
call eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], ebx
jne 0x4bb193
mov dword [ebp - 8], 0x80004005
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x1c