Function at 0x5f021c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x68], esi
call dword [eax + 4]
test esi, esi
je 0x5f0461
sub esp, 0x10
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x6395c4
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.004bdb3b
mov edi, dword [ebp - 0x64]
add esp, 0x20
test eax, eax
jne 0x5f0464
sub esp, 0xc
lea ecx, [edi + 0x14]
push dword [ebp - 0x68]
call fcn.004bde1d
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x6c], esi
call fcn.005f1f46
test eax, eax
jne 0x5f0299
mov ebx, 0x80004005
jmp 0x5f0451
xor ecx, ecx
and dword [ebp - 8], ebx
and dword [ebp - 0x24], ebx
and dword [ebp - 0x40], ebx
push 0x1c
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x58], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x70], ecx
test eax, eax
je 0x5f0451
lea edx, [ebp - 0x20]
push edx
push ecx
push dword [ebp - 0x68]
push 0
push esi
call eax
test eax, eax
je 0x5f0451
push 0x20e
call fcn.00505e8b
pop ecx
mov ecx, eax
mov dword [ebp - 0x64], ecx
test ecx, ecx
je 0x5f044c
mov dword [ecx], 6
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x5f043a
lea eax, [ebp - 0x58]
push eax
push 0
push 0x20e
push dword [ebp - 0x64]
lea eax, [ebp - 0x20]
push eax
push esi
call ecx
test eax, eax
je 0x5f043a
mov edx, dword [ebp - 0x68]
xor ecx, ecx
inc ecx
add edx, 0x10
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edx
test eax, eax
je 0x5f043a
mov eax, dword [edi + 0x40]
test eax, eax
je 0x5f0424
lea ecx, [ebp - 0x3c]
push ecx
push edx
lea ecx, [ebp - 0x20]
push ecx
push esi
call eax
test eax, eax
je 0x5f0358
cmp dword [ebp - 0x28], ebx
je 0x5f0356
test byte [ebp - 0x28], 4
je 0x5f0358
xor eax, eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
inc ecx
add edx, 0x10
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edx
cmp ecx, 2
jb 0x5f0328
test eax, eax
je 0x5f043a
and dword [ebp - 0x5c], ebx
push 0xab8
call fcn.004da873
pop ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x74], eax
push ecx
mov ecx, dword [ebp - 0x64]
add ecx, 4
push ecx
mov ecx, eax
call fcn.005f06d0
mov ecx, dword [ebp - 0x5c]
mov esi, eax
test esi, esi
mov dword [ebp - 0x60], esi
mov eax, 0x8007000e
cmove ecx, eax
test ecx, ecx
js 0x5f042b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test eax, eax
js 0x5f042b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
js 0x5f042b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
js 0x5f042b
lea eax, [ebp - 0x60]
push eax
lea ecx, [edi + 4]
call fcn.004bdede
mov esi, dword [ebp - 0x6c]
lea eax, [ebp - 0x20]
push ecx
push ecx
push eax
push esi
lea ecx, [edi + 0x14]
call fcn.004bde96
mov dword [ebp - 0x74], eax
cmp eax, 0xffffffff
je 0x5f043a
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x800
push ecx
mov ecx, dword [ebp - 0x60]
add ecx, 0xc
push ecx
lea ecx, [ebp - 0x78]
push ecx
push 0
push str.FriendlyName
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5f043a
xor eax, eax
jmp 0x5f035e
test esi, esi
je 0x5f0437
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov esi, dword [ebp - 0x6c]
push dword [ebp - 0x64]
call fcn.0050524d
pop ecx
mov ecx, dword [ebp - 0x70]
inc ecx
jmp 0x5f029b
mov ebx, 0x8007000e
test esi, esi
je 0x5f0464
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x5f0464
push esi
call ecx
jmp 0x5f0464
mov edi, dword [ebp - 0x64]
cmp dword [edi + 8], 0
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
cmove ebx, eax
xor ecx, ebp
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.004da623
leave
ret 0x18