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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100863f6
mov eax, dword fs:[0]
push eax
mov eax, 0x1068
call fcn.10074c80
mov eax, dword [section..data]
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 dword [ebp - 0x1024], edx
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x1040], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x104c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1044], ebx
mov dword [ebp - 0x1058], eax
xor eax, eax
mov dword [ebp - 4], 0
push 0x800
push eax
mov word [ebp - 0x818], ax
lea eax, [ebp - 0x816]
push eax
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1048], 0
call fcn.1006df00
add esp, 0xc
xor eax, eax
mov word [ebp - 0x1020], ax
push 0x800
push eax
lea eax, [ebp - 0x101e]
push eax
call fcn.1006df00
add esp, 0xc
mov dword [ebp - 0x1054], 0x401
lea ecx, [ebp - 0x102c]
push 0x1008fa88
call fcn.10022bb0
push 0x1008fa88
lea ecx, [ebp - 0x1038]
mov byte [ebp - 4], 1
call fcn.10022bb0
mov dword [ebp - 0x1070], 0
mov dword [ebp - 0x106c], 0
mov dword [ebp - 0x1068], 0
mov byte [ebp - 4], 3
call fcn.10021470
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x10056d21
push 0x80004005
call fcn.10021340
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1034], esi
mov byte [ebp - 4], 4
mov dword [ebx], 0
mov ebx, dword [ebp - 0x1024]
test bl, 0x14
jne 0x10056d61
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 0x100572c0
lea eax, [ebp - 0x1028]
push eax
push edi
mov edi, dword [sym.imp.ole32.dll_StringFromCLSID]
call edi
lea eax, [ebp - 0x1048]
push eax
push dword [ebp - 0x1040]
call edi
push dword [ebp - 0x1028]
lea eax, [ebp - 0x1020]
push str.SoftwareClassesCLSID_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x1054]
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x1020]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push ebx
push dword [ebp - 0x1048]
lea eax, [ebp - 0x818]
push eax
push dword [ebp - 0x1028]
lea eax, [ebp - 0x103c]
push dword [ebp + 8]
push str.__s:_clsid_s___s__riid_s_dwClsContext_08X
push eax
call fcn.1003a800
add esp, 0x1c
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x103c]
call fcn.100394f0
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x103c]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10056e1b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1028]
lea eax, [ebp - 0x1038]
push eax
lea edx, [ebp - 0x102c]
call fcn.10055ab0
add esp, 4
dec eax
je 0x10056e9e
dec eax
jne 0x10057297
push dword [ebp - 0x1038]
lea eax, [ebp - 0x103c]
push dword [ebp - 0x102c]
push dword [ebp + 8]
push str.___s:_virtual_COM_ServerExe_s__ServerArgs_s
push eax
call fcn.1003a800
add esp, 0x14
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x103c]
call fcn.100394f0
mov byte [ebp - 4], 4
mov ecx, ebx
mov edx, dword [ebp - 0x103c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10057297
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10057297
push dword [ebp - 0x1038]
lea eax, [ebp - 0x1040]
push dword [ebp - 0x102c]
push dword [ebp + 8]
push str.___s:_virtual_COM_ServerExe_s__ServerArgs_s
push eax
call fcn.1003a800
add esp, 0x14
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x1040]
call fcn.100394f0
mov byte [ebp - 4], 4
mov ecx, ebx
mov edx, dword [ebp - 0x1040]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10056ef3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x14
call fcn.1006b29d
add esp, 4
test eax, eax
je 0x10056f0c
mov ecx, eax
call fcn.10057350
mov edx, eax
jmp 0x10056f0e
xor edx, edx
mov edi, dword [ebp - 0x1044]
mov eax, dword [ebp - 0x1028]
mov dword [edi], edx
test eax, eax
jne 0x10056f24
xor ecx, ecx
jmp 0x10056f49
mov ecx, eax
lea eax, [ecx + 2]
mov dword [ebp - 0x1024], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10056f30
sub ecx, dword [ebp - 0x1024]
mov eax, dword [ebp - 0x1028]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.10023530
call fcn.100567b0
mov ecx, dword [edi]
mov dword [ecx + 0x10], eax
mov eax, dword [0x100af648]
cmp eax, 0xffffffff
jne 0x10056f77
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x100af648], eax
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x102c]
lea edi, [esi - 0x10]
lea ecx, [eax - 0x10]
cmp ecx, edi
je 0x10056fe6
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x10056fd1
mov edx, dword [ecx]
cmp edx, dword [edi]
jne 0x10056fd1
call fcn.100236e0
mov dword [ebp - 0x1024], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x10056fc6
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1024]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1034], esi
jmp 0x10056fe6
push dword [eax - 0xc]
lea ecx, [ebp - 0x1034]
push eax
call fcn.10023530
mov esi, dword [ebp - 0x1034]
push 0
push 0
push ecx
lea ecx, [esi - 0x10]
mov edi, esp
call fcn.100236e0
add eax, 0x10
lea ecx, [ebp - 0x1050]
mov edx, 1
mov dword [edi], eax
call fcn.10032570
add esp, 0xc
mov byte [ebp - 4], 7
lea edi, [esi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x10057070
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x1005705b
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x1005705b
call fcn.100236e0
mov dword [ebp - 0x1024], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x10057050
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1024]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1034], esi
jmp 0x10057070
push dword [edx - 0xc]
lea ecx, [ebp - 0x1034]
push edx
call fcn.10023530
mov esi, dword [ebp - 0x1034]
mov byte [ebp - 4], 4
mov ecx, ebx
mov edx, dword [ebp - 0x1050]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10057093
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x102c]
mov ebx, 0x5c
mov edi, esp
lea ecx, [ecx - 0x10]
call fcn.100236e0
add eax, 0x10
lea ecx, [ebp - 0x1060]
mov edx, ebx
mov dword [edi], eax
call fcn.1003a890
add esp, 4
mov edi, dword [ebp - 0x1044]
mov byte [ebp - 4], 8
push eax
mov ecx, dword [edi]
add ecx, 4
call fcn.100232f0
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x1060]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100570f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, 0x1009c760
mov ecx, 0x100b2d24
call fcn.1002d580
movzx ecx, al
mov eax, dword [edi]
mov dword [eax + 0xc], ecx
mov eax, dword [edi]
cmp dword [eax + 0xc], 0
jne 0x1005728b
push ecx
mov ecx, esp
push str.CAMEYO_COMCLSIDCHECK
call fcn.10022bb0
mov edx, 0x104
lea ecx, [ebp - 0x105c]
call fcn.1003dc20
add esp, 4
mov edx, 0x1008f1e4
mov ecx, eax
call fcn.10023020
mov edx, dword [ebp - 0x105c]
mov ecx, ebx
add edx, 0xfffffff0
movzx eax, al
mov dword [ebp - 0x1024], eax
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10057170
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x1024], 0
mov ecx, dword [edi]
je 0x10057191
push dword [ecx + 4]
mov edx, dword [ebp - 0x1028]
mov ecx, dword [ecx + 0x10]
call fcn.100569d0
add esp, 4
jmp 0x1005719c
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0x10]
call fcn.10056b80
mov ecx, dword [edi]
mov edx, dword [ebp - 0x1028]
push dword [ecx + 4]
mov ecx, dword [ecx + 0x10]
call fcn.100569d0
add esp, 4
test eax, eax
je 0x100571d9
mov eax, dword [edi]
push ecx
mov ecx, esp
push dword [eax + 4]
push str.COM_Server_already_running:__s
push ecx
call fcn.1003a800
add esp, 0xc
call fcn.10021810
add esp, 4
jmp 0x1005728b
cmp dword [ebp - 0x104c], 0
mov eax, str.non_elevated
mov ecx, str.elevated
cmove ecx, eax
push ecx
mov eax, esp
push ecx
push dword [ebp - 0x102c]
push str.Instantiating_COM_Local_Server:__s___s_
push eax
call fcn.1003a800
add esp, 0x10
call fcn.10021810
mov ecx, dword [ebp - 0x1038]
mov edi, esp
add ecx, 0xfffffff0
mov dword [ebp - 0x1030], esp
call fcn.100236e0
add eax, 0x10
mov dword [edi], eax
push ecx
mov byte [ebp - 4], 9
mov edi, esp
mov ecx, dword [ebp - 0x102c]
lea ecx, [ecx - 0x10]
call fcn.100236e0
mov ecx, dword [ebp - 0x104c]
lea edx, [ebp - 0x1030]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 4
call fcn.100563f0
mov ecx, dword [ebp - 0x1058]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0x1005728b
cmp dword [ebp - 0x1024], eax
je 0x1005727c
mov edx, dword [ebp - 0x1030]
mov ecx, dword [ebp - 0x1028]
call fcn.10056ac0
mov edi, dword [ebp - 0x1044]
mov eax, dword [edi]
mov dword [eax + 8], 1
push dword [0x100af648]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x1048]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call edi
push dword [ebp - 0x1028]
call edi
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 0x100572ca
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 - 0x1038]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100572ed
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 - 0x102c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10057310
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 0x10057331
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.1006abfd
mov esp, ebp
pop ebp
ret