Function at 0x406c4e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x148
mov eax, 0x5c0ee2
call fcn.005870c4
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 0x406c99
mov dword [ebp - 0x38], eax
jmp 0x406c9c
mov eax, dword [ebp - 0x38]
cmp eax, 1
jne 0x406ca4
mov dword [ebp - 0x38], eax
cmp dword [edi + 0x18], 8
jb 0x406caf
mov edx, dword [edi + 4]
jmp 0x406cb2
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 0x4070a8
push dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp - 0x74]
push dword [ebp - 0x68]
call fcn.0040e469
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.005786a9
pop ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x4c], ebx
jmp 0x406d21
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 0x40707e
cmp dword [ebp - 0x40], 1
je 0x406d5e
cmp dword [ebp - 0x40], 7
jne 0x406d21
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.005786a9
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 0x40707e
xor edi, edi
inc edi
cmp dword [ebp - 0x40], edi
je 0x406db8
cmp dword [ebp - 0x40], 7
jne 0x406d1e
lea eax, [ebp - 0x64]
push eax
call fcn.0040510b
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.0040e4bc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004085bd
push 0x69198c
lea eax, [ebp - 0x60]
push eax
call fcn.004085db
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x18], 8
jb 0x406e06
add eax, 4
mov eax, dword [eax]
jmp 0x406e09
add eax, 4
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004085db
mov eax, dword [ebp - 0x44]
cmp word [eax], bx
jne 0x406e22
push 0x691990
jmp 0x406e23
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004085bd
push dword [ebp - 0x70]
lea esi, [ebp - 0x2c]
call fcn.00408191
mov byte [ebp - 4], 2
push 0x6919e0
mov eax, esi
push eax
call fcn.004081bf
mov eax, dword [ebp - 0x3c]
shr eax, 1
push eax
push dword [ebp - 0x58]
lea esi, [ebp - 0x138]
call fcn.0040814e
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004097db
mov byte [ebp - 4], 2
push ebx
push edi
call fcn.00409bf1
push 0x6919e4
lea esi, [ebp - 0xac]
call fcn.00408172
mov byte [ebp - 4], 4
push dword [ebp - 0x48]
or dword [ebp - 0x30], edi
push dword [ebp - 0x44]
lea esi, [ebp - 0x11c]
call fcn.0040814e
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.00406938
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.00406400
add esp, 0xc
test al, al
jne 0x406f6e
push str.InprocServer32
lea esi, [ebp - 0x90]
call fcn.00408172
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.0040814e
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.00406938
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.00406400
add esp, 0xc
test al, al
jne 0x406f6e
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
call fcn.00406400
add esp, 0xc
mov byte [ebp - 0x32], 1
test al, al
je 0x406f71
mov byte [ebp - 0x32], bl
mov dword [ebp - 4], 8
test byte [ebp - 0x30], 0x20
je 0x406f8f
and dword [ebp - 0x30], 0xffffffdf
push ebx
push edi
lea esi, [ebp - 0x100]
call fcn.00409bf1
mov dword [ebp - 4], 7
test byte [ebp - 0x30], 0x10
je 0x406fad
and dword [ebp - 0x30], 0xffffffef
push ebx
push edi
lea esi, [ebp - 0xc8]
call fcn.00409bf1
mov dword [ebp - 4], 6
test byte [ebp - 0x30], 8
je 0x406fcb
and dword [ebp - 0x30], 0xfffffff7
push ebx
push edi
lea esi, [ebp - 0x90]
call fcn.00409bf1
mov dword [ebp - 4], 5
test byte [ebp - 0x30], 4
je 0x406fe9
and dword [ebp - 0x30], 0xfffffffb
push ebx
push edi
lea esi, [ebp - 0xe4]
call fcn.00409bf1
mov dword [ebp - 4], 4
test byte [ebp - 0x30], 2
je 0x407007
and dword [ebp - 0x30], 0xfffffffd
push ebx
push edi
lea esi, [ebp - 0x11c]
call fcn.00409bf1
mov dword [ebp - 4], 2
test byte [ebp - 0x30], 1
je 0x407025
and dword [ebp - 0x30], 0xfffffffe
push ebx
push edi
lea esi, [ebp - 0xac]
call fcn.00409bf1
cmp byte [ebp - 0x32], bl
je 0x40705f
mov eax, dword [ebp - 0x3c]
shr eax, 1
push eax
push dword [ebp - 0x58]
lea esi, [ebp - 0x154]
call fcn.0040814e
mov byte [ebp - 4], 0xa
push ebx
lea ecx, [ebp - 0x64]
push ecx
push dword [ebp - 0x50]
mov ecx, eax
call fcn.00406400
add esp, 0xc
mov byte [ebp - 4], 2
push ebx
push edi
call fcn.00409bf1
mov byte [ebp - 4], 1
push ebx
push edi
lea esi, [ebp - 0x2c]
call fcn.00409bf1
mov byte [ebp - 4], bl
lea eax, [ebp - 0x64]
push eax
call fcn.00412ceb
jmp 0x406d1e
cmp eax, 0x103
jne 0x407089
mov byte [ebp - 0x31], 1
push dword [ebp - 0x44]
call fcn.0057a53b
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 0x406ca4
mov al, byte [ebp - 0x31]
call fcn.00587147
ret