Function at 0x101b8490
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov edx, dword [eax + 8]
mov ecx, ebx
call fcn.101b6be0
mov dword [ebp - 0x14], edx
mov esi, eax
push eax
push 0
push 0
call sub.KERNEL32.dll_CreateMutexW
mov edi, eax
test eax, eax
je 0x101b85ba
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
jne 0x101b86e1
mov eax, dword [0x103564a0]
mov edi, dword [0x1035648c]
movzx eax, byte [eax]
mov eax, dword [edi]
test eax, eax
jne 0x101b84f4
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101b871b
mov dword [edi], eax
push 0x14
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101b871b
mov dword [eax + 0x10], 0x73747369
mov dword [eax + 0xc], 0x78652079
mov dword [eax + 8], 0x64616572
mov dword [eax + 4], 0x6c612078
mov dword [eax], 0x6574756d
mov dword [ebp - 0x2c], eax
mov eax, dword [0x103564a0]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x28], 0x14
mov dword [ebp - 0x24], 0x14
mov esi, edi
movzx eax, byte [eax]
mov eax, dword [edi]
test eax, eax
jne 0x101b855b
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101b8729
mov dword [esi], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101b8729
mov edi, eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 8], eax
mov eax, dword [0x103564a0]
movsd xmm0, qword [ebp - 0x2c]
movsd qword [edi], xmm0
movzx eax, byte [eax]
mov eax, dword [esi]
test eax, eax
jne 0x101b859b
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101b8737
mov dword [esi], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101b8737
mov dword [eax], edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
jmp 0x101b8691
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0x103537e8
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0x10199330
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x44]
push ecx
push eax
call fcn.1001ac00
add esp, 8
mov eax, dword [ebp - 0x3c]
movsd xmm0, qword [ebp - 0x44]
mov dword [ebp - 0x10], ebx
mov ebx, dword [0x1035648c]
mov dword [ebp - 0x24], eax
mov eax, dword [0x103564a0]
movsd qword [ebp - 0x2c], xmm0
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x101b8637
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101b86f9
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101b86f9
mov edi, eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 8], eax
mov eax, dword [0x103564a0]
movsd xmm0, qword [ebp - 0x2c]
movsd qword [edi], xmm0
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x101b8677
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101b870a
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101b870a
mov dword [eax], edi
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
mov dword [eax + 4], fcn.1019a090
mov byte [eax + 8], 0x27
mov dword [edi + 4], eax
mov dword [edi], 3
cmp dword [ebp - 0x14], 0
mov word [esi], 0
je 0x101b86bf
mov eax, dword [0x1035648c]
push esi
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x101b86d7
mov eax, dword [0x1035648c]
push ebx
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, edi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
mov edi, eax
mov byte [eax], 4
cmp dword [ebp - 0x14], 0
mov word [esi], 0
jne 0x101b86b0
jmp 0x101b86bf
mov dword [ebp - 0x10], esi
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101b8743
mov dword [ebp - 0x10], esi
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101b8743
push 0x14
push 1
call fcn.1001a7e0
add esp, 8
jmp 0x101b8743
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101b8743
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
ud2