Function at 0x77d1533c
Capabilities:
Check mutex on windows
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp edi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
jne 0x77d15370
mov dword [ebp - 4], 0x57
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [0x77d28748], esi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
jne 0x77d15397
push esi
push esi
push 1
push esi
call ebx
cmp eax, esi
mov dword [0x77d28748], eax
jne 0x77d15397
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [0x77d2874c], esi
jne 0x77d153b8
push esi
push esi
push 1
push esi
call ebx
cmp eax, esi
mov dword [0x77d2874c], eax
jne 0x77d153b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [0x77d28750], esi
jne 0x77d153fa
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
cmp ebx, esi
jne 0x77d153da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x77d153fa
push esi
push ebx
push 0x77d28750
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x77d153f4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x77d153fa
mov dword [0x77d28750], ebx
cmp dword [ebp - 4], esi
jne 0x77d1535d
mov eax, dword [0x77d28754]
cmp eax, esi
je 0x77d15444
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x77d15432
push dword [0x77d28754]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x77d28754], esi
mov dword [ebp - 4], esi
jmp 0x77d15444
cmp eax, 0x102
jne 0x77d1543c
mov dword [ebp - 4], esi
cmp dword [0x77d28754], esi
jne 0x77d15466
push esi
push esi
push esi
push 0x77d15165
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x77d28754], eax
jne 0x77d15466
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x77d1535d
push dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
push dword [edi + 8]
lea ebx, [eax + eax + 2]
call esi
lea eax, [eax + eax + 2]
mov dword [ebp + 8], eax
lea eax, [eax + ebx + 0x1f]
and eax, 0xfffffff8
push eax
push 0x31a
push 0x77c9e5f8
call fcn.77c9e393
mov esi, eax
test esi, esi
jne 0x77d154b3
mov dword [ebp - 4], 0xe
jmp 0x77d1535d
lea eax, [esi + 0x18]
mov dword [esi + 4], eax
push dword [edi + 4]
push ebx
push eax
call fcn.77c9e1f9
mov eax, dword [esi + 4]
add ebx, eax
mov dword [esi + 8], ebx
push dword [edi + 8]
push dword [ebp + 8]
push ebx
call fcn.77c9e1f9
mov eax, dword [edi + 0xc]
xor edx, edx
mov ecx, 0xc8
div ecx
test eax, eax
mov dword [esi + 0xc], eax
jne 0x77d154f1
mov dword [esi + 0xc], 1
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [0x77d28750]
test eax, eax
je 0x77d15526
or dword [ebp - 0xc], 0xffffffff
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
mov dword [ebp - 0x10], 0xffc2f700
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
push eax
call fcn.77c9e871
jmp 0x77d15529
push 0x15
pop eax
test eax, eax
jne 0x77d1555f
mov eax, dword [0x77d28758]
mov dword [esi], eax
push dword [0x77d28750]
mov dword [0x77d28758], esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esi], 0
jne 0x77d15557
push dword [0x77d28748]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 8], esi
jmp 0x77d15366
push eax
jmp 0x77d15360