Function at 0x100ecdc0
Capabilities:
Check mutex on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10125536
mov eax, dword fs:[0]
push eax
mov eax, 0x105c
call fcn.10115e40
mov eax, dword [0x1016e750]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1038], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1040], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1034], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1048], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x104c], eax
xor eax, eax
mov dword [ebp - 4], 0
push 0x800
push eax
mov word [ebp - 0x1020], ax
lea eax, [ebp - 0x101e]
push eax
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x1044], 0
call fcn.101078f0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x818], ax
push 0x800
push eax
lea eax, [ebp - 0x816]
push eax
call fcn.101078f0
add esp, 0xc
mov dword [ebp - 0x105c], 0x401
lea ecx, [ebp - 0x1024]
push 0x1012ec60
call fcn.10023fc0
push 0x1012ec60
lea ecx, [ebp - 0x1028]
mov byte [ebp - 4], 1
call fcn.10023fc0
mov dword [ebp - 0x1068], 0
mov dword [ebp - 0x1064], 0
mov dword [ebp - 0x1060], 0
mov byte [ebp - 4], 3
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100ecee6
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x103c], esi
mov byte [ebp - 4], 4
test bl, 0x14
jne 0x100ecf1a
add esi, 0xfffffff0
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov eax, ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jmp 0x100ed2f9
lea eax, [ebp - 0x102c]
push eax
push edi
mov edi, dword [sym.imp.ole32.dll_StringFromCLSID]
call edi
lea eax, [ebp - 0x1044]
push eax
push dword [ebp - 0x1038]
call edi
push dword [ebp - 0x102c]
lea eax, [ebp - 0x818]
push str.SoftwareClassesCLSID_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x105c]
push eax
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebp - 0x818]
push eax
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push ebx
push dword [ebp - 0x1044]
lea eax, [ebp - 0x1020]
push eax
push dword [ebp - 0x102c]
lea eax, [ebp - 0x1030]
push dword [ebp + 8]
push str.__s:_clsid_s___s__riid_s_dwClsContext_08X
push eax
call fcn.10044f30
add esp, 0x1c
mov byte [ebp - 4], 5
mov ecx, str.hkCOM
mov edx, dword [ebp - 0x1030]
call fcn.10043b30
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x1030]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100ecfd9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x102c]
lea eax, [ebp - 0x1028]
push eax
lea edx, [ebp - 0x1024]
call fcn.100ec480
add esp, 4
dec eax
je 0x100ed061
dec eax
jne 0x100ed2cb
push dword [ebp - 0x1028]
lea eax, [ebp - 0x1030]
push dword [ebp - 0x1024]
push dword [ebp + 8]
push str.___s:_virtual_COM_ServerExe_s__ServerArgs_s
push eax
call fcn.10044f30
add esp, 0x14
mov byte [ebp - 4], 0xa
mov ecx, str.hkCOM
mov edx, dword [ebp - 0x1030]
call fcn.10043b30
mov byte [ebp - 4], 4
mov ecx, ebx
mov edx, dword [ebp - 0x1030]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ed2cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100ed2cb
push dword [ebp - 0x1028]
lea eax, [ebp - 0x1038]
push dword [ebp - 0x1024]
push dword [ebp + 8]
push str.___s:_virtual_COM_ServerExe_s__ServerArgs_s
push eax
call fcn.10044f30
add esp, 0x14
mov byte [ebp - 4], 6
mov ecx, str.hkCOM
mov edx, dword [ebp - 0x1038]
call fcn.10043b30
mov byte [ebp - 4], 4
mov ecx, ebx
mov edx, dword [ebp - 0x1038]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ed0bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1034]
mov dword [eax], 1
mov eax, dword [0x1017070c]
cmp eax, 0xffffffff
jne 0x100ed0e2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x1017070c], eax
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1024]
push eax
lea ecx, [ebp - 0x103c]
call fcn.100244b0
push 0
push 0
push ecx
mov ecx, dword [ebp - 0x103c]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x1058]
mov edx, 1
mov dword [esi], eax
call fcn.1003d650
add esp, 0xc
push eax
lea ecx, [ebp - 0x103c]
mov byte [ebp - 4], 7
call fcn.100244b0
mov byte [ebp - 4], 4
mov ecx, ebx
mov edx, dword [ebp - 0x1058]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ed160
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x1024]
mov eax, 0x5c
movzx edi, ax
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x1054]
mov edx, edi
mov dword [esi], eax
call fcn.10045200
add esp, 4
mov ecx, dword [eax]
call fcn.100ecd20
mov esi, dword [ebp - 0x1054]
mov edi, eax
add esi, 0xfffffff0
mov edx, ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100ed1b6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x100ed22c
push ecx
mov ecx, dword [ebp - 0x1024]
mov edi, 0x5c
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x1050]
mov edx, edi
mov dword [esi], eax
call fcn.10045200
mov ecx, esp
mov byte [ebp - 4], 8
push dword [eax]
push str.COM_Server_already_running:__s
push ecx
call fcn.10044f30
add esp, 0xc
call fcn.100ec410
mov byte [ebp - 4], 4
add esp, 4
mov edx, dword [ebp - 0x1050]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ed2b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100ed2b9
mov edi, dword [ebp - 0x1040]
mov eax, str.non_elevated
test edi, edi
mov ecx, str.elevated
cmove ecx, eax
push ecx
mov eax, esp
push ecx
push dword [ebp - 0x1024]
push str.Instantiating_COM_Local_Server:__s___s_
push eax
call fcn.10044f30
add esp, 0x10
call fcn.100ec410
mov ecx, dword [ebp - 0x1028]
mov esi, esp
add ecx, 0xfffffff0
mov dword [ebp - 0x1040], esp
call fcn.10024750
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 9
mov esi, esp
mov ecx, dword [ebp - 0x1024]
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
mov byte [ebp - 4], 4
call fcn.100ec980
mov ecx, dword [ebp - 0x104c]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0x100ed2b9
mov eax, dword [ebp - 0x1048]
mov dword [eax], 1
push dword [0x1017070c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [ebp - 0x103c]
push dword [ebp - 0x1044]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call edi
push dword [ebp - 0x102c]
call edi
call fcn.100f5aa0
add esi, 0xfffffff0
mov byte [ebp - 4], 3
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ed303
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0x1028]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ed326
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x1024]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ed349
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x100ed36a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10103392
mov esp, ebp
pop ebp
ret