Function at 0x64e000
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 0x64e11f
mov al, byte [esp + 0x11]
test al, al
jne 0x64e21a
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 0x64e3b1
mov cl, byte [esp + 0x14]
mov dword [esp + 0x44], 0x70a72771
mov eax, dword [esp + 0x20]
test cl, cl
mov dword [esp + 0x1c], eax
jne 0x64e195
mov dl, byte [esp + 0x13]
test dl, dl
je 0x64e0ea
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 0x64e232
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
add ecx, eax
test dl, dl
mov dword [esp + 0x28], ecx
je 0x64e113
call fcn.005ba200
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
call section..text
jmp 0x64e195
mov ecx, dword [esp + 0x34]
test bl, bl
mov dword [esp + 0x20], ecx
je 0x64e139
mov al, byte [esp + 0x11]
mov dword [esp + 0x58], ebp
test al, al
mov dword [esp + 0x44], esi
mov dword [esp + 0x1c], ebp
jne 0x64e1ca
jmp 0x64e164
mov al, byte [esp + 0x11]
mov dword [esp + 0x3c], ebp
test al, al
jne 0x64e30f
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 0x64e2f3
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 0x64e3ec
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 0x64e266
mov al, byte [esp + 0x48]
test al, al
jne 0x64e371
mov eax, str.led_display_switch_A7648B1251D0
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 0x64e2d0
mov al, byte [esp + 0x14]
mov dword [esp + 0x20], esi
test al, al
jne 0x64e2f3
mov ecx, dword [esp + 0x24]
mov dl, byte [esp + 0x13]
mov esi, dword [esp + 0x70]
test dl, dl
je 0x64e2d0
cmp ecx, dword [esp + 0x38]
setbe bl
test bl, bl
jne 0x64e0ea
push ecx
call fcn.005bad00
mov eax, dword [esp + 0x30]
add esp, 4
xor eax, 2
mov dword [esp + 0x2c], eax
jmp 0x64e3ec
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 0x64e058
mov eax, dword [esp + 0x54]
test bl, bl
mov dword [esp + 0x28], eax
je 0x64e20a
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 0x64e2eb
jmp 0x64e058
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 0x64e35a
test bl, bl
je 0x64e070
mov cl, byte [esp + 0x12]
mov eax, dword [esp + 0x1c]
test cl, cl
mov dword [esp + 0x34], eax
mov dword [esp + 0x6c], 0x49377df6
je 0x64e418
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 0x64e028
mov dword [esp + 0x24], 0x85
mov dword [esp + 0x38], 0x53f91426
mov dword [esp + 0x68], 0x53f914a3
jmp 0x64e436
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 0x64e0a9
mov ecx, dword [esp + 0x18]
mov eax, str.led_display_switch_A7648B1251D0
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 0x64e0b9
mov ecx, dword [esp + 0x50]
mov al, byte [esp + 0x11]
test ecx, ecx
setne bl
test al, al
mov dword [esp + 0x24], 0x85
je 0x64e2f3
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 0x64e448
mov eax, dword [esp + 0x14]
and eax, 0xff
push eax
mov eax, str.LED_Display
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 0x64e436
mov ecx, dword [esp + 0x20]
add eax, 0x49377df6
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
jmp 0x64e139
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x6c]
mov al, byte [esp + 0x12]
sub edi, ecx
test al, al
je 0x64e49d
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x38]
xor edx, eax
push edx
call fcn.0064df30
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.006047e0
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x64e0b9
mov dword [esp + 0x74], edi
jmp 0x64e064