Function at 0x406c9b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x148
mov eax, 0x5ba31f
call fcn.00580ed4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x70], eax
xor ebx, ebx
lea eax, [ebp - 0x38]
mov edi, ecx
mov dword [ebp - 0x30], ebx
push eax
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x31], bl
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x406ce6
mov dword [ebp - 0x38], eax
jmp 0x406ce9
mov eax, dword [ebp - 0x38]
cmp eax, 1
jne 0x406cf1
mov dword [ebp - 0x38], eax
cmp dword [edi + 0x18], 8
jb 0x406cfc
mov edx, dword [edi + 4]
jmp 0x406cff
lea edx, [edi + 4]
dec eax
neg eax
lea ecx, [ebp - 0x68]
push ecx
sbb eax, eax
mov ecx, 0x100
and eax, ecx
add eax, ecx
or eax, 0x20019
push eax
push ebx
push edx
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4070f5
push dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp - 0x74]
push dword [ebp - 0x68]
call fcn.0040e3e6
mov dword [ebp - 4], ebx
mov esi, 0x3fff
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 0x48], esi
neg ecx
or ecx, eax
push ecx
call fcn.005726e9
pop ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x4c], ebx
jmp 0x406d6e
mov edi, dword [ebp - 0x54]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x3c]
push eax
push ebx
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0x3fff
push dword [ebp - 0x4c]
push dword [ebp - 0x68]
call esi
inc dword [ebp - 0x4c]
cmp eax, ebx
jne 0x4070cb
cmp dword [ebp - 0x40], 1
je 0x406dab
cmp dword [ebp - 0x40], 7
jne 0x406d6e
mov eax, dword [ebp - 0x3c]
shr eax, 1
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
mov dword [ebp - 0x48], 0x3fff
neg ecx
or ecx, eax
push ecx
call fcn.005726e9
pop ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x4c]
dec eax
push eax
push dword [ebp - 0x68]
call esi
cmp eax, ebx
jne 0x4070cb
xor edi, edi
inc edi
cmp dword [ebp - 0x40], edi
je 0x406e05
cmp dword [ebp - 0x40], 7
jne 0x406d6b
lea eax, [ebp - 0x64]
push eax
call fcn.0040512b
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x38]
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x6c]
call fcn.0040e439
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00408606
push 0x670fe8
lea eax, [ebp - 0x60]
push eax
call fcn.00408624
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x18], 8
jb 0x406e53
add eax, 4
mov eax, dword [eax]
jmp 0x406e56
add eax, 4
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00408624
mov eax, dword [ebp - 0x44]
cmp word [eax], bx
jne 0x406e6f
push str.2BAE191B_03CE_4148_8BBA_28AE87939E58
jmp 0x406e70
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00408606
push dword [ebp - 0x70]
lea esi, [ebp - 0x2c]
call fcn.004081da
mov byte [ebp - 4], 2
push 0x670fe8
mov eax, esi
push eax
call fcn.00408208
mov eax, dword [ebp - 0x3c]
shr eax, 1
push eax
push dword [ebp - 0x58]
lea esi, [ebp - 0x138]
call fcn.00408197
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004097f9
mov byte [ebp - 4], 2
push ebx
push edi
call fcn.00409c0f
push str.InprocServer32
lea esi, [ebp - 0xac]
call fcn.004081bb
mov byte [ebp - 4], 4
push dword [ebp - 0x48]
or dword [ebp - 0x30], edi
push dword [ebp - 0x44]
lea esi, [ebp - 0x11c]
call fcn.00408197
mov dword [ebp - 4], 5
or dword [ebp - 0x30], 2
lea ecx, [ebp - 0xac]
push ecx
mov edx, eax
lea ecx, [ebp - 0xe4]
call fcn.00406985
pop ecx
mov dword [ebp - 4], 6
or dword [ebp - 0x30], 4
push ebx
lea ecx, [ebp - 0x64]
push ecx
push dword [ebp - 0x50]
mov ecx, eax
call fcn.0040644d
add esp, 0xc
test al, al
jne 0x406fbb
push str.InprocServer32
lea esi, [ebp - 0x90]
call fcn.004081bb
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x3c]
or dword [ebp - 0x30], 8
shr eax, 1
push eax
push dword [ebp - 0x58]
lea esi, [ebp - 0xc8]
call fcn.00408197
mov dword [ebp - 4], 8
or dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x90]
push ecx
mov edx, eax
lea ecx, [ebp - 0x100]
call fcn.00406985
pop ecx
mov dword [ebp - 4], 9
or dword [ebp - 0x30], 0x20
push ebx
lea ecx, [ebp - 0x64]
push ecx
push dword [ebp - 0x50]
mov ecx, eax
call fcn.0040644d
add esp, 0xc
test al, al
jne 0x406fbb
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
call fcn.0040644d
add esp, 0xc
mov byte [ebp - 0x32], 1
test al, al
je 0x406fbe
mov byte [ebp - 0x32], bl
mov dword [ebp - 4], 8
test byte [ebp - 0x30], 0x20
je 0x406fdc
and dword [ebp - 0x30], 0xffffffdf
push ebx
push edi
lea esi, [ebp - 0x100]
call fcn.00409c0f
mov dword [ebp - 4], 7
test byte [ebp - 0x30], 0x10
je 0x406ffa
and dword [ebp - 0x30], 0xffffffef
push ebx
push edi
lea esi, [ebp - 0xc8]
call fcn.00409c0f
mov dword [ebp - 4], 6
test byte [ebp - 0x30], 8
je 0x407018
and dword [ebp - 0x30], 0xfffffff7
push ebx
push edi
lea esi, [ebp - 0x90]
call fcn.00409c0f
mov dword [ebp - 4], 5
test byte [ebp - 0x30], 4
je 0x407036
and dword [ebp - 0x30], 0xfffffffb
push ebx
push edi
lea esi, [ebp - 0xe4]
call fcn.00409c0f
mov dword [ebp - 4], 4
test byte [ebp - 0x30], 2
je 0x407054
and dword [ebp - 0x30], 0xfffffffd
push ebx
push edi
lea esi, [ebp - 0x11c]
call fcn.00409c0f
mov dword [ebp - 4], 2
test byte [ebp - 0x30], 1
je 0x407072
and dword [ebp - 0x30], 0xfffffffe
push ebx
push edi
lea esi, [ebp - 0xac]
call fcn.00409c0f
cmp byte [ebp - 0x32], bl
je 0x4070ac
mov eax, dword [ebp - 0x3c]
shr eax, 1
push eax
push dword [ebp - 0x58]
lea esi, [ebp - 0x154]
call fcn.00408197
mov byte [ebp - 4], 0xa
push ebx
lea ecx, [ebp - 0x64]
push ecx
push dword [ebp - 0x50]
mov ecx, eax
call fcn.0040644d
add esp, 0xc
mov byte [ebp - 4], 2
push ebx
push edi
call fcn.00409c0f
mov byte [ebp - 4], 1
push ebx
push edi
lea esi, [ebp - 0x2c]
call fcn.00409c0f
mov byte [ebp - 4], bl
lea eax, [ebp - 0x64]
push eax
call fcn.0040515e
jmp 0x406d6b
cmp eax, 0x103
jne 0x4070d6
mov byte [ebp - 0x31], 1
push dword [ebp - 0x44]
call fcn.0057458b
pop ecx
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x74]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x38]
mov ecx, eax
dec eax
mov dword [ebp - 0x38], eax
test ecx, ecx
jne 0x406cf1
mov al, byte [ebp - 0x31]
call fcn.00580f57
ret