Function at 0x401c40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x52d324]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea ecx, [esp + 0xa0]
push edi
push 0x12
xor eax, eax
mov dword [esp + 0xb8], 0
push str.MUTEX_PressPackage
mov dword [esp + 0xc0], 7
mov word [esp + 0xac], ax
call fcn.00402710
cmp dword [esp + 0xb8], 8
lea eax, [esp + 0xa4]
cmovae eax, dword [esp + 0xa4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x402391
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402391
mov ecx, esi
mov dword [esp + 0x84], 0
xor eax, eax
mov dword [esp + 0x88], 7
mov word [esp + 0x74], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401cf0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x7c]
call fcn.00402710
push 1
xor eax, eax
mov dword [esp + 0x20], 0
push 0x51e84c
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 7
mov word [esp + 0x34], ax
call fcn.00402710
push ecx
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x34]
lea ecx, [esp + 0x7c]
call fcn.0040bd70
mov edx, dword [esp + 0x48]
add esp, 8
cmp edx, 8
jb 0x401d9b
mov ecx, dword [esp + 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401d91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023f9
push edx
push ecx
call fcn.004dc783
add esp, 8
mov esi, dword [esp + 0x20]
mov eax, 0x2aaaaaab
mov ebx, dword [esp + 0x1c]
mov ecx, esi
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jae 0x401dc5
or edi, 0xffffffff
jmp 0x4022dd
push ebx
lea ecx, [esp + 0xc0]
call fcn.00402570
push 0x51e850
push ecx
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.0040a300
add esp, 4
mov ecx, eax
call fcn.0040a770
add esp, 4
lea ecx, [esp + 0x90]
mov edx, eax
call fcn.00402a50
mov edx, dword [esp + 0x5c]
add esp, 4
cmp edx, 8
jb 0x401e3d
mov ecx, dword [esp + 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401e33
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023ea
push edx
push ecx
call fcn.004dc783
add esp, 8
sub esp, 0x18
lea eax, [esp + 0xd4]
mov ecx, esp
push eax
call fcn.00402570
sub esp, 0x18
lea eax, [esp + 0xbc]
mov ecx, esp
push eax
call fcn.00402570
lea ecx, [esp + 0x8c]
call fcn.00401a60
lea eax, [ebx + 0x18]
add esp, 0x30
cmp dword [eax + 0x14], 8
jb 0x401e7b
mov eax, dword [eax]
push eax
call fcn.004e29d4
mov esi, eax
add esp, 4
test esi, esi
js 0x401e9b
mov ecx, esi
call fcn.0041b4c0
push esi
lea ecx, [esp + 0x30]
call fcn.00492780
push 4
push str.na
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0xf
mov byte [esp + 0x34], 0
call fcn.00402850
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x44]
call fcn.0040b9b0
cmp dword [eax + 0x14], 0x10
jb 0x401ed5
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea ecx, [esp + 0x30]
call fcn.00402650
mov edx, dword [esp + 0x58]
cmp edx, 0x10
jb 0x401f1c
mov ecx, dword [esp + 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401f12
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023f4
push edx
push ecx
call fcn.004dc783
add esp, 8
push str.rtype20056
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0xf
mov byte [esp + 0x48], 0
call fcn.00402650
lea ecx, [esp + 0x2c]
call fcn.004083b0
mov edx, dword [esp + 0x40]
cmp eax, 0xa
jne 0x401ff1
cmp edx, 0x10
jb 0x401f87
mov ecx, dword [esp + 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401f7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023f4
push edx
push ecx
call fcn.004dc783
add esp, 8
sub esp, 0x18
lea edx, [esp + 0xa4]
mov esi, esp
lea ecx, [esp + 0x5c]
push str.KantuInfo.dll
push 0x51e7c0
call fcn.00402ac0
add esp, 4
mov edx, eax
mov ecx, esi
call fcn.00402a50
add esp, 4
call fcn.004013d0
mov edx, dword [esp + 0x70]
add esp, 0x18
cmp edx, 8
jb 0x402023
mov ecx, dword [esp + 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402019
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023ef
jmp 0x402019
cmp edx, 0x10
jb 0x402023
mov ecx, dword [esp + 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402019
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023f4
push edx
push ecx
call fcn.004dc783
add esp, 8
push 0
push 0
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x94]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00405080
mov ecx, dword [esp + 0x1c]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x18]
add esp, 8
sub ecx, esi
xor ebx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40214f
xor edi, edi
nop word [eax + eax]
cmp dword [esp + 0x70], 8
lea edx, [edi + esi]
lea eax, [esp + 0x5c]
mov ecx, edx
cmovae eax, dword [esp + 0x5c]
cmp dword [edx + 0x14], 8
jb 0x40209b
mov ecx, dword [edx]
push dword [esp + 0x6c]
mov edx, dword [edx + 0x10]
push eax
push 0
call fcn.00402bf0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40212c
xor eax, eax
mov dword [esp + 0x3c], 0
push eax
push 0x51e7c4
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 7
mov word [esp + 0x34], ax
call fcn.00402710
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
lea ecx, [edi + ecx]
call fcn.00403d40
mov edx, dword [esp + 0x44]
add esp, 4
cmp edx, 8
jb 0x402128
mov ecx, dword [esp + 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40211e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023f9
push edx
push ecx
call fcn.004dc783
add esp, 8
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, 0x2aaaaaab
sub ecx, esi
inc ebx
imul ecx
add edi, 0x18
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x402080
xor edi, edi
cmp byte [0x530080], 0
jne 0x40217c
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
add edi, 0x64
cmp edi, 0x1770
jg 0x402178
cmp byte [0x530080], 0
je 0x402160
mov esi, dword [esp + 0x10]
xor edi, edi
test esi, esi
je 0x4021e6
mov edx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00402de0
mov ecx, dword [esp + 0x1c]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x14]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x4021d0
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023f9
push ecx
push esi
call fcn.004dc783
add esp, 8
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x70]
cmp edx, 8
jb 0x402222
mov ecx, dword [esp + 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402218
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023f9
push edx
push ecx
call fcn.004dc783
add esp, 8
mov edx, dword [esp + 0xa0]
xor eax, eax
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], 7
mov word [esp + 0x5c], ax
cmp edx, 8
jb 0x402277
mov ecx, dword [esp + 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40226d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023f9
push edx
push ecx
call fcn.004dc783
add esp, 8
mov edx, dword [esp + 0xd0]
xor eax, eax
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], 7
mov word [esp + 0x8c], ax
cmp edx, 8
jb 0x4022d5
mov ecx, dword [esp + 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4022cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023f9
push edx
push ecx
call fcn.004dc783
add esp, 8
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x402333
push ecx
mov edx, esi
mov ecx, ebx
call fcn.00402de0
mov ecx, dword [esp + 0x28]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 4
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 3
cmp ecx, 0x1000
jb 0x402329
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023f9
push ecx
push ebx
call fcn.004dc783
add esp, 8
mov edx, dword [esp + 0x88]
cmp edx, 8
jb 0x402372
mov ecx, dword [esp + 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402368
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023f9
push edx
push ecx
call fcn.004dc783
add esp, 8
xor eax, eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 7
mov word [esp + 0x74], ax
jmp 0x402393
xor edi, edi
mov edx, dword [esp + 0xb8]
cmp edx, 8
jb 0x4023d1
mov ecx, dword [esp + 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4023c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023f9
push edx
push ecx
call fcn.004dc783
add esp, 8
mov ecx, dword [esp + 0xd4]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004dc214
mov esp, ebp
pop ebp
ret 0x10
call fcn.004e2bf9
call fcn.004e2bf9
call fcn.004e2bf9
call fcn.004e2bf9
int3