Function at 0x64e0f0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x68
push ebx
mov bl, byte [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x80]
push esi
mov esi, dword [esp + 0x84]
push edi
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 0x64e207
mov al, byte [esp + 0x11]
test al, al
jne 0x64e302
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 0x64e499
mov cl, byte [esp + 0x14]
mov dword [esp + 0x44], 0x70a72771
mov eax, dword [esp + 0x20]
test cl, cl
mov dword [esp + 0x1c], eax
jne 0x64e27d
mov dl, byte [esp + 0x13]
test dl, dl
je 0x64e1d2
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 0x64e31a
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
add ecx, eax
test dl, dl
mov dword [esp + 0x28], ecx
je 0x64e1fb
call fcn.005ba0a0
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
call fcn.00401000
jmp 0x64e27d
mov ecx, dword [esp + 0x34]
test bl, bl
mov dword [esp + 0x20], ecx
je 0x64e221
mov al, byte [esp + 0x11]
mov dword [esp + 0x58], ebp
test al, al
mov dword [esp + 0x44], esi
mov dword [esp + 0x1c], ebp
jne 0x64e2b2
jmp 0x64e24c
mov al, byte [esp + 0x11]
mov dword [esp + 0x3c], ebp
test al, al
jne 0x64e3f7
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 0x64e3db
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 0x64e4d4
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 0x64e34e
mov al, byte [esp + 0x48]
test al, al
jne 0x64e459
mov eax, str.usb_device_checker_467B158152DD
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 0x64e3b8
mov al, byte [esp + 0x14]
mov dword [esp + 0x20], esi
test al, al
jne 0x64e3db
mov ecx, dword [esp + 0x24]
mov dl, byte [esp + 0x13]
mov esi, dword [esp + 0x70]
test dl, dl
je 0x64e3b8
cmp ecx, dword [esp + 0x38]
setbe bl
test bl, bl
jne 0x64e1d2
push ecx
call fcn.005badf0
mov eax, dword [esp + 0x30]
add esp, 4
xor eax, 2
mov dword [esp + 0x2c], eax
jmp 0x64e4d4
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 0x64e140
mov eax, dword [esp + 0x54]
test bl, bl
mov dword [esp + 0x28], eax
je 0x64e2f2
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 0x64e3d3
jmp 0x64e140
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 0x64e442
test bl, bl
je 0x64e158
mov cl, byte [esp + 0x12]
mov eax, dword [esp + 0x1c]
test cl, cl
mov dword [esp + 0x34], eax
mov dword [esp + 0x6c], 0x49377df6
je 0x64e500
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 0x64e110
mov dword [esp + 0x24], 0x85
mov dword [esp + 0x38], 0x53f91426
mov dword [esp + 0x68], 0x53f914a3
jmp 0x64e51e
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 0x64e191
mov ecx, dword [esp + 0x18]
mov eax, str.usb_device_checker_467B158152DD
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 0x64e1a1
mov ecx, dword [esp + 0x50]
mov al, byte [esp + 0x11]
test ecx, ecx
setne bl
test al, al
mov dword [esp + 0x24], 0x85
je 0x64e3db
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 0x64e530
mov eax, dword [esp + 0x14]
and eax, 0xff
push eax
mov eax, str.USB_Device
push eax
mov eax, 0x65220c
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 0x64e51e
mov ecx, dword [esp + 0x20]
add eax, 0x49377df6
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
jmp 0x64e221
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x6c]
mov al, byte [esp + 0x12]
sub edi, ecx
test al, al
je 0x64e585
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x38]
xor edx, eax
push edx
call fcn.0064e020
mov dword [esp + 0x28], eax
mov dword [0xa53130], eax
call fcn.004dd340
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.006048d0
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x64e1a1
mov dword [esp + 0x74], edi
jmp 0x64e14c