Function at 0x100016b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10008fdf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebx, 0x104
push str.SYSTEMCurrentControlSetControlPrintEnvironmentsWindows_NT_x86Drivers
lea ecx, [esp + 0x20]
mov dword [esp + 0x180], 0
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 1
call fcn.10008b98
push str.Read64.dll
mov byte [esp + 0x180], 2
mov ebp, 0x20019
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1000174a
push str.fnIsWow64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000174a
call eax
cmp eax, 1
jne 0x1000174a
push str.SYSTEMCurrentControlSetControlPrintEnvironmentsWindows_x64Drivers
lea ecx, [esp + 0x20]
mov ebp, 0x20119
call sub.MFC42.DLL_CString::operator
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x30]
lea edx, [esi + 0x84]
rep stosd dword es:[edi], eax
mov edi, str.SYSTEMCurrentControlSetControlPrintMonitors_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x28], 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18c]
push ecx
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x180], 3
call fcn.10008b56
lea ecx, [esp + 0x18]
mov byte [esp + 0x17c], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push ebp
push 0
push edx
push 0x80000002
call edi
test eax, eax
jne 0x100019d4
mov edx, dword [esp + 0x10]
push eax
push eax
push eax
mov dword [esp + 0x24], eax
push eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x80]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, 0x103
je 0x1000191f
test eax, eax
jne 0x100018e2
mov esi, dword [esp + 0x184]
lea eax, [esp + 0x70]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000184f
test cl, cl
je 0x1000184b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000184f
add eax, 2
add esi, 2
test cl, cl
jne 0x1000182b
xor eax, eax
jmp 0x10001854
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100018e2
mov eax, dword [esp + 0x10]
push eax
call ebx
lea ecx, [esp + 0x14]
push 0x1000e030
lea edx, [esp + 0x28]
push ecx
push edx
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x70]
lea edx, [esp + 0x2c]
push ecx
push eax
push edx
mov byte [esp + 0x188], 4
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x180], 5
call fcn.10008b56
lea ecx, [esp + 0x2c]
mov byte [esp + 0x17c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ebp
push 0
push ecx
push 0x80000002
call edi
test eax, eax
je 0x10001933
mov edx, dword [esp + 0x10]
push edx
call ebx
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
lea edx, [esp + 0x80]
inc eax
push ecx
push edx
mov dword [esp + 0x30], eax
push eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], 0x104
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x10001818
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100019df
push eax
call ebx
jmp 0x100019df
push str.Monitor
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x188]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18c]
mov dword [esp + 0x17c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x10001a1a
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18c]
mov dword [esp + 0x17c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x170
ret 0xc