Function at 0x401e40
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x58d58c
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
lea eax, [esp + 0x284]
xor ebx, ebx
push eax
mov ecx, 0x59b2fc
mov dword [esp + 0x280], ebx
call fcn.00404b00
test eax, eax
jne 0x401ec2
cmp dword [esp + 0x29c], 8
jb 0x401eb8
mov ecx, dword [esp + 0x288]
push ecx
call fcn.005273b8
add esp, 4
mov eax, 1
jmp 0x402605
cmp dword [esp + 0x29c], 8
mov eax, dword [esp + 0x288]
mov dword [esp + 0x1c], 1
jae 0x401ee2
lea eax, [esp + 0x288]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
setne dl
mov eax, edx
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x401f1f
mov eax, dword [esi]
cmp eax, ebx
je 0x401f1f
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
cmp dword [esi + 4], ebx
jne 0x4025e7
cmp edi, ebx
jge 0x401f30
mov dword [esp + 0x1c], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
jle 0x401fcc
lea esp, [esp]
cmp dword [esp + 0x29c], 8
mov eax, dword [esp + 0x288]
jae 0x401f58
lea eax, [esp + 0x288]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x401f95
mov eax, dword [esi]
cmp eax, ebx
je 0x401f95
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
cmp dword [esi + 4], ebx
jne 0x401fc8
push 0x3e8
call ebp
mov eax, dword [0x5ef5f4]
test eax, eax
jne 0x401faf
call fcn.00404b70
push edi
push 0x59ade0
call fcn.0047b0e0
dec edi
add esp, 8
cmp edi, ebx
jg 0x401f40
jmp 0x401fcc
cmp edi, ebx
jg 0x401fd0
mov dword [esp + 0x1c], ebx
push 0x927c0
call ebp
cmp dword [esp + 0x1c], ebx
jne 0x4025e7
push 0x103
lea ecx, [esp + 0x169]
push ebx
push ecx
call fcn.0052e300
add esp, 0xc
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x168], bl
call fcn.0048c030
mov byte [esp + 0x27c], 1
push 0x12
xor eax, eax
mov edi, 7
push str.Mutex_MiNiDongFang
lea esi, [esp + 0xa8]
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], ax
call fcn.00406150
mov ecx, esi
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x284], 2
call fcn.00403a90
mov ebp, 8
mov byte [esp + 0x27c], 1
cmp dword [esp + 0xb8], ebp
jb 0x40207b
mov eax, dword [esp + 0xa4]
push eax
call fcn.005273b8
add esp, 4
push 0x14
xor ecx, ecx
push str.Mutex_MiNiSmartCloud
lea esi, [esp + 0x134]
mov dword [esp + 0x14c], edi
mov dword [esp + 0x148], ebx
mov word [esp + 0x138], cx
call fcn.00406150
mov edx, esi
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x284], 3
call fcn.00403a90
mov byte [esp + 0x27c], 1
cmp dword [esp + 0x144], ebp
jb 0x4020dc
mov ecx, dword [esp + 0x130]
push ecx
call fcn.005273b8
add esp, 4
push 0x16
xor edx, edx
push str.Mutex_MiNiSmartCloudWB
lea esi, [esp + 0x54]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], dx
call fcn.00406150
mov eax, esi
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x284], 4
call fcn.00403a90
mov byte [esp + 0x27c], 1
cmp dword [esp + 0x64], ebp
jb 0x40212b
mov edx, dword [esp + 0x50]
push edx
call fcn.005273b8
add esp, 4
push 0x14
xor eax, eax
push str.Mutex_MiNiPuddingZip
lea esi, [esp + 0x118]
mov dword [esp + 0x130], edi
mov dword [esp + 0x12c], ebx
mov word [esp + 0x11c], ax
call fcn.00406150
mov ecx, esi
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x284], 5
call fcn.00403a90
mov byte [esp + 0x27c], 1
cmp dword [esp + 0x128], ebp
jb 0x40218c
mov eax, dword [esp + 0x114]
push eax
call fcn.005273b8
add esp, 4
push 0x14
xor ecx, ecx
push str.Mutex_MiNiWanNengZip
lea esi, [esp + 0xe0]
mov dword [esp + 0xf8], edi
mov dword [esp + 0xf4], ebx
mov word [esp + 0xe4], cx
call fcn.00406150
mov edx, esi
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x284], 6
call fcn.00403a90
mov byte [esp + 0x27c], 1
cmp dword [esp + 0xf0], ebp
jb 0x4021ed
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.005273b8
add esp, 4
push 0x18
xor edx, edx
push str.Mutex_MiNiPuddingDesktop
lea esi, [esp + 0x70]
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], dx
call fcn.00406150
mov eax, esi
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x284], 7
call fcn.00403a90
mov byte [esp + 0x27c], 1
cmp dword [esp + 0x80], ebp
jb 0x402245
mov edx, dword [esp + 0x6c]
push edx
call fcn.005273b8
add esp, 4
push 0x10
xor eax, eax
push str.Mutex_MiNiClover
lea esi, [esp + 0x8c]
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], ax
call fcn.00406150
mov ecx, esi
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x284], 8
call fcn.00403a90
mov byte [esp + 0x27c], 1
cmp dword [esp + 0x9c], ebp
jb 0x4022a6
mov eax, dword [esp + 0x88]
push eax
call fcn.005273b8
add esp, 4
push 0x11
xor ecx, ecx
push str.Mutex_MiNiShuiGuo
lea esi, [esp + 0xc4]
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd8], ebx
mov word [esp + 0xc8], cx
call fcn.00406150
mov edx, esi
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x284], 9
call fcn.00403a90
mov byte [esp + 0x27c], 1
cmp dword [esp + 0xd4], ebp
jb 0x402307
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.005273b8
add esp, 4
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
cmp esi, dword [esp + 0x30]
jbe 0x40231a
call fcn.00527d8a
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x3c], ebp
lea edi, [esi + 4]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x38], edi
cmp dword [esp + 0x2c], esi
jbe 0x402338
call fcn.00527d8a
cmp ebp, ebx
je 0x402342
cmp ebp, dword [esp + 0x20]
je 0x402347
call fcn.00527d8a
lea ebp, [edi - 4]
cmp ebp, esi
je 0x402541
mov byte [esp + 0x27c], 0xa
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x40237d
call fcn.00527d8a
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x402373
call fcn.00527d8a
cmp dword [edi + 0x14], 8
jb 0x402381
mov eax, dword [edi]
jmp 0x402383
mov eax, dword [eax]
jmp 0x402369
mov eax, edi
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebp, eax
mov dword [esp + 0x44], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
setne dl
mov eax, edx
mov dword [esp + 0x48], eax
cmp eax, ebx
jne 0x4024fb
cmp ebp, ebx
je 0x4023c9
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
mov dword [esp + 0x44], ebp
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], 1
cmp eax, ebx
jne 0x4023f7
call fcn.00527d8a
xor eax, eax
lea ecx, [edi - 4]
cmp ecx, dword [eax + 0x10]
jb 0x4023ed
call fcn.00527d8a
cmp dword [edi + 0x14], 8
jb 0x4023fb
mov edx, dword [edi]
jmp 0x4023fd
mov eax, dword [eax]
jmp 0x4023e0
mov edx, edi
xor eax, eax
mov word [esp + 0xf8], ax
mov eax, edx
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], ebx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402420
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0xfc]
call fcn.00406150
lea ecx, [esp + 0x148]
push ecx
mov ecx, esi
mov byte [esp + 0x280], 0xb
call fcn.004924e0
add esp, 4
cmp dword [eax + 0x18], 0x10
jb 0x402462
mov eax, dword [eax + 4]
jmp 0x402465
add eax, 4
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402467
lea edi, [esp + 0x164]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x402478
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp dword [esp + 0x160], 0x10
rep movsb byte es:[edi], byte [esi]
jb 0x4024aa
mov edx, dword [esp + 0x14c]
push edx
call fcn.005273b8
add esp, 4
cmp dword [esp + 0x10c], 8
mov dword [esp + 0x160], 0xf
mov dword [esp + 0x15c], ebx
mov byte [esp + 0x14c], bl
jb 0x4024dd
mov eax, dword [esp + 0xf8]
push eax
call fcn.005273b8
add esp, 4
lea edi, [esp + 0x164]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4024e5
mov cx, word [0x59af4c]
mov word [edi], cx
mov edi, dword [esp + 0x38]
mov byte [esp + 0x27c], 1
cmp ebp, ebx
je 0x402515
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x40253d
call fcn.00527d8a
xor eax, eax
lea ecx, [edi - 4]
cmp ecx, dword [eax + 0x10]
jb 0x402531
call fcn.00527d8a
mov ebp, dword [esp + 0x3c]
add edi, 0x1c
jmp 0x402325
mov eax, dword [eax]
jmp 0x402524
cmp dword [esp + 0x18], ebx
je 0x4025a8
sub esp, 0x1c
mov ecx, esp
lea eax, [esp + 0x180]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x34], esp
mov byte [ecx + 4], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x402567
sub eax, esi
push eax
lea edx, [esp + 0x184]
push edx
call fcn.00405bb0
mov byte [esp + 0x298], 0xc
mov eax, dword [0x5ef5f8]
test eax, eax
jne 0x402594
call fcn.00404c10
mov ecx, dword [0x5ef5f8]
push ecx
mov byte [esp + 0x29c], 1
call fcn.00486200
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4025ce
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push edx
call fcn.00404ef0
mov eax, dword [esp + 0x30]
add esp, 4
push eax
call fcn.005273b8
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.005273b8
add esp, 4
cmp dword [esp + 0x29c], 8
jb 0x402601
mov edx, dword [esp + 0x288]
push edx
call fcn.005273b8
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.005273c3
add esp, 0x26c
ret 0x1c