Function at 0x40e7d7
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4490b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00413930
pop ecx
pop ecx
lea ecx, [ebp - 0x208]
call fcn.0040e1f4
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.0040e202
mov edi, eax
cmp esi, edi
je 0x40e84a
mov ebx, 0x43836c
push esi
lea ecx, [ebp - 0x28]
call fcn.004037e0
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.0040de90
pop ecx
pop ecx
test al, al
jne 0x40e86b
lea ecx, [ebp - 0x28]
call fcn.0040da80
add esi, 0x18
cmp esi, edi
jne 0x40e822
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x208]
call fcn.0040e09d
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004183d1
leave
ret 0x10
push ebx
call fcn.0041bac4
pop ecx
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0040e2d2
sub eax, esi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040ddd6
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.0040da40
push eax
call fcn.00412e40
pop ecx
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.0040da80
lea ecx, [ebp - 0x28]
call fcn.0040da80
test esi, esi
je 0x40e84a
push 0x438378
lea ecx, [ebp - 0x40]
call fcn.0040dfca
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00403290
lea ecx, [ebp - 0x40]
call fcn.0040da80
lea ecx, [ebp - 0xd0]
call fcn.0040da40
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
xor ebx, ebx
push eax
push ebx
push 0x100000
call esi
mov edi, eax
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x1f4], edi
call fcn.0040da40
push eax
push ebx
push 0x100002
call esi
mov esi, ebx
mov dword [ebp - 0x1f0], eax
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0x1e4], esi
call fcn.0040da40
push eax
push 0x200
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1fc], eax
test eax, eax
je 0x40e961
push 0x200
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x1e4], eax
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40ed38
cmp dword [ebp - 0x1f0], ebx
je 0x40ed30
test esi, esi
je 0x40ed30
push 0xfa0
push dword [ebp - 0x1f4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40e9c0
lea ecx, [ebp - 0xa0]
call fcn.0040da40
push eax
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x40ed2a
push eax
call edi
jmp 0x40e983
test eax, eax
jne 0x40e983
push 0x1c0
call fcn.0041838e
mov esi, eax
mov dword [ebp - 0x1ec], esi
pop ecx
test esi, esi
je 0x40e9fc
push 0x1c0
push ebx
push esi
call fcn.00419980
add esp, 0xc
mov ecx, esi
push ebx
push 1
call fcn.0040f000
mov dword [esi], fcn.00403030
jmp 0x40ea04
mov esi, ebx
mov dword [ebp - 0x1ec], ebx
push 0xffffffffffffffff
push dword [ebp - 0x1e4]
mov ecx, esi
mov edi, ebx
call fcn.004111e0
mov ecx, esi
call fcn.0040dbb0
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 0x1d9], bl
test eax, eax
je 0x40ecfd
push 0x200
push ebx
push dword [ebp - 0x1e4]
call fcn.00419980
add esp, 0xc
lea ecx, [ebp - 0x88]
call fcn.004037c0
push dword [ebp - 0x1e0]
lea eax, [ebp - 0x70]
push eax
call fcn.00413010
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
call fcn.0040da80
push 0x444cc8
push dword [ebp - 0x1e0]
call fcn.0041bda0
pop ecx
pop ecx
test eax, eax
jne 0x40ea8a
mov byte [ebp - 0x1d9], 1
jmp 0x40ec84
push 0x444cd8
push dword [ebp - 0x1e0]
call fcn.0041bda0
pop ecx
pop ecx
test eax, eax
jne 0x40eac5
push dword [ebp - 0x1e0]
call fcn.0040dbd0
pop ecx
mov edi, eax
call fcn.00471de0
push eax
push 0x444ce8
mov ecx, edi
call fcn.0040db50
jmp 0x40ec84
push 0x444cf0
push dword [ebp - 0x1e0]
call fcn.0041bda0
pop ecx
pop ecx
test eax, eax
jne 0x40ec84
push 0x444cd0
mov ecx, esi
call fcn.0040db80
push 0x444d04
mov ecx, esi
mov dword [ebp - 0x1e8], eax
call fcn.0040db80
cmp dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1f8], eax
je 0x40ec84
test eax, eax
je 0x40ec84
lea ecx, [ebp - 0x40]
call fcn.004037c0
lea ecx, [ebp - 0x58]
call fcn.004037c0
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x1e8]
call fcn.00413090
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x1f8]
call fcn.00413090
push dword [ebp - 0x1e0]
call fcn.0040dbd0
mov edi, eax
lea eax, [ebp - 0x28]
push 0x16
push ebx
push eax
mov dword [ebp - 0x1e8], edi
call fcn.00419980
add esp, 0x20
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x58]
push ebx
push eax
call fcn.0040da40
push eax
lea ecx, [ebp - 0x40]
call fcn.0040da40
push eax
call fcn.0046d43b
mov esi, eax
lea eax, [ebp - 0x10]
push 0xa
push eax
push esi
call fcn.00424c99
add esp, 0xc
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push 0x444ce8
call fcn.0040db20
cmp esi, 3
jne 0x40ec6e
jmp 0x4689fa
lea ecx, [ebp - 0x58]
call fcn.0040da80
lea ecx, [ebp - 0x40]
call fcn.0040da80
mov esi, dword [ebp - 0x1ec]
test edi, edi
je 0x40ecf2
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x1d8]
call fcn.0040f240
mov eax, dword [edi]
lea ecx, [ebp - 0x1d8]
push ecx
mov ecx, edi
call dword [eax + 0x38]
lea ecx, [ebp - 0x108]
call fcn.004036b0
mov dword [ebp - 0x1ec], eax
test eax, eax
je 0x40ece7
push eax
call fcn.0041bf30
pop ecx
cmp eax, 0x200
jg 0x40ece7
push dword [ebp - 0x1ec]
call fcn.0041bf30
push eax
push dword [ebp - 0x1ec]
push dword [ebp - 0x1e4]
call fcn.00419400
add esp, 0x10
lea ecx, [ebp - 0x1d8]
call fcn.00403070
lea ecx, [ebp - 0x88]
call fcn.0040da80
push dword [ebp - 0x1f0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call fcn.0040dc90
push edi
call fcn.0040dc90
cmp byte [ebp - 0x1d9], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
pop ecx
je 0x40e983
mov esi, dword [ebp - 0x1e4]
push dword [ebp - 0x1f4]
call edi
mov eax, dword [ebp - 0x1f0]
test eax, eax
je 0x40ed45
push eax
call edi
test esi, esi
je 0x40ed4c
push esi
call edi
mov eax, dword [ebp - 0x1fc]
test eax, eax
je 0x40ed59
push eax
call edi
lea ecx, [ebp - 0xe8]
call fcn.00403120
jmp 0x40e84d