Function at 0x140041cec
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
xor r15d, r15d
movaps xmmword [rax - 0x38], xmm6
mov edi, r15d
mov ebp, r8d
mov r14d, edx
mov rsi, rcx
call fcn.140011b5c
or r12d, 0xffffffff
lea r8, [0x14024fbb8]
mov edx, r12d
xor r9d, r9d
mov rcx, rsi
call fcn.1400504e0
mov ebx, eax
mov rcx, rsi
shr ebx, 0x1d
not ebx
call fcn.1400126d4
and ebx, 1
je 0x140042485
mov rbx, qword [rsi + 0x70]
lea rdx, str.getJSModule_promise__
sub rbx, qword [rsi + 0x68]
mov edi, 0xe88
mov r9d, edi
sar rbx, 4
mov rcx, rsi
call fcn.14000e648
test eax, eax
jne 0x1400424ab
mov r9d, edi
lea rdx, str.getJSModule_duktape_debugger__
mov rcx, rsi
call fcn.14000e648
test eax, eax
jne 0x1400424ab
lea r13d, [r15 - 2]
mov rcx, rsi
mov edx, r13d
lea r8, [rsp + 0xb8]
call fcn.140010be8
lea r8, [rsp + 0x50]
mov edx, r12d
mov rcx, rsi
mov rbx, rax
call fcn.140010be8
xor ecx, ecx
mov rdi, rax
call fcn.14007846c
mov qword [0x1402972e0], rax
call fcn.14006c0f8
mov r9, qword [0x1402972e0]
mov rcx, rax
mov qword [rsp + 0x48], r15
xor r8d, r8d
mov qword [rsp + 0x40], r15
mov edx, 0x3c000000
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call fcn.14006c180
mov rcx, rsi
mov qword [0x1402972e8], rax
call fcn.1400510f8
mov rcx, rax
lea rdx, [0x1400419c8]
xor r8d, r8d
call fcn.1400781bc
mov r9d, dword [rsp + 0xb8]
lea rdx, str.promise
mov rcx, qword [0x1402972e8]
mov r8, rbx
call fcn.14003fd6c
mov r9d, dword [rsp + 0x50]
lea rdx, str.duktape_debugger
mov rcx, qword [0x1402972e8]
mov r8, rdi
call fcn.14003fd6c
mov rcx, rsi
call fcn.140011b5c
xor r9d, r9d
mov qword [rsp + 0x20], r15
lea r8, str._scriptSourceForDebugger
mov edx, r12d
mov rcx, rsi
call fcn.140050440
xor r9d, r9d
mov qword [rsp + 0x20], r15
lea r8, str._scriptPathForDebugger
mov edx, r12d
mov rcx, rsi
mov rdi, rax
call fcn.140050440
mov rcx, rsi
mov rbx, rax
call fcn.1400126d4
test rdi, rdi
je 0x140041fc8
test rbx, rbx
jne 0x140041f1a
mov rcx, rsi
call fcn.140011ad8
lea r8, str.process
mov edx, r12d
mov rcx, rsi
call fcn.14000ed80
lea r8, str.argv0
mov edx, r12d
mov rcx, rsi
call fcn.14000ed80
mov edx, r12d
mov rcx, rsi
call fcn.14000f984
mov ebx, r15d
cmp dword [rax], 8
jne 0x140041f00
mov rbx, qword [rax + 8]
mov edx, 3
mov rcx, rsi
call fcn.1400125b4
lea rax, [rbx + 0x20]
neg rbx
sbb rbx, rbx
and rbx, rax
mov rcx, qword [0x1402972e8]
call fcn.140011ad8
mov rcx, qword [0x1402972e8]
mov rdx, rdi
call fcn.1400118a8
mov rcx, qword [0x1402972e8]
lea r8, str.split
mov edx, r12d
call fcn.14000ed80
mov rcx, qword [0x1402972e8]
mov r8d, r12d
mov edx, r13d
call fcn.14000fd74
mov rcx, qword [0x1402972e8]
lea rdx, [0x1401e8e04]
call fcn.1400118a8
mov rcx, qword [0x1402972e8]
mov edx, 1
call fcn.14000db60
mov rcx, qword [0x1402972e8]
lea r8, str._scriptTokens
mov edx, r13d
call fcn.14000ef34
mov rcx, qword [0x1402972e8]
mov rdx, rbx
call fcn.1400118a8
mov rcx, qword [0x1402972e8]
lea r8, str._scriptPath
mov edx, r13d
call fcn.14000ef34
mov rcx, qword [0x1402972e8]
call fcn.1400126d4
mov rcx, rsi
call fcn.140011b5c
xor r8d, r8d
mov edx, 0xe8
mov rcx, rsi
call fcn.1400123bc
mov rcx, rax
mov r9d, 2
xor r8d, r8d
mov edx, 0xd0
call fcn.140077f24
lea r13, str._DbgObj
mov ebx, 0xfffffffe
mov r8, r13
mov edx, ebx
mov rcx, rsi
mov rdi, rax
call fcn.14000ef34
mov rcx, rsi
call fcn.1400126d4
mov rcx, qword [0x1402972e8]
call fcn.140011ad8
mov rcx, qword [0x1402972e8]
lea r12d, [rbx + 8]
mov r15d, 0x18075380
mov dword [rsp + 0x20], r12d
mov r9d, r15d
lea r8d, [rbx + 3]
lea rdx, [0x1400419f4]
call fcn.140011fd0
mov rcx, qword [0x1402972e8]
mov rdx, rdi
call fcn.1400119bc
mov rcx, qword [0x1402972e8]
mov r8, r13
mov edx, ebx
call fcn.14000ef34
mov rcx, qword [0x1402972e8]
lea r8, str.updateWebPort
mov edx, ebx
call fcn.14000ef34
mov rcx, qword [0x1402972e8]
lea rdx, [0x140041abc]
mov r9d, r15d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
call fcn.140011fd0
mov rcx, qword [0x1402972e8]
mov rdx, rdi
call fcn.1400119bc
mov rcx, qword [0x1402972e8]
mov r8, r13
mov edx, ebx
call fcn.14000ef34
mov rcx, rsi
call fcn.1400510f8
mov rcx, qword [0x1402972e8]
mov rdx, rax
call fcn.1400119bc
mov rcx, qword [0x1402972e8]
lea rbx, str._HostChain
mov r8, rbx
lea edx, [r12 - 8]
call fcn.14000ef34
mov rcx, qword [0x1402972e8]
lea r8, str.hostCooperate
lea edx, [r12 - 8]
call fcn.14000ef34
mov rcx, qword [0x1402972e8]
lea rdx, [0x140041c68]
mov r9d, r15d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
call fcn.140011fd0
mov rcx, qword [0x1402972e8]
mov rdx, rdi
call fcn.1400119bc
mov rcx, qword [0x1402972e8]
lea edx, [r12 - 8]
mov r8, r13
call fcn.14000ef34
mov rcx, rsi
call fcn.1400510f8
mov rcx, qword [0x1402972e8]
mov rdx, rax
call fcn.1400119bc
mov rcx, qword [0x1402972e8]
lea edx, [r12 - 8]
mov r8, rbx
call fcn.14000ef34
mov rcx, qword [0x1402972e8]
lea r8, str.hostGC
lea edx, [r12 - 8]
call fcn.14000ef34
mov rcx, qword [0x1402972e8]
lea rdx, [0x140041b80]
mov r9d, r15d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
call fcn.140011fd0
mov rcx, qword [0x1402972e8]
mov rdx, rdi
call fcn.1400119bc
mov rcx, qword [0x1402972e8]
lea r15d, [r12 - 8]
mov edx, r15d
mov r8, r13
call fcn.14000ef34
mov rcx, rsi
call fcn.1400510f8
mov rcx, qword [0x1402972e8]
mov rdx, rax
call fcn.1400119bc
mov rcx, qword [0x1402972e8]
mov r8, rbx
mov edx, r15d
call fcn.14000ef34
mov rcx, qword [0x1402972e8]
lea r8, str.detachCleanup
mov edx, r15d
call fcn.14000ef34
mov rcx, qword [0x1402972e8]
mov edx, r14d
call fcn.140011718
mov rcx, qword [0x1402972e8]
lea r8, str.transport
mov edx, r15d
call fcn.14000ef34
mov rcx, qword [0x1402972e8]
mov edx, ebp
call fcn.140011718
mov rcx, qword [0x1402972e8]
lea r8, str.webport
mov edx, r15d
call fcn.14000ef34
mov rcx, qword [0x1402972e8]
call fcn.1400126d4
xor r9d, r9d
mov qword [rdi + 8], rsi
xor edx, edx
lea r8d, [r12 + 0x3a]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov rcx, qword [0x1402972e8]
mov qword [rdi + 0x90], rax
mov dword [rdi + 0xa8], ebp
call fcn.140011ad8
mov rcx, qword [0x1402972e8]
call fcn.140011d88
mov rcx, rsi
call fcn.140011b5c
or r14d, 0xffffffff
lea r8, [0x1401efcb8]
mov edx, r14d
mov rcx, rsi
call fcn.14000ed80
lea r8d, [r12 + 0xa]
mov edx, r14d
mov rcx, rsi
call fcn.14000f648
lea r12d, [r15 + 3]
mov r8d, r12d
mov edx, r14d
mov rcx, rsi
call fcn.14000f684
xor ebp, ebp
test eax, eax
je 0x140042432
lea r13d, [r15 - 1]
mov edx, r15d
mov rcx, rsi
call fcn.14000f984
mov r10d, 8
cmp dword [rax], r10d
jne 0x14004237f
mov edx, r14d
mov rcx, rsi
call fcn.14000f984
cmp dword [rax], r10d
jne 0x14004237f
mov edx, r15d
mov rcx, rsi
call fcn.14000f984
mov rcx, rbp
cmp dword [rax], r10d
jne 0x14004232e
mov rcx, qword [rax + 8]
lea rax, [rcx + 0x20]
mov edx, r14d
neg rcx
mov rcx, rsi
sbb r9, r9
and r9, rax
call fcn.14000f984
mov rbx, rbp
cmp dword [rax], r10d
jne 0x140042352
mov rbx, qword [rax + 8]
mov rcx, qword [0x1402972e8]
mov rdx, r9
call fcn.1400118a8
mov rcx, qword [0x1402972e8]
lea rax, [rbx + 0x20]
neg rbx
sbb rdx, rdx
and rdx, rax
call fcn.1400118a8
jmp 0x140042402
mov edx, r15d
mov rcx, rsi
call fcn.14000f984
cmp dword [rax], r10d
jne 0x140042414
mov edx, r14d
mov rcx, rsi
call fcn.14000f984
cmp dword [rax], ebp
jne 0x140042414
mov edx, r15d
mov rcx, rsi
call fcn.14000f984
mov rcx, rbp
cmp dword [rax], r10d
jne 0x1400423b9
mov rcx, qword [rax + 8]
lea rax, [rcx + 0x20]
mov edx, r14d
neg rcx
mov rcx, rsi
sbb r9, r9
and r9, rax
call fcn.14000f984
cmp dword [rax], ebp
jne 0x1400423dc
movsd xmm6, qword [rax + 8]
jmp 0x1400423e4
movsd xmm6, qword [0x140255368]
mov rcx, qword [0x1402972e8]
mov rdx, r9
call fcn.1400118a8
mov rcx, qword [0x1402972e8]
movaps xmm1, xmm6
call fcn.1400116d8
mov rcx, qword [0x1402972e8]
mov r8d, r15d
mov edx, r13d
call fcn.14000eeac
mov rcx, rsi
call fcn.140012770
mov r8d, r12d
mov edx, r14d
mov rcx, rsi
call fcn.14000f684
test eax, eax
jne 0x1400422f1
mov edx, 3
mov rcx, rsi
call fcn.1400125b4
mov rcx, qword [0x1402972e8]
lea r8, str.attachOptions
mov edx, r15d
call fcn.14000ef34
mov rcx, qword [0x1402972e8]
call fcn.1400126d4
xor r9d, r9d
mov qword [rsp + 0x28], rbp
lea r8, [0x140041998]
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1402972f0], rax
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x60]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r9d, edi
lea rdx, str.process.emit_uncaughtException__Cannot_setup_debugger__missing_promise_and_or_duktape_debugger__
mov rcx, rsi
call fcn.14000e648
mov edx, ebx
mov rcx, rsi
call fcn.14000fa5c
xor eax, eax
jmp 0x140042488