Function at 0x10034690
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x1003a084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov esi, ecx
mov ebx, 0x200000
push 0x27
lea ecx, [ebp - 0x128]
mov edi, 1
push ecx
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x10034949
nop
mov eax, 0x10009c50
test edi, edi
jne 0x100346de
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 0x1003474f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1003474f
push 0
xor edx, edx
lea ecx, [ebp - 0xd8]
call fcn.10036bf0
test eax, eax
js 0x10034741
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
jne 0x10034759
test edi, edi
je 0x1003474f
xor edi, edi
jmp 0x100346d0
cmp dword [esi + 0x24], 0
je 0x10034949
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1003476e
mov ecx, dword [esi + 0x24]
call fcn.100368c0
mov eax, 0x10009cd0
test edi, edi
jne 0x1003477c
mov eax, 0x10009d18
lea ecx, [ebp - 0x128]
push ecx
push eax
push 0x10009d58
lea eax, [ebp - 0xd8]
push 0x65
push eax
call fcn.10034ef0
add ebx, dword [0x1003a490]
lea eax, [ebp - 0xd8]
add esp, 0x14
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 0x1003481d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1003481d
push 1
mov edx, ebx
lea ecx, [ebp - 0xd8]
call fcn.10036bf0
test eax, eax
js 0x100347fa
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
jne 0x10034827
test edi, edi
je 0x1003481d
push dword [esi + 0x24]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub ebx, dword [0x1003a490]
mov dword [esi + 0x24], edi
jmp 0x100346d0
cmp dword [esi + 0x20], 0
je 0x10034949
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10034848
mov ecx, dword [esi + 0x20]
call fcn.10030782
mov dword [ebp - 0x12c], 1
jmp 0x10034852
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 - 0x130], edi
test edi, edi
je 0x10034949
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 0x10034949
mov edx, dword [0x1003a490]
lea ecx, [edi + 4]
lea eax, [edi + 8]
mov dword [ebp - 0x134], edx
add edi, edx
cmp dword [ebp - 0x12c], 0
mov edx, dword [ebp - 0x130]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edx
mov edx, dword [ebp - 0x134]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 4], ebx
je 0x10034931
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 eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037970
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10037970
mov esp, ebp
pop ebp
ret 0xc