Function at 0x140004740
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x14007bec0]
xor rax, rsp
mov qword [rbp + 0x70], rax
lea r8, str.6B54C0D8_D814_4F57_944B_7B510D5C22D9
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.05CA3573_B449_4e0b_83F5_7FD612E378E8
xor edx, edx
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp ebx, 0xb7
jne 0x1400047e4
lea rdx, [0x140063c10]
lea r8, [0x140063c00]
xor r9d, r9d
call qword [sym.imp.USER32.dll_MessageBoxW]
test rsi, rsi
je 0x1400047cf
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x1400047dd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140004d1e
cmp eax, 0xb7
jne 0x1400047f4
lea rdx, [0x140063c28]
jmp 0x1400047b1
mov qword [rsp + 0x190], r12
call fcn.140035658
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x30], rax
call fcn.1400351d4
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.1400351d4
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.1400351d4
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.1400351d4
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.1400351d4
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.1400351d4
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.1400351d4
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.1400351d4
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x30]
call fcn.140021c60
xor r12d, r12d
lea rcx, [rbp - 0x68]
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r12
mov word [rbp - 0x68], r12w
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
call fcn.140021140
lea r8d, [r12 + 0x12]
lea rdx, str.iClientControl.dll
lea rcx, [rbp - 0x18]
mov qword [rbp], 7
mov qword [rbp - 8], r12
mov word [rbp - 0x18], r12w
call fcn.140002b60
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x10]
call fcn.140020d10
mov rbx, rax
lea rax, [rsp + 0x70]
cmp rax, rbx
je 0x14000495c
cmp qword [rbp - 0x78], 8
jb 0x140004908
mov rcx, qword [rsp + 0x70]
call fcn.140033ccc
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
cmp qword [rbx + 0x18], 8
jae 0x140004939
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x70]
mov rdx, rbx
lea r8, [r8 + r8 + 2]
call fcn.140033fc0
jmp 0x140004944
mov rax, qword [rbx]
mov qword [rsp + 0x70], rax
mov qword [rbx], r12
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x80], rax
mov rax, qword [rbx + 0x18]
mov qword [rbp - 0x78], rax
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
cmp qword [rbp + 0x28], 8
jb 0x14000496c
mov rcx, qword [rbp + 0x10]
call fcn.140033ccc
cmp qword [rbp], 8
mov qword [rbp + 0x28], 7
mov qword [rbp + 0x20], r12
mov word [rbp + 0x10], r12w
jb 0x14000498d
mov rcx, qword [rbp - 0x18]
call fcn.140033ccc
cmp qword [rbp - 0x78], 8
lea rcx, [rsp + 0x70]
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
jne 0x1400049c3
lea rdx, str.iClientControl
lea rcx, [0x140086e40]
call fcn.140007ab0
jmp 0x140004c93
lea rdx, str.InitializeClient
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RunClient
mov rcx, rbx
mov qword [0x140085090], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RunUsbMonitor
mov rcx, rbx
mov qword [0x140085098], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UnInitializeClient
mov rcx, rbx
mov qword [0x1400850a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400850a0], rax
call fcn.140007cf0
call fcn.140008430
test al, al
jne 0x140004a55
cmp qword [0x1400850a8], r12
je 0x140004a55
lea rdx, [0x140063d08]
lea rcx, [0x140086e40]
call fcn.140007a20
lea rdx, str.USB
jmp 0x140004c81
xor edx, edx
xor ecx, ecx
call fcn.140008ea0
test eax, eax
je 0x140004a87
call fcn.14000a2a0
test eax, eax
jne 0x140004a87
cmp qword [0x140088f60], 8
lea rcx, [0x140088f48]
cmovae rcx, qword [0x140088f48]
call fcn.14000a390
mov rax, qword [0x140085090]
test rax, rax
je 0x140004c50
call rax
lea r8, [0x1400817e8]
lea rcx, [0x140086e40]
test eax, eax
jne 0x140004ad3
cmp qword [0x140081800], 8
lea rdx, [0x140063d50]
cmovae r8, qword [0x1400817e8]
call fcn.140007a20
lea rdx, [0x140063d60]
jmp 0x140004c81
cmp qword [0x140081800], 8
lea rdx, [0x140063db8]
cmovae r8, qword [0x1400817e8]
call fcn.140007a20
call fcn.1400053b0
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp + 0x38]
call fcn.1400265b0
cmp qword [rbp + 0x38], r12
je 0x140004b17
lea rcx, [rbp + 0x38]
call fcn.140026690
lea rax, [rsp + 0x38]
lea r8, [0x140004d50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140004ba3
nop dword [rax]
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x140004b8c
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140004b60
cmp qword [rbp + 0x60], 8
mov ebx, dword [rsp + 0x50]
jb 0x140004bb7
mov rcx, qword [rbp + 0x48]
call fcn.140033ccc
cmp qword [rbp - 0x78], 8
mov qword [rbp + 0x60], 7
mov qword [rbp + 0x58], r12
mov word [rbp + 0x48], r12w
jb 0x140004bd9
mov rcx, qword [rsp + 0x70]
call fcn.140033ccc
cmp qword [rbp - 0x50], 8
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
jb 0x140004bfb
mov rcx, qword [rbp - 0x68]
call fcn.140033ccc
cmp qword [rbp - 0x28], 8
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r12
mov word [rbp - 0x68], r12w
jb 0x140004c1c
mov rcx, qword [rbp - 0x40]
call fcn.140033ccc
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
test rsi, rsi
je 0x140004c3b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140004c49
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x140004d16
cmp qword [0x140081800], 8
lea r8, [0x1400817e8]
lea rdx, [0x140063d50]
cmovae r8, qword [0x1400817e8]
lea rcx, [0x140086e40]
call fcn.140007a20
lea rdx, [0x140063d88]
lea r8, [0x140063c00]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp qword [rbp - 0x78], 8
jb 0x140004ca4
mov rcx, qword [rsp + 0x70]
call fcn.140033ccc
cmp qword [rbp - 0x50], 8
mov word [rsp + 0x70], r12w
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], 7
jb 0x140004cc6
mov rcx, qword [rbp - 0x68]
call fcn.140033ccc
cmp qword [rbp - 0x28], 8
mov word [rbp - 0x68], r12w
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 7
jb 0x140004ce7
mov rcx, qword [rbp - 0x40]
call fcn.140033ccc
mov word [rbp - 0x40], r12w
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 7
test rsi, rsi
je 0x140004d06
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140004d14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov r12, qword [rsp + 0x190]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140033cf0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret