Function at 0x40da20
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fc28
mov eax, dword fs:[0]
push eax
sub esp, 0xbd0
mov eax, dword [0x4a7ea0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x4ab073], 0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xbdc], esi
mov dword [ebp - 0xbd8], edi
jne 0x40e013
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40da71
sub ecx, edx
mov edx, edi
lea eax, [edx + 1]
mov dword [ebp - 0xbc0], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x40da85
sub edx, dword [ebp - 0xbc0]
lea eax, [edx + 1]
add eax, ecx
push eax
push 1
call fcn.00452d0e
add esp, 8
mov dword [ebp - 0xbc4], eax
mov edx, esi
sub eax, esi
lea esp, [esp]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax + edx - 1], cl
test cl, cl
jne 0x40dab0
mov edx, edi
mov esi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x40dac1
mov edi, dword [ebp - 0xbc4]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40dad1
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0xbc4]
push edi
call fcn.004539a0
mov edx, edi
add esp, 4
lea ecx, [edx + 1]
jmp 0x40db00
mov al, byte [edx]
inc edx
test al, al
jne 0x40db00
sub edx, ecx
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0xbd0], edx
mov dword [ebp - 0xbc8], eax
mov dword [ebp - 0xbcc], ecx
test edx, edx
jle 0x40dbef
cmp edx, 8
jb 0x40dbef
cmp dword [0x4ade60], 2
jl 0x40dbef
movdqa xmm4, xmmword [0x485ac0]
mov eax, edx
and eax, 0x80000007
jns 0x40db53
dec eax
or eax, 0xfffffff8
inc eax
movdqa xmm5, xmmword [0x485ab0]
mov esi, edx
xorps xmm3, xmm3
sub esi, eax
movdqa xmm2, xmm3
mov eax, 4
jmp 0x40db70
movd xmm0, ecx
add ecx, 8
pshufd xmm1, xmm0, 0
movd xmm0, dword [edi + eax - 4]
paddd xmm1, xmm4
pmovsxbd xmm0, xmm0
paddd xmm1, xmm5
pmulld xmm0, xmm1
paddd xmm3, xmm0
movd xmm0, eax
pshufd xmm1, xmm0, 0
movd xmm0, dword [eax + edi]
paddd xmm1, xmm4
paddd xmm1, xmm5
add eax, 8
pmovsxbd xmm0, xmm0
pmulld xmm0, xmm1
paddd xmm2, xmm0
cmp ecx, esi
jl 0x40db70
paddd xmm2, xmm3
mov dword [ebp - 0xbcc], ecx
movdqa xmm0, xmm2
psrldq xmm0, 8
paddd xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
paddd xmm2, xmm0
movd dword [ebp - 0xbc8], xmm2
xor esi, esi
mov dword [ebp - 0xbd4], esi
mov dword [ebp - 0xbc0], esi
cmp ecx, edx
jge 0x40dca4
mov eax, edx
sub eax, ecx
cmp eax, 2
jl 0x40dc6c
mov edi, edx
lea esi, [ecx + 1]
mov edx, dword [ebp - 0xbc4]
sub edi, ecx
sub edi, 2
shr edi, 1
inc edi
lea ecx, [ecx + edi*2]
mov dword [ebp - 0xbcc], ecx
lea ebx, [ebx]
movsx eax, byte [edx + esi - 1]
movsx ecx, byte [esi + edx]
imul eax, esi
add dword [ebp - 0xbd4], eax
lea eax, [esi + 1]
imul ecx, eax
add esi, 2
add dword [ebp - 0xbc0], ecx
dec edi
jne 0x40dc30
mov edx, dword [ebp - 0xbd0]
mov ecx, dword [ebp - 0xbcc]
mov edi, dword [ebp - 0xbc4]
mov esi, dword [ebp - 0xbd4]
cmp ecx, edx
jge 0x40dc92
movsx ecx, byte [ecx + edi]
mov eax, dword [ebp - 0xbcc]
mov edi, dword [ebp - 0xbc8]
inc eax
imul ecx, eax
mov eax, dword [ebp - 0xbc0]
add eax, esi
add edi, ecx
add edi, eax
jmp 0x40dcaa
mov eax, dword [ebp - 0xbc0]
mov edi, dword [ebp - 0xbc8]
add eax, esi
add edi, eax
jmp 0x40dcaa
mov edi, dword [ebp - 0xbc8]
mov eax, 0xeb074a77
imul edi
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x186a0
add edi, eax
lea eax, [ebp - 0x5ec]
push edi
push 0x4aaf28
push str._s_nfy_d.ind
push eax
call fcn.00452c8a
lea eax, [ebp - 0x9d4]
push str.XETEXINC_NOTIFY
push eax
call fcn.004245d0
add esp, 0x18
lea eax, [ebp - 0x9d4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
push 0xffffffffffffffff
push edi
mov dword [ebp - 0xbd0], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x5ec]
push eax
lea ecx, [ebp - 0xa24]
call fcn.00425970
lea eax, [ebp - 0xa24]
mov dword [ebp - 4], 0
push eax
call fcn.004205b0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa24]
mov esi, eax
call fcn.00425a30
test esi, esi
je 0x40dd8a
lea eax, [ebp - 0x5ec]
push eax
lea ecx, [ebp - 0xa24]
call fcn.00425970
lea eax, [ebp - 0xa24]
mov dword [ebp - 4], 1
push eax
call fcn.00420580
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa24]
call fcn.00425a30
lea eax, [ebp - 0x5ec]
push eax
lea ecx, [ebp - 0xa24]
call fcn.00425970
lea eax, [ebp - 0xa24]
mov dword [ebp - 4], 2
push eax
call fcn.004205b0
add esp, 4
mov dword [ebp - 4], 0xffffffff
test eax, eax
lea ecx, [ebp - 0xa24]
sete byte [ebp - 0xbb9]
call fcn.00425a30
cmp byte [ebp - 0xbb9], 0
je 0x40e005
mov esi, dword [ebp - 0xbdc]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dde5
sub ecx, edx
cmp ecx, 0x1f3
jbe 0x40ddfc
mov byte [esi + 0x1f3], al
mov edi, dword [ebp - 0xbd8]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40de07
sub ecx, edx
cmp ecx, 0x1f3
jbe 0x40de1e
mov byte [edi + 0x1f3], al
lea ecx, [ebp - 0xac8]
call fcn.004203d0
lea ecx, [ebp - 0xa74]
mov dword [ebp - 4], 3
call fcn.00425a20
push 0x4aaf28
lea eax, [ebp - 0xa74]
mov byte [ebp - 4], 4
push str._sTEMPTnotify.prm
push eax
call fcn.00425c60
lea eax, [ebp - 0xa74]
push eax
call fcn.00427040
add esp, 0x10
lea eax, [ebp - 0xa74]
lea ecx, [ebp - 0xac8]
push eax
call fcn.00420560
test eax, eax
je 0x40df11
push 0x1f4
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00452db0
lea ecx, [ebp - 0x204]
add esp, 0xc
sub ecx, esi
lea esp, [esp]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x40dea0
push 0x1f4
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0xac8]
call fcn.00420a10
push 0x1f4
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00452db0
lea ecx, [ebp - 0x204]
add esp, 0xc
sub ecx, edi
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx + edi - 1], al
test al, al
jne 0x40dee2
push 0x1f4
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0xac8]
call fcn.00420a10
lea ecx, [ebp - 0xac8]
call fcn.00420450
lea ecx, [ebp - 0xb18]
call fcn.00425a20
push 0x4aaf28
lea eax, [ebp - 0xb18]
mov byte [ebp - 4], 5
push str._s_notify.exe
push eax
call fcn.00425c60
add esp, 0xc
lea ecx, [ebp - 0xb68]
call fcn.00425a20
lea eax, [ebp - 0xa74]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0xb68]
call fcn.00426690
push 0
push dword [ebp - 0xb28]
push dword [ebp - 0xad8]
call fcn.0041d700
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
jmp 0x40df80
lea eax, [ebp - 0x5ec]
push eax
lea ecx, [ebp - 0xbb8]
call fcn.00425970
lea eax, [ebp - 0xbb8]
mov byte [ebp - 4], 7
push eax
call fcn.004205b0
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xbb8]
mov esi, eax
call fcn.00425a30
test esi, esi
jne 0x40dfc0
push 0x64
call edi
jmp 0x40df80
lea ecx, [ebp - 0xb68]
mov byte [ebp - 4], 5
call fcn.00425a30
lea ecx, [ebp - 0xb18]
mov byte [ebp - 4], 4
call fcn.00425a30
lea ecx, [ebp - 0xa74]
mov byte [ebp - 4], 3
call fcn.00425a30
lea ecx, [ebp - 0xac8]
mov dword [ebp - 4], 0xffffffff
call fcn.004203f0
mov edi, dword [ebp - 0xbd0]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004520a4
mov esp, ebp
pop ebp
ret