Function at 0x40a1c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41baea
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push esi
push edi
mov eax, dword [0x423018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
xor ebx, ebx
push 0x58
lea eax, [ebp - 0xb8]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [esi + 1], edi
je 0x40a218
mov esi, 0x601
jmp 0x40a4af
add esi, 5
cmp edi, 0x15
jne 0x40a20e
test byte [0x423ce4], 1
mov edi, 1
jne 0x40a2a6
or dword [0x423ce4], edi
mov dword [ebp - 4], ebx
push 0x8c
mov dword [0x423cd8], ebx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x40a39b
mov dword [0x423cd4], eax
mov dword [eax], eax
mov eax, dword [0x423cd4]
mov dword [eax + 4], eax
mov eax, dword [0x423cd4]
mov dword [eax + 8], eax
mov ecx, dword [0x423cd4]
push ebx
mov byte [ecx + 0x88], 1
mov edx, dword [0x423cd4]
push ebx
push ebx
mov byte [edx + 0x89], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0x41c710
mov dword [0x423ce0], eax
call fcn.0041946d
add esp, 4
mov dword [ebp - 4], 0xffffffff
test byte [0x423c0c], 1
jne 0x40a2d1
or dword [0x423c0c], edi
mov dword [ebp - 4], edi
call fcn.0040db20
push 0x41c620
call fcn.0041946d
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp byte [0x423c15], 0
je 0x40a2f8
push 0xa010
push str.JHISVC
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__d____s__FN:__08x_n
call fcn.00401000
add esp, 0x10
cmp esi, ebx
je 0x40a45a
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov edx, dword [esi + 8]
mov eax, dword [0x423ce0]
mov esi, dword [esi + 0xc]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], ecx
push 0x423cd0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], esi
call fcn.00413c00
mov dword [ebp - 0x14], eax
cmp eax, dword [0x423cd4]
je 0x40a3f9
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x24], edx
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], esi
mov eax, 0x10
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x48]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x40a3c0
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x40a382
lea eax, [ebp - 0x14]
jmp 0x40a404
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x41f284
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x54], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
movzx eax, byte [edx]
movzx esi, byte [ecx]
sub eax, esi
jne 0x40a3ec
movzx eax, byte [edx + 1]
movzx esi, byte [ecx + 1]
sub eax, esi
jne 0x40a3ec
movzx eax, byte [edx + 2]
movzx esi, byte [ecx + 2]
sub eax, esi
jne 0x40a3ec
movzx eax, byte [edx + 3]
movzx edx, byte [ecx + 3]
sub eax, edx
sar eax, 0x1f
or eax, 1
jl 0x40a3f9
lea eax, [ebp - 0x14]
jmp 0x40a404
mov eax, dword [0x423cd4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov ecx, dword [0x423cd4]
cmp dword [eax], ecx
jne 0x40a41a
mov dword [ebp - 0xb8], 1
jmp 0x40a446
lea edx, [ebp - 0x38]
mov ecx, 0x423cd0
call fcn.00412e30
mov edx, dword [eax + 0x3c]
mov dword [ebp - 0xb8], edx
lea edx, [ebp - 0x38]
mov ecx, 0x423cd0
call fcn.00412e30
mov eax, dword [eax + 0x38]
mov dword [ebp - 0xb4], eax
mov ecx, dword [0x423ce0]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor esi, esi
lea edi, [esi + 1]
jmp 0x40a45f
mov esi, 0x203
test byte [0x423c0c], 1
jne 0x40a487
or dword [0x423c0c], edi
mov dword [ebp - 4], 2
call fcn.0040db20
push 0x41c620
call fcn.0041946d
add esp, 4
cmp byte [0x423c15], 0
je 0x40a4af
push esi
push 0xa011
push str.JHISVC
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__d____s__FN:__08x_RET:_0x_08x_n
call fcn.00401000
add esp, 0x14
mov edi, 0x61
push edi
mov dword [ebp - 4], 3
call fcn.00419304
mov ecx, dword [ebp + 8]
mov dl, byte [ebp - 0x58]
mov dword [ecx], eax
mov dword [eax], esi
mov dword [eax + 4], edi
mov byte [eax + 8], dl
mov edi, dword [ecx]
mov eax, dword [ebp + 0xc]
add esp, 4
add edi, 8
mov ecx, 0x16
lea esi, [ebp - 0xb8]
rep movsd dword es:[edi], dword [esi]
mov dword [eax], 0x61
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8