Function at 0x14002f8f0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x410
mov rax, qword [0x1401bf0a0]
xor rax, rsp
mov qword [rsp + 0x400], rax
mov r14, rcx
mov byte [rsp + 0x40], 1
call fcn.14002e740
xor edx, edx
lea rcx, [rsp + 0x1e8]
call fcn.1400cfe20
nop
xor edx, edx
lea rcx, [rsp + 0x1c0]
call fcn.1400cfe20
nop
xor r9d, r9d
lea r8, [rsp + 0x1e8]
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x198]
call fcn.1400cd930
nop
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0xf8]
call fcn.1400863d0
nop
lea rcx, [rsp + 0x198]
call fcn.1400060b0
mov rcx, qword [rsp + 0x198]
xor r15d, r15d
mov qword [rsp + 0x198], r15
lea edx, [r15 + 0x10]
call fcn.1400ba290
nop
lea rcx, [rsp + 0x1c0]
call fcn.1400060b0
mov rcx, qword [rsp + 0x1c0]
mov qword [rsp + 0x1c0], r15
lea edx, [r15 + 0x10]
call fcn.1400ba290
nop
lea rcx, [rsp + 0x1e8]
call fcn.1400060b0
mov rcx, qword [rsp + 0x1e8]
mov qword [rsp + 0x1e8], r15
lea edx, [r15 + 0x10]
call fcn.1400ba290
lea rax, [rsp + 0x100]
cmp qword [rsp + 0x118], 8
cmovae rax, qword [rsp + 0x100]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x148], xmm0
mov qword [rsp + 0x158], rax
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x148]
call fcn.140011de0
lea r13, [rsp + 0x148]
mov qword [rsp + 0x48], r13
lea rcx, [rsp + 0x100]
cmp qword [rsp + 0x118], 8
cmovae rcx, qword [rsp + 0x100]
mov rax, qword [rsp + 0x110]
lea rcx, [rcx + rax*2]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x3d0], xmm0
mov qword [rsp + 0x3e0], rcx
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x3d0]
call fcn.140011de0
lea r12, [rsp + 0x3d0]
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x100]
cmp qword [rsp + 0x118], 8
cmovae rax, qword [rsp + 0x100]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x68]
call fcn.140011de0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x3d0]
lea rcx, [rsp + 0x68]
call fcn.14004dc50
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x3e0]
mov rdx, rsi
sub rdx, rbx
sar rdx, 1
lea rcx, [rsp + 0x148]
call fcn.14003ffb0
mov rdi, rax
nop
cmp rbx, rsi
je 0x14002fb3a
movzx ecx, word [rbx]
call fcn.14010cee0
mov word [rdi], ax
add rbx, 2
add rdi, 2
jmp 0x14002fb20
mov qword [r13 + 0x10], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x120], xmm0
mov rdx, r13
lea rcx, [rsp + 0x120]
call fcn.140086f90
mov rax, qword [r13 + 0x10]
mov qword [rsp + 0x130], rax
mov edx, 3
lea rcx, [rsp + 0x58]
call fcn.140087320
lea rcx, [rsp + 0x68]
call fcn.140011e50
lea rcx, [rsp + 0x58]
call fcn.140087400
nop
mov edx, 3
lea rcx, [rsp + 0x60]
call fcn.140087320
mov rcx, r12
call fcn.140011e50
lea rcx, [rsp + 0x60]
call fcn.140087400
nop
mov edx, 3
lea rcx, [rsp + 0x48]
call fcn.140087320
mov rcx, r13
call fcn.140011e50
lea rcx, [rsp + 0x48]
call fcn.140087400
mov edx, 3
lea rcx, [rsp + 0x48]
call fcn.140087320
lea rcx, [rsp + 0x120]
call fcn.140011e50
lea rcx, [rsp + 0x48]
call fcn.140087400
mov eax, 1
mov edx, 0x80000000
mov r9d, 0xffffffff
nop dword [rax]
nop word [rax + rax]
mov r8d, edx
or r8d, eax
mov ecx, r8d
and ecx, r9d
cmp ecx, edx
je 0x14002fc24
cmp ecx, eax
jne 0x14002fc27
xor r9d, r8d
shr edx, 1
add eax, eax
cmp edx, eax
ja 0x14002fc10
lea rdx, [rsp + 0x100]
cmp qword [rsp + 0x118], 8
cmovae rdx, qword [rsp + 0x100]
mov r8, qword [rsp + 0x110]
mov ecx, r9d
call fcn.140043920
mov ecx, eax
not ecx
lea rbx, [rsp + 0x3fa]
nop word [rax + rax]
sub rbx, 2
mov eax, 0xcccccccd
mul ecx
mov r8d, edx
shr r8d, 3
movzx eax, r8w
shl ax, 2
lea edx, [rax + r8]
add dx, dx
sub cx, dx
add cx, 0x30
mov word [rbx], cx
mov ecx, r8d
test r8d, r8d
jne 0x14002fc70
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x120], xmm0
mov qword [rsp + 0x138], r15
mov qword [rsp + 0x140], r15
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x41]
mov qword [rsp + 0x50], rax
lea ecx, [r8 + 0x10]
call fcn.140005bf0
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x120]
mov qword [rax], rcx
mov qword [rax + 8], r15
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x138], r15
mov qword [rsp + 0x140], 7
mov word [rsp + 0x128], r15w
lea rdx, [rsp + 0x3fa]
mov rcx, rbx
call fcn.14000f4f0
lea rax, [rsp + 0x3fa]
cmp rbx, rax
je 0x14002fd4c
lea r8, [rsp + 0x3fa]
sub r8, rbx
sar r8, 1
mov rdx, rbx
lea rcx, [rsp + 0x120]
call fcn.1400059a0
nop
mov r9d, setsockopt
lea rcx, [rsp + 0x120]
call fcn.140047640
mov rbx, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x148], xmm0
mov qword [rsp + 0x160], r15
mov qword [rsp + 0x168], r15
mov ecx, select
call fcn.140005bf0
mov qword [rax + 8], r15
mov qword [rsp + 0x148], rax
lea rcx, [rsp + 0x148]
mov qword [rax], rcx
mov rdx, rbx
lea rcx, [rsp + 0x148]
call fcn.140005f50
nop
mov r8d, 1
lea rdx, [0x140199368]
lea rcx, [rsp + 0x148]
call fcn.140083730
mov rbx, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x170], xmm0
mov qword [rsp + 0x188], r15
mov qword [rsp + 0x190], r15
mov ecx, select
call fcn.140005bf0
mov qword [rax + 8], r15
mov qword [rsp + 0x170], rax
lea rcx, [rsp + 0x170]
mov qword [rax], rcx
mov rdx, rbx
lea rcx, [rsp + 0x170]
call fcn.140005f50
nop
lea rcx, [rsp + 0x148]
call fcn.1400060b0
mov rcx, qword [rsp + 0x148]
mov qword [rsp + 0x148], r15
mov edx, select
call fcn.1400ba290
nop
lea rcx, [rsp + 0x120]
call fcn.1400060b0
mov rcx, qword [rsp + 0x120]
mov qword [rsp + 0x120], r15
mov edx, select
call fcn.1400ba290
mov rax, qword [0x1401c6c58]
test rax, rax
je 0x14002ff66
cmp dword [rax + 8], 0x28
jl 0x14002ff66
mov dword [rsp + 0x38], r15d
mov r9d, 0xc8
lea r8, str.wWinMain
mov edx, 0x28
lea rcx, [rsp + 0x240]
call fcn.140011cd0
mov rbx, rax
lea rdx, str.uPID:
lea rcx, [rax + 0x38]
call fcn.14000ebb0
lea rax, [rsp + 0x178]
cmp qword [rsp + 0x190], 8
cmovae rax, qword [rsp + 0x178]
lea rdx, str._null_
test rax, rax
cmovne rdx, rax
lea rcx, [rbx + 0x38]
call fcn.140085120
mov rdx, rbx
mov rcx, qword [0x1401c6c58]
call fcn.140011f50
nop
lea rax, vtable.plog::Record.0
mov qword [rsp + 0x240], rax
lea rcx, [rsp + 0x3a0]
call fcn.1400060b0
mov rcx, qword [rsp + 0x3a0]
mov qword [rsp + 0x3a0], r15
mov edx, select
call fcn.1400ba290
lea rcx, [rsp + 0x378]
call fcn.140011c30
mov rcx, qword [rsp + 0x378]
mov qword [rsp + 0x378], r15
mov edx, select
call fcn.1400ba290
lea rcx, [rsp + 0x278]
call fcn.140011b40
lea r8, [rsp + 0x178]
cmp qword [rsp + 0x190], 8
cmovae r8, qword [rsp + 0x178]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test rbx, rbx
je 0x1400301ec
test al, al
jne 0x1400301da
cmp byte [0x1401c7082], al
jne 0x14002ffed
lea r8, str.BA49C45H_B59A_4359_A07C_51B69B2571AD
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test rbx, rbx
je 0x14003022b
test al, al
jne 0x140030219
mov qword [0x1401c6c68], r14
call fcn.140002b50
call qword [rax + reloc.WS2_32.dll_htonl]
lea rcx, [rsp + 0x210]
call fcn.14002e490
nop
call fcn.140002b50
mov rax, qword [rax + 0xa8]
mov edx, 0xa
xor ecx, ecx
lea r8d, [rdx - 9]
call rax
mov ecx, reloc.WS2_32.dll_WSASetLastError
call fcn.1400ba2b0
mov qword [rsp + 0x48], rax
mov rcx, rax
call fcn.14002f680
mov rbx, rax
call fcn.14002e0f0
lea rcx, str.loader_rtl_wrp.htm
lea rdi, str.loader_rtl_wrp_win7.htm
test eax, eax
cmovne rdi, rcx
mov rsi, qword [rbx + 0x28]
call fcn.140002b50
mov rax, qword [rax + 0x38]
mov rdx, rdi
mov rcx, rsi
call rax
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14003007f
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, WSAGetLastError
mov rcx, r14
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov rdi, rax
cmp byte [0x1401c7088], 0
je 0x1400300d7
cmp byte [0x1401c7083], 0
je 0x1400300d7
lea rax, vtable.sciter::debug_output.0
mov qword [rsp + 0x48], rax
call fcn.140002b50
mov r9, qword [rax + 0xf0]
lea r8, [0x140080090]
lea rdx, [rsp + 0x48]
xor ecx, ecx
call r9
lea rax, [rsp + 0x48]
mov qword [0x1401c77c0], rax
cmp qword [rbx + 0x28], 0
je 0x140030133
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140030133
lea r8, [rsp + 0x80]
mov rdx, rdi
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1400300d7
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1400300d7
lea rcx, [rsp + 0x210]
call fcn.1400060b0
mov rcx, qword [rsp + 0x210]
mov qword [rsp + 0x210], r15
mov edx, select
call fcn.1400ba290
nop
lea rcx, [rsp + 0x170]
call fcn.1400060b0
mov rcx, qword [rsp + 0x170]
mov qword [rsp + 0x170], r15
mov edx, select
call fcn.1400ba290
nop
lea rcx, [rsp + 0xf8]
call fcn.1400060b0
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0xf8], r15
mov edx, select
call fcn.1400ba290
nop
xor eax, eax
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.1400ba210
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsp + 0x40], 0
lea rdx, str.The_application_is_already_running
lea rcx, [rsp + 0xc8]
call fcn.14000fee0
lea rdx, [0x1401bd398]
lea rcx, [rsp + 0xc8]
call fcn.1400d9440
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsp + 0x40], 0
lea rdx, str.The_application_is_already_running
lea rcx, [rsp + 0xb0]
call fcn.14000fee0
lea rdx, [0x1401bd398]
lea rcx, [rsp + 0xb0]
call fcn.1400d9440
int3