Function at 0x778200
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x77d280
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push 0x9d9cb3
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7782aa
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x10], 1
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push edx
push eax
push ecx
push 0
push 0x9d9cac
mov dword [ebp - 0x24], esi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x44], eax
cmove ecx, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3c], 0
lea edi, [ebp - 0x38]
je 0x7782be
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x44], 0
mov esi, dword [ebp - 0x28]
je 0x7782f8
xor eax, eax
nop dword [eax]
movzx ecx, byte [ebp + eax - 0x2c]
mov edx, ecx
shr edx, 4
movzx edx, byte [edx + 0x9d9d5c]
mov byte [ebp + eax*2 - 0x38], dl
and ecx, 0xf
movzx ecx, byte [ecx + 0x9d9d5c]
mov byte [ebp + eax*2 - 0x37], cl
inc eax
cmp esi, eax
jne 0x7782d0
mov byte [ebp - 0x30], 0
push edi
call fcn.00903f50
add esp, 4
mov ecx, dword [ebx + 0x14]
cmp ecx, eax
jae 0x77832e
mov dword [ebp - 0x10], 0xffffffff
sub esp, 0xc
movzx ecx, byte [ebp - 0x20]
mov byte [esp + 4], cl
mov dword [esp + 8], edi
mov dword [esp], eax
mov ecx, ebx
call fcn.006704d0
jmp 0x778355
mov esi, ebx
cmp ecx, 0x10
jb 0x778337
mov esi, dword [ebx]
mov dword [ebx + 0x10], eax
push eax
push edi
push esi
mov edi, eax
call fcn.00935430
add esp, 0xc
mov byte [esi + edi], 0
mov dword [ebp - 0x10], 0xffffffff
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push 1
push 0
push 0x9d9d21
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7784b9
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x10], 3
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push 0
push 0x9d9d09
mov dword [ebp - 0x24], edx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 2
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3c], 0
lea edi, [ebp - 0x38]
mov ebx, dword [ebp + 8]
jne 0x7784b9
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x778408
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, byte [ebp + eax - 0x2c]
mov edx, ecx
shr edx, 4
movzx edx, byte [edx + 0x9d9d5c]
mov byte [ebp + eax*2 - 0x38], dl
and ecx, 0xf
movzx ecx, byte [ecx + 0x9d9d5c]
mov byte [ebp + eax*2 - 0x37], cl
inc eax
cmp esi, eax
jne 0x7783e0
mov byte [ebp - 0x30], 0
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
cmp ecx, eax
jne 0x778448
mov dword [ebp - 0x10], 0xffffffff
sub esp, 0x10
movzx eax, byte [ebp - 0x20]
mov byte [esp + 4], al
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x9d9d58
mov dword [esp], 1
mov ecx, ebx
call fcn.00671270
jmp 0x77845d
lea edx, [eax + 1]
mov dword [ebx + 0x10], edx
mov edx, ebx
cmp ecx, 0x10
jb 0x778457
mov edx, dword [ebx]
mov word [edx + eax], 0x5f
push edi
call fcn.00903f50
add esp, 4
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov esi, edx
sub esi, ecx
cmp esi, eax
jae 0x77849a
mov dword [ebp - 0x10], 0xffffffff
sub esp, 0x10
movzx ecx, byte [ebp - 0x20]
mov byte [esp + 4], cl
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], eax
mov ecx, ebx
call fcn.00671270
jmp 0x7784b9
mov esi, eax
add esi, ecx
mov dword [ebx + 0x10], esi
cmp edx, 0x10
jb 0x7784a8
mov ebx, dword [ebx]
add ecx, ebx
push eax
push edi
push ecx
call fcn.00935430
add esp, 0xc
mov byte [ebx + esi], 0
mov al, 1
jmp 0x7782ac