Function at 0x10006120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x4e4]
sub esp, 0x4e4
push 0xffffffffffffffff
push 0x10037230
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1004f100]
xor eax, ebp
mov dword [ebp + 0x4e0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push str.CheckInstalled_..
mov dword [ebp - 0x14], ebx
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 4
lea eax, [ebp - 0x14]
push eax
push 0x20119
mov dword [ebp - 4], ebx
mov ecx, 0x17
mov esi, str.SYSTEMCurrentControlSetServicesTermService
lea edi, [ebp + 0x484]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp + 0x484]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
je 0x100061d9
call fcn.1001af90
lea edx, [ebp + 0x484]
push edx
push esi
push str.CheckInstalled_open_Regist_error:_08x__s
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], esi
call fcn.10028c35
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp]
push edx
lea eax, [ebp - 0x1c]
push eax
push 2
push str.ImagePath
push ebx
push ecx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
cmp esi, ebx
je 0x10006238
call fcn.1001af90
lea edx, [ebp + 0x484]
push edx
push esi
push str.CheckInstalled_get_Regist_ImagePath_value_error:_08x__s
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], esi
call fcn.10028c35
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp]
push 0x104
push edx
mov dword [ebp - 0x14], ebx
call fcn.100274cb
lea eax, [ebp]
push str.svchost.exe
push eax
call fcn.100274e2
lea ecx, [ebp]
push str.svchost__k
push ecx
mov esi, eax
call fcn.100274e2
add esp, 0x18
cmp esi, ebx
jne 0x100062a9
cmp eax, ebx
jne 0x100062a9
call fcn.1001af90
lea edx, [ebp]
push edx
push str.____TermService_is_hosted_in_a_custom_application__BeTwin__etc.____unsupported._ImagePath:_s
mov ecx, eax
call fcn.1001b4f0
add esp, 8
push 0x10049464
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x32
call fcn.10028c35
mov ecx, 0x1c
mov esi, str.SYSTEMCurrentControlSetServicesTermServiceParameters
lea edi, [ebp + 0x410]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push 0x20119
push ebx
lea edx, [ebp + 0x410]
push edx
push 0x80000002
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
je 0x1000630c
call fcn.1001af90
lea ecx, [ebp + 0x410]
push ecx
push esi
push str.CheckInstalled_open_Regist_error:_08x__s
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], esi
call fcn.10028c35
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0x208]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 2
push str.ServiceDll
push ebx
push eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
cmp esi, ebx
je 0x1000636e
call fcn.1001af90
lea ecx, [ebp + 0x410]
push ecx
push esi
push str.CheckInstalled_get_Regist_ServiceDll_value_error:_08x__s
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x34], esi
call fcn.10028c35
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x208]
push 0x104
push ecx
mov dword [ebp - 0x14], ebx
call fcn.100274cb
lea edx, [ebp + 0x208]
push str.termsrv.dll
push edx
call fcn.100274e2
mov esi, eax
lea eax, [ebp + 0x208]
push str.lckdesksrv.dll
push eax
call fcn.100274e2
add esp, 0x18
cmp esi, ebx
jne 0x10006419
cmp eax, ebx
jne 0x10006419
call fcn.1001af90
lea ecx, [ebp + 0x208]
push ecx
push str.____Another_third_party_TermService_library_is_installed._ServiceDll:_s
mov ecx, eax
call fcn.1001b4f0
add esp, 8
push 0x10049464
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], 0x32
call fcn.10028c35
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
mov eax, 0x100063fe
ret
mov edi, 0x50
cmp eax, ebx
je 0x10006424
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x1000643c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
xor ecx, ecx
cmp edi, ebx
sete cl
mov esi, ecx
push esi
push edi
push str.CheckInstalled_Rlt:_08x_IsInstalled:_d
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4e0]
xor ecx, ebp
call fcn.100269c5
add ebp, 0x4e4
mov esp, ebp
pop ebp
ret