Function at 0x101d6f20
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.101d5580
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 0x101d704a
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
jne 0x101d7171
mov eax, dword [0x1044f00c]
mov edi, dword [0x1044eff8]
movzx eax, byte [eax]
mov eax, dword [edi]
test eax, eax
jne 0x101d6f84
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d71ab
mov dword [edi], eax
push 0x14
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d71ab
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 [0x1044f00c]
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 0x101d6feb
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d71b9
mov dword [esi], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d71b9
mov edi, eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 8], eax
mov eax, dword [0x1044f00c]
movsd xmm0, qword [ebp - 0x2c]
movsd qword [edi], xmm0
movzx eax, byte [eax]
mov eax, dword [esi]
test eax, eax
jne 0x101d702b
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d71c7
mov dword [esi], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d71c7
mov dword [eax], edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
jmp 0x101d7121
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0x10443adc
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0x101a2bc0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x44]
push ecx
push eax
call fcn.1001b0a0
add esp, 8
mov eax, dword [ebp - 0x3c]
movsd xmm0, qword [ebp - 0x44]
mov dword [ebp - 0x10], ebx
mov ebx, dword [0x1044eff8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x1044f00c]
movsd qword [ebp - 0x2c], xmm0
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x101d70c7
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d7189
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d7189
mov edi, eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 8], eax
mov eax, dword [0x1044f00c]
movsd xmm0, qword [ebp - 0x2c]
movsd qword [edi], xmm0
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x101d7107
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d719a
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d719a
mov dword [eax], edi
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
mov dword [eax + 4], fcn.101a4820
mov byte [eax + 8], 0x27
mov dword [edi + 4], eax
mov dword [edi], 3
cmp dword [ebp - 0x14], 0
mov word [esi], 0
je 0x101d714f
mov eax, dword [0x1044eff8]
push esi
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x101d7167
mov eax, dword [0x1044eff8]
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 0x101d7140
jmp 0x101d714f
mov dword [ebp - 0x10], esi
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101d71d3
mov dword [ebp - 0x10], esi
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101d71d3
push 0x14
push 1
call fcn.1001ac80
add esp, 8
jmp 0x101d71d3
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101d71d3
push 0xc
push 4
call fcn.1001ac80
add esp, 8
ud2