Function at 0x77d20c84
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 0x77d20cb8
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 [0x77d34710], esi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
jne 0x77d20cdf
push esi
push esi
push 1
push esi
call ebx
cmp eax, esi
mov dword [0x77d34710], eax
jne 0x77d20cdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [0x77d34714], esi
jne 0x77d20d00
push esi
push esi
push 1
push esi
call ebx
cmp eax, esi
mov dword [0x77d34714], eax
jne 0x77d20d00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [0x77d34718], esi
jne 0x77d20d42
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
cmp ebx, esi
jne 0x77d20d22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x77d20d42
push esi
push ebx
push 0x77d34718
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x77d20d3c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x77d20d42
mov dword [0x77d34718], ebx
cmp dword [ebp - 4], esi
jne 0x77d20ca5
mov eax, dword [0x77d3471c]
cmp eax, esi
je 0x77d20d8c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x77d20d7a
push dword [0x77d3471c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x77d3471c], esi
mov dword [ebp - 4], esi
jmp 0x77d20d8c
cmp eax, 0x102
jne 0x77d20d84
mov dword [ebp - 4], esi
cmp dword [0x77d3471c], esi
jne 0x77d20dae
push esi
push esi
push esi
push 0x77d20aad
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x77d3471c], eax
jne 0x77d20dae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x77d20ca5
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 0x77ca9840
call fcn.77ca96e5
mov esi, eax
test esi, esi
jne 0x77d20dfb
mov dword [ebp - 4], 0xe
jmp 0x77d20ca5
lea eax, [esi + 0x18]
mov dword [esi + 4], eax
push dword [edi + 4]
push ebx
push eax
call fcn.77ca4bd4
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.77ca4bd4
mov eax, dword [edi + 0xc]
xor edx, edx
mov ecx, 0xc8
div ecx
test eax, eax
mov dword [esi + 0xc], eax
jne 0x77d20e39
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 [0x77d34718]
test eax, eax
je 0x77d20e6e
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.77ca96ca
jmp 0x77d20e71
push 0x15
pop eax
test eax, eax
jne 0x77d20ea7
mov eax, dword [0x77d34720]
mov dword [esi], eax
push dword [0x77d34718]
mov dword [0x77d34720], esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esi], 0
jne 0x77d20e9f
push dword [0x77d34710]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 8], esi
jmp 0x77d20cae
push eax
jmp 0x77d20ca8