Function at 0x768fa0
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], 0x76dce0
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 0x9a6ad3
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x76904a
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 0x9a6acc
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 0x76905e
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 0x769098
xor eax, eax
nop dword [eax]
movzx ecx, byte [ebp + eax - 0x2c]
mov edx, ecx
shr edx, 4
movzx edx, byte [edx + 0x9a6b7c]
mov byte [ebp + eax*2 - 0x38], dl
and ecx, 0xf
movzx ecx, byte [ecx + 0x9a6b7c]
mov byte [ebp + eax*2 - 0x37], cl
inc eax
cmp esi, eax
jne 0x769070
mov byte [ebp - 0x30], 0
push edi
call fcn.008d08c0
add esp, 4
mov ecx, dword [ebx + 0x14]
cmp ecx, eax
jae 0x7690ce
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.0066cb40
jmp 0x7690f5
mov esi, ebx
cmp ecx, 0x10
jb 0x7690d7
mov esi, dword [ebx]
mov dword [ebx + 0x10], eax
push eax
push edi
push esi
mov edi, eax
call fcn.00901d90
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 0x9a6b41
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x769259
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 0x9a6b29
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 0x769259
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x7691a8
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, byte [ebp + eax - 0x2c]
mov edx, ecx
shr edx, 4
movzx edx, byte [edx + 0x9a6b7c]
mov byte [ebp + eax*2 - 0x38], dl
and ecx, 0xf
movzx ecx, byte [ecx + 0x9a6b7c]
mov byte [ebp + eax*2 - 0x37], cl
inc eax
cmp esi, eax
jne 0x769180
mov byte [ebp - 0x30], 0
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
cmp ecx, eax
jne 0x7691e8
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], 0x9a6b78
mov dword [esp], 1
mov ecx, ebx
call fcn.0066d8c0
jmp 0x7691fd
lea edx, [eax + 1]
mov dword [ebx + 0x10], edx
mov edx, ebx
cmp ecx, 0x10
jb 0x7691f7
mov edx, dword [ebx]
mov word [edx + eax], 0x5f
push edi
call fcn.008d08c0
add esp, 4
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov esi, edx
sub esi, ecx
cmp esi, eax
jae 0x76923a
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.0066d8c0
jmp 0x769259
mov esi, eax
add esi, ecx
mov dword [ebx + 0x10], esi
cmp edx, 0x10
jb 0x769248
mov ebx, dword [ebx]
add ecx, ebx
push eax
push edi
push ecx
call fcn.00901d90
add esp, 0xc
mov byte [ebx + esi], 0
mov al, 1
jmp 0x76904c