Function at 0x64dfe0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
push edi
call fcn.0044a6e0
mov bl, byte [esp + 0x88]
mov ebp, dword [esp + 0x88]
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x13], 0
mov dword [esp + 0x34], eax
mov byte [esp + 0x60], 0
mov byte [esp + 0x14], 1
mov byte [esp + 0x40], 1
mov byte [esp + 0x30], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x48], 0
mov al, byte [esp + 0x11]
test al, al
jne 0x64e0ff
mov al, byte [esp + 0x11]
test al, al
jne 0x64e1fa
mov al, byte [esp + 0x12]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
test al, al
mov dword [esp + 0x18], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], edi
jne 0x64e391
mov cl, byte [esp + 0x14]
mov dword [esp + 0x44], 0x70a72771
mov eax, dword [esp + 0x20]
test cl, cl
mov dword [esp + 0x1c], eax
jne 0x64e175
mov dl, byte [esp + 0x13]
test dl, dl
je 0x64e0ca
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
and eax, 0xff
mov dword [esp + 0x24], ecx
lea eax, [eax + eax*2 + 3]
mov dword [esp + 0x38], eax
mov al, byte [esp + 0x12]
test al, al
sete byte [esp + 0x14]
jmp 0x64e212
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
add ecx, eax
test dl, dl
mov dword [esp + 0x28], ecx
je 0x64e0f3
call fcn.005ba200
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
call section..text
jmp 0x64e175
mov ecx, dword [esp + 0x34]
test bl, bl
mov dword [esp + 0x20], ecx
je 0x64e119
mov al, byte [esp + 0x11]
mov dword [esp + 0x58], ebp
test al, al
mov dword [esp + 0x44], esi
mov dword [esp + 0x1c], ebp
jne 0x64e1aa
jmp 0x64e144
mov al, byte [esp + 0x11]
mov dword [esp + 0x3c], ebp
test al, al
jne 0x64e2ef
mov al, byte [esp + 0x12]
mov dl, byte [esp + 0x48]
test al, al
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x14], dl
sete byte [esp + 0x11]
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x14]
mov ecx, dword [esp + 0x88]
test al, al
mov dword [esp + 0x18], ecx
je 0x64e2d3
mov edx, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
mov dword [esp + 0x54], edx
mov dword [esp + 0x44], 0x70a72771
mov ecx, dword [esp + 0x44]
mov eax, edi
xor eax, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x50], eax
mov al, byte [esp + 0x14]
test al, al
je 0x64e3cc
mov al, byte [esp + 0x30]
xor esi, esi
xor ecx, ecx
test al, al
sete cl
mov dword [esp + 0x18], ecx
mov cl, byte [esp + 0x14]
mov edx, dword [esp + 0x28]
test cl, cl
mov dword [esp + 0x64], edx
je 0x64e246
mov al, byte [esp + 0x48]
test al, al
jne 0x64e351
mov eax, str.audio_selector_408B1A76251D
push eax
mov eax, dword [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ecx
mov al, byte [esp + 0x11]
mov esi, dword [esp + 0x28]
test al, al
jne 0x64e2b0
mov al, byte [esp + 0x14]
mov dword [esp + 0x20], esi
test al, al
jne 0x64e2d3
mov ecx, dword [esp + 0x24]
mov dl, byte [esp + 0x13]
mov esi, dword [esp + 0x70]
test dl, dl
je 0x64e2b0
cmp ecx, dword [esp + 0x38]
setbe bl
test bl, bl
jne 0x64e0ca
push ecx
call fcn.005bace0
mov eax, dword [esp + 0x30]
add esp, 4
xor eax, 2
mov dword [esp + 0x2c], eax
jmp 0x64e3cc
mov dl, byte [esp + 0x40]
mov byte [esp + 0x14], dl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [esp + 0x48]
and eax, 0xff
mov edx, 0xb7
sub edx, eax
mov al, byte [esp + 0x13]
cmp ecx, edx
mov dword [esp + 0x24], ecx
sete bl
test al, al
jne 0x64e038
mov eax, dword [esp + 0x54]
test bl, bl
mov dword [esp + 0x28], eax
je 0x64e1ea
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x60]
and eax, 0xff
lea ecx, [eax + eax*8 + 0x67]
mov al, byte [esp + 0x40]
test al, al
mov dword [esp + 0x2c], ecx
jne 0x64e2cb
jmp 0x64e038
mov ebp, dword [esp + 0x74]
mov cl, byte [esp + 0x14]
xor eax, eax
mov dword [esp + 0x28], esi
cmp ebp, eax
mov dword [esp + 0x3c], eax
setne bl
test cl, cl
je 0x64e33a
test bl, bl
je 0x64e050
mov cl, byte [esp + 0x12]
mov eax, dword [esp + 0x1c]
test cl, cl
mov dword [esp + 0x34], eax
mov dword [esp + 0x6c], 0x49377df6
je 0x64e3f8
mov al, byte [esp + 0x30]
mov edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x28]
test al, al
mov eax, edi
sete byte [esp + 0x13]
or eax, ecx
xor edi, ecx
cmp eax, edi
mov dword [esp + 0x34], eax
setae bl
test bl, bl
je 0x64e008
mov dword [esp + 0x24], 0x85
mov dword [esp + 0x38], 0x53f91426
mov dword [esp + 0x68], 0x53f914a3
jmp 0x64e416
mov dword [esp + 0x58], eax
mov al, byte [esp + 0x30]
test al, al
mov dword [esp + 0x5c], 0xcd1bec52
sete byte [esp + 0x12]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
mov al, byte [esp + 0x11]
test al, al
mov dword [esp + 0x20], edx
jne 0x64e089
mov ecx, dword [esp + 0x18]
mov eax, str.audio_selector_408B1A76251D
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, eax
mov al, byte [esp + 0x60]
mov dword [esp + 0x1c], ebp
test al, al
jne 0x64e099
mov ecx, dword [esp + 0x50]
mov al, byte [esp + 0x11]
test ecx, ecx
setne bl
test al, al
mov dword [esp + 0x24], 0x85
je 0x64e2d3
mov dl, byte [esp + 0x40]
mov dword [esp + 0x38], 0x53f91426
mov dword [esp + 0x68], 0x53f914a3
mov byte [esp + 0x13], dl
mov dword [esp + 0x64], ebp
jmp 0x64e428
mov eax, dword [esp + 0x14]
and eax, 0xff
push eax
mov eax, str.Audio_Selector
push eax
mov eax, str.Error_opening_profile_login_script
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov eax, dword [esp + 0x24]
pop ebp
pop ebx
add esp, 0x68
ret 0x10
mov cl, byte [esp + 0x14]
test cl, cl
je 0x64e416
mov ecx, dword [esp + 0x20]
add eax, 0x49377df6
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
jmp 0x64e119
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x6c]
mov al, byte [esp + 0x12]
sub edi, ecx
test al, al
je 0x64e47d
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x38]
xor edx, eax
push edx
call fcn.0064df10
mov dword [esp + 0x28], eax
mov dword [0xa531e0], eax
call fcn.004dd4a0
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
and eax, 0xff
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
lea ecx, [ecx + ecx*2 + 0xee]
push ecx
push 0x9000133
mov dword [esp + 0x7c], ecx
call fcn.006047c0
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x64e099
mov dword [esp + 0x74], edi
jmp 0x64e044