Function at 0x40279d
Capabilities:
Check mutex on windows

Disassembly:
push 0x64
push 0x40bd98
call fcn.00409474
mov byte [ebp - 0x74], 0
push 0x31
xor ebx, ebx
push ebx
lea eax, [ebp - 0x73]
push eax
call fcn.004074c0
add esp, 0xc
mov dword [ebp - 0x40], ebx
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov esi, 0xb1c
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x4027ee
xor eax, eax
jmp 0x402a5b
push ebx
push 0xc00
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x40280b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4027e7
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x34], ebx
mov ecx, 0x2c7
mov esi, dword [ebp + 8]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push dword [ebx + 4]
push str.my_thr_mut__d
push 0x32
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
cmp dword [ebx + 4], 5
je 0x402871
lea eax, [ebp - 0x74]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402871
push dword [ebp - 0x28]
jmp 0x402803
push 1
push 8
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
call esi
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], 0
movzx eax, word [ebx + 0x10c]
lea ecx, [ebx + 0x91c]
lea edx, [ebx + 0x10e]
lea edi, [ebp - 0x30]
push edi
push ecx
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x20]
push edx
push eax
lea eax, [ebx + 0xc]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00402658
add esp, 0x1c
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
dec eax
mov ecx, 0x18e
cmp ecx, eax
sbb eax, eax
inc eax
movzx ecx, word [ebx + 4]
cmp cx, 2
jne 0x40295c
xor edi, edi
cmp eax, edi
jne 0x40295c
push dword [ebp - 0x1c]
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, dword [ebx + 0x918]
jge 0x40295c
push 1
push 8
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
movzx eax, word [ebx + 0x10c]
mov ecx, dword [edi*4 + 0x40ec7c]
push 0
lea edx, [ebx + 0x91c]
push edx
lea edx, [ebp - 0x24]
push edx
push dword [ebp - 0x20]
lea edx, [ebx + 0x10e]
push edx
push eax
push ecx
mov eax, dword [ebp - 0x1c]
call fcn.00402658
add esp, 0x1c
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x40295c
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
jmp 0x4028ed
cmp dword [ebp - 0x1c], 0
je 0x402a27
mov eax, dword [ebx + 4]
mov dword [ebp - 0x40], eax
mov edi, dword [ebp - 0x24]
cmp edi, 1
jbe 0x4029ff
cmp dword [ebx + 4], 5
jne 0x4029e0
lea eax, [edi + 0x1782]
push eax
push 8
push dword [ebp - 0x20]
call esi
mov esi, eax
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 4], eax
push edi
push dword [ebp - 0x1c]
lea eax, [esi + 0x778]
push eax
call fcn.004060e0
add esp, 0xc
mov dword [ebp - 0x38], esi
add edi, 0x1778
mov dword [ebp - 0x3c], edi
lea eax, [ebp - 0x40]
push eax
push 0
push 0x4a
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
push 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x402a27
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x40]
push eax
push 0
push 0x4a
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x402a27
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
jmp 0x402a27
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x402a3b
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, dword [ebp - 0x2c]
call fcn.004094af
ret 4