Function at 0x14000b440
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Print debug messages
Terminate process

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x2a8], rbx
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r14d, r9d
mov rdi, rcx
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x38], r15d
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], r15
lea r8, [0x140016b70]
lea edx, [r15 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x14000b4e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000b4e2
lea r9d, [r15 + 0x30]
lea r8, str.Warning
lea rdx, str.FrameView_is_already_running.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xb0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0xc0], xmm1
movdqa xmmword [rbp + 0xd0], xmm0
xor eax, eax
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rax
lea ecx, [rax + 0x18]
call fcn.140011794
mov qword [rbp + 0x30], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov rcx, rax
call fcn.140006ca0
nop
mov rbx, qword [0x1400234d8]
mov qword [0x1400234d8], rax
test rbx, rbx
je 0x14000b58e
mov rax, qword [rbx + 8]
test rax, rax
je 0x14000b569
lock dec dword [rax]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 8], r15
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000b57a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r15
mov edx, 0x18
mov rcx, rbx
call fcn.140011760
mov rax, qword [0x1400234d8]
mov rcx, qword [rax + 8]
inc dword [rcx + 0x18]
call fcn.1400073c0
call fcn.14000e910
call fcn.140006fb0
mov esi, r15d
mov r8d, r14d
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.14000b1a0
test rax, rax
jne 0x14000b5ca
lea esi, [rax + 3]
mov rbx, qword [rbp + 0x70]
jmp 0x14000bc32
mov qword [0x14001f598], rax
mov edx, 1
lea rcx, [0x14000acb0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, 0x60
call fcn.140011794
mov rbx, rax
mov qword [rbp + 0x28], rax
xor edx, edx
lea r8d, [rdx + 0x60]
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14000f7c0
mov rdi, rax
movzx r8d, byte [0x14001f6ed]
movzx edx, byte [0x14001f6eb]
mov rcx, rax
call fcn.140010080
cmp byte [0x14001f6ed], 0
je 0x14000b640
mov edx, dword [0x14001f6f0]
mov rcx, rdi
call fcn.1400104f0
call fcn.140006fb0
cmp byte [0x14001f6ed], 0
jne 0x14000ba68
call fcn.14000aa00
test al, al
jne 0x14000b6b6
mov rdx, qword [rbp + 0xc8]
test rdx, rdx
je 0x14000b68c
mov r8, qword [rbp + 0xd8]
sub r8, rdx
sar r8, 3
call fcn.14000d000
mov qword [rbp + 0xc8], r15
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xd0], xmm0
mov rdx, qword [rbp + 0xb0]
test rdx, rdx
je 0x14000b6ac
mov r8, qword [rbp + 0xc0]
sub r8, rdx
sar r8, 3
call fcn.14000d000
nop
mov eax, 1
jmp 0x14000bcc0
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], r15
mov word [rbp - 0x58], r15w
lea rdx, [0x14001f728]
cmp word [0x14001f728], 0
jne 0x14000b6dd
mov r8, r15
jmp 0x14000b6ec
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x14000b6e1
lea rcx, [rbp - 0x58]
call fcn.14000cae0
nop
mov r8d, 0xe
lea rdx, str.FrameView.csv
lea rcx, [rbp - 0x58]
call fcn.140005c70
mov qword [rbp + 0xa8], 7
mov qword [rbp + 0xa0], r15
mov word [rbp + 0x90], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x90]
call fcn.14000cc30
nop
lea rcx, [rbp - 0x58]
call fcn.140005800
mov edx, dword [0x14001f6cc]
lea rcx, [rbp + 0x140]
call fcn.140006af0
nop
mov edx, dword [0x14001f6c8]
lea rcx, [rbp + 0x120]
call fcn.140006af0
nop
mov qword [rbp + 0x20], r15
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
cmovae rdx, qword [rbp + 0x90]
lea rcx, [rbp + 0x20]
call fcn.140006f20
lea rax, [0x140016351]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x70]
call fcn.14000bf40
lea rax, str._no_top
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x70]
call fcn.14000bf40
lea rax, str._multi_csv
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x70]
call fcn.14000bf40
lea rax, str._output_file
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x70]
call fcn.14000bf40
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x70]
call fcn.14000bf40
lea rax, str._timed
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x70]
call fcn.14000bf40
lea rax, [rbp + 0x140]
cmp qword [rbp + 0x158], 0x10
cmovae rax, qword [rbp + 0x140]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x70]
call fcn.14000bf40
lea rax, str._delay
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x70]
call fcn.14000bf40
lea rax, [rbp + 0x120]
cmp qword [rbp + 0x138], 0x10
cmovae rax, qword [rbp + 0x120]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x70]
call fcn.14000bf40
mov eax, dword [0x14001f6d0]
test al, 8
je 0x14000b8b5
lea rax, str._lograycount
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x70]
call fcn.14000bf40
mov eax, dword [0x14001f6d0]
test al, 0x20
je 0x14000b8d7
lea rax, str._logmemory
mov qword [rbp - 0x78], rax
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x70]
call fcn.14000bf40
mov eax, dword [0x14001f6d0]
test al, 0x10
je 0x14000b8f9
lea rax, str._logperfmetrics
mov qword [rbp - 0x70], rax
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x70]
call fcn.14000bf40
mov eax, dword [0x14001f6d0]
test al, al
jns 0x14000b915
lea rax, str._logstats
mov qword [rbp - 0x68], rax
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x70]
call fcn.14000bf40
mov rax, qword [rbp + 0x78]
mov rbx, qword [rbp + 0x70]
sub rax, rbx
sar rax, 3
lea rcx, [rbp + 0xb0]
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x28], rbx
mov dword [rbp + 0x88], eax
mov rax, qword [0x1400234c8]
mov rcx, qword [rax + 0xb8]
test rcx, rcx
jne 0x14000b953
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x38]
lea r8, [rbp + 0x28]
lea rdx, [rbp + 0x88]
call qword [rax + 0x10]
test al, al
jne 0x14000ba1f
lea rcx, [rbp + 0x120]
call fcn.1400058a0
nop
lea rcx, [rbp + 0x140]
call fcn.1400058a0
nop
lea rcx, [rbp + 0x90]
call fcn.140005800
nop
mov rdx, qword [rbp + 0xc8]
test rdx, rdx
je 0x14000b9c8
mov r8, qword [rbp + 0xd8]
sub r8, rdx
sar r8, 3
call fcn.14000d000
mov qword [rbp + 0xc8], r15
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xd0], xmm0
mov rdx, qword [rbp + 0xb0]
test rdx, rdx
je 0x14000b9f9
mov r8, qword [rbp + 0xc0]
sub r8, rdx
sar r8, 3
call fcn.14000d000
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], r15
test rbx, rbx
je 0x14000ba15
mov r8, qword [rbp + 0x80]
sub r8, rbx
sar r8, 3
mov rdx, rbx
call fcn.14000d000
nop
mov eax, 1
jmp 0x14000bcc0
mov rax, qword [0x1400234c8]
mov rcx, qword [rax + 0xf8]
test rcx, rcx
jne 0x14000ba39
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rbp + 0x120]
call fcn.1400058a0
nop
lea rcx, [rbp + 0x140]
call fcn.1400058a0
nop
lea rcx, [rbp + 0x90]
call fcn.140005800
jmp 0x14000ba6c
mov rbx, qword [rbp + 0x70]
cmp dword [0x14001f6f0], 0
je 0x14000bac7
xor r9d, r9d
xor r8d, r8d
mov edx, 0x402
mov rcx, qword [0x14001f598]
call qword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
mov byte [rsp + 0x20], al
lea rcx, [rbp - 0x60]
call fcn.14000e120
nop
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.14000e150
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14000babd
mov edx, 1
call fcn.140011760
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14000b300
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x40]
call qword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x14000bb12
test eax, eax
je 0x14000bb56
lea rcx, [rbp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x40]
call qword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
jne 0x14000bae3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp]
call fcn.140006af0
nop
mov r8, rax
lea rcx, [rbp - 0x20]
call fcn.14000d910
cmp qword [rax + 0x18], 0x10
jb 0x14000bb3a
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rbp - 0x20]
call fcn.1400058a0
nop
lea rcx, [rbp]
call fcn.1400058a0
test rdi, rdi
je 0x14000bb70
mov rcx, rdi
call fcn.14000f8d0
mov edx, 0x60
mov rcx, rdi
call fcn.140011760
cmp byte [0x14001f6ed], 0
jne 0x14000bc1f
cmp dword [0x14001f6f0], 0
je 0x14000bb90
lea rcx, [rsp + 0x30]
call fcn.140006a10
cmp dword [0x1400236c8], 0
setne al
test al, al
je 0x14000bba3
call fcn.14000abd0
mov rax, qword [0x1400234c8]
mov rcx, qword [rax + 0x138]
test rcx, rcx
jne 0x14000bbbd
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
call qword [rax + 0x10]
test al, al
je 0x14000bbf3
lea rax, [rbp + 0xb0]
mov qword [rbp + 0x30], rax
mov rax, qword [0x1400234c8]
mov rcx, qword [rax + 0x78]
test rcx, rcx
jne 0x14000bbe9
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea rdx, [rbp + 0x30]
call qword [rax + 0x10]
cmp qword [0x14001f688], 0
je 0x14000bc1f
mov rcx, qword [0x1400233b8]
test rcx, rcx
je 0x14000bc1f
call qword [sym.imp.KERNEL32.dll_SetEvent]
or edx, 0xffffffff
mov rcx, qword [0x14001f688]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [0x1400234d8]
test rax, rax
je 0x14000bc32
mov rcx, qword [rax + 8]
dec dword [rcx + 0x18]
mov rdx, qword [rbp + 0xc8]
test rdx, rdx
je 0x14000bc63
mov r8, qword [rbp + 0xd8]
sub r8, rdx
sar r8, 3
call fcn.14000d000
mov qword [rbp + 0xc8], r15
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xd0], xmm0
mov rdx, qword [rbp + 0xb0]
test rdx, rdx
je 0x14000bc94
mov r8, qword [rbp + 0xc0]
sub r8, rdx
sar r8, 3
call fcn.14000d000
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], r15
test rbx, rbx
je 0x14000bcb0
mov r8, qword [rbp + 0x80]
sub r8, rbx
sar r8, 3
mov rdx, rbx
call fcn.14000d000
nop
cmp dword [rsp + 0x38], 0
je 0x14000bcbe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov eax, esi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400115c0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x270
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret