Function at 0x10034390
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x1003a084]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x12c], 1
je 0x10034584
push 0x27
lea ecx, [ebp - 0x128]
push ecx
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x100345c2
mov edi, dword [ebp + 0x10]
mov eax, 0x10009c50
test edi, edi
jne 0x100343ed
mov eax, 0x10009c90
lea ecx, [ebp - 0x128]
push ecx
push eax
lea eax, [ebp - 0xd8]
push 0x65
push eax
call fcn.10034ef0
add esp, 0x10
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x24], eax
test eax, eax
jne 0x10034450
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x10034450
push 0
xor edx, edx
lea ecx, [ebp - 0xd8]
call fcn.10036bf0
test eax, eax
js 0x10034450
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x24], eax
cmp dword [esi + 0x24], 0
je 0x100345c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1003446f
mov ecx, dword [esi + 0x24]
call fcn.100368c0
mov eax, 0x10009cd0
test edi, edi
jne 0x1003447d
mov eax, 0x10009d18
lea ecx, [ebp - 0x128]
push ecx
push eax
lea eax, [ebp - 0xd8]
push 0x65
push eax
call fcn.10034ef0
add ebx, dword [0x1003a490]
lea eax, [ebp - 0xd8]
add esp, 0x10
push eax
push ebx
push 0
push 0x4000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x100344f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100344f6
push 1
mov edx, ebx
lea ecx, [ebp - 0xd8]
call fcn.10036bf0
test eax, eax
js 0x100344f6
lea eax, [ebp - 0xd8]
push eax
push ebx
push 0
push 0x4000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x20], eax
cmp dword [esi + 0x20], 0
je 0x100345c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10034521
mov ecx, dword [esi + 0x20]
call fcn.10030782
mov dword [ebp - 0x12c], 1
jmp 0x1003452b
mov dword [ebp - 0x12c], 0
push 0
push 0
push 0
push 0xf001f
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x134], edi
test edi, edi
je 0x100345c2
mov eax, dword [0x1003a490]
push 4
push 0x1000
add eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100345c2
mov edx, dword [0x1003a490]
lea eax, [edi + 4]
lea ecx, [edi + 8]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x134]
add edi, edx
mov dword [esi + 0x10], edi
jmp 0x100345eb
push 4
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x100345c2
push 4
push 0x1000
push dword [0x1003a490]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x100345d7
push 0x8000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037970
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [0x1003a490]
lea eax, [esi + 8]
mov dword [ebp - 0x130], eax
lea ecx, [esi + 0xc]
mov eax, esi
cmp dword [ebp - 0x12c], 0
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x130]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 4], ebx
je 0x1003466b
mov eax, dword [esi + 0x14]
mov dword [eax], edx
mov dword [edi], 7
mov dword [edx + edi - 4], 7
add edx, 0xfffffff8
mov eax, dword [esi + 0x18]
mov dword [eax], 4
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
mov eax, dword [esi + 0x10]
mov dword [ecx + eax], edx
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + edx]
add eax, ecx
mov dword [eax + edx - 4], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
mov eax, dword [esi + 0x10]
mov dword [ecx + eax + 4], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
mov eax, dword [esi + 0x10]
mov dword [ecx + eax + 8], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10037970
mov esp, ebp
pop ebp
ret 0x10