Function at 0x14004258c
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.140012288
or r12d, 0xffffffff
lea r8, [0x1402a70f8]
mov edx, r12d
xor r9d, r9d
mov rcx, rsi
call fcn.140050e30
mov ebx, eax
mov rcx, rsi
shr ebx, 0x1d
not ebx
call fcn.140012e00
and ebx, 1
je 0x140042d25
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.14000ed74
test eax, eax
jne 0x140042d4b
mov r9d, edi
lea rdx, str.getJSModule_duktape_debugger__
mov rcx, rsi
call fcn.14000ed74
test eax, eax
jne 0x140042d4b
lea r13d, [r15 - 2]
mov rcx, rsi
mov edx, r13d
lea r8, [rsp + 0xb8]
call fcn.140011314
lea r8, [rsp + 0x50]
mov edx, r12d
mov rcx, rsi
mov rbx, rax
call fcn.140011314
xor ecx, ecx
mov rdi, rax
call fcn.14007957c
mov qword [0x1402f2120], rax
call fcn.14006cffc
mov r9, qword [0x1402f2120]
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.14006d084
mov rcx, rsi
mov qword [0x1402f2128], rax
call fcn.140051a48
mov rcx, rax
lea rdx, [0x140042268]
xor r8d, r8d
call fcn.1400792cc
mov r9d, dword [rsp + 0xb8]
lea rdx, str.promise
mov rcx, qword [0x1402f2128]
mov r8, rbx
call fcn.140040498
mov r9d, dword [rsp + 0x50]
lea rdx, str.duktape_debugger
mov rcx, qword [0x1402f2128]
mov r8, rdi
call fcn.140040498
mov rcx, rsi
call fcn.140012288
xor r9d, r9d
mov qword [rsp + 0x20], r15
lea r8, str._scriptSourceForDebugger
mov edx, r12d
mov rcx, rsi
call fcn.140050d90
xor r9d, r9d
mov qword [rsp + 0x20], r15
lea r8, str._scriptPathForDebugger
mov edx, r12d
mov rcx, rsi
mov rdi, rax
call fcn.140050d90
mov rcx, rsi
mov rbx, rax
call fcn.140012e00
test rdi, rdi
je 0x140042868
test rbx, rbx
jne 0x1400427ba
mov rcx, rsi
call fcn.140012204
lea r8, str.process
mov edx, r12d
mov rcx, rsi
call fcn.14000f4ac
lea r8, str.argv0
mov edx, r12d
mov rcx, rsi
call fcn.14000f4ac
mov edx, r12d
mov rcx, rsi
call fcn.1400100b0
mov ebx, r15d
cmp dword [rax], 8
jne 0x1400427a0
mov rbx, qword [rax + 8]
mov edx, 3
mov rcx, rsi
call fcn.140012ce0
lea rax, [rbx + 0x20]
neg rbx
sbb rbx, rbx
and rbx, rax
mov rcx, qword [0x1402f2128]
call fcn.140012204
mov rcx, qword [0x1402f2128]
mov rdx, rdi
call fcn.140011fd4
mov rcx, qword [0x1402f2128]
lea r8, str.split
mov edx, r12d
call fcn.14000f4ac
mov rcx, qword [0x1402f2128]
mov r8d, r12d
mov edx, r13d
call fcn.1400104a0
mov rcx, qword [0x1402f2128]
lea rdx, [0x140231b74]
call fcn.140011fd4
mov rcx, qword [0x1402f2128]
mov edx, 1
call fcn.14000e28c
mov rcx, qword [0x1402f2128]
lea r8, str._scriptTokens
mov edx, r13d
call fcn.14000f660
mov rcx, qword [0x1402f2128]
mov rdx, rbx
call fcn.140011fd4
mov rcx, qword [0x1402f2128]
lea r8, str._scriptPath
mov edx, r13d
call fcn.14000f660
mov rcx, qword [0x1402f2128]
call fcn.140012e00
mov rcx, rsi
call fcn.140012288
xor r8d, r8d
mov edx, 0xe8
mov rcx, rsi
call fcn.140012ae8
mov rcx, rax
mov r9d, 2
xor r8d, r8d
mov edx, 0xd0
call fcn.140079034
lea r13, str._DbgObj
mov ebx, 0xfffffffe
mov r8, r13
mov edx, ebx
mov rcx, rsi
mov rdi, rax
call fcn.14000f660
mov rcx, rsi
call fcn.140012e00
mov rcx, qword [0x1402f2128]
call fcn.140012204
mov rcx, qword [0x1402f2128]
lea r12d, [rbx + 8]
mov r15d, 0x18075380
mov dword [rsp + 0x20], r12d
mov r9d, r15d
lea r8d, [rbx + 3]
lea rdx, [0x140042294]
call fcn.1400126fc
mov rcx, qword [0x1402f2128]
mov rdx, rdi
call fcn.1400120e8
mov rcx, qword [0x1402f2128]
mov r8, r13
mov edx, ebx
call fcn.14000f660
mov rcx, qword [0x1402f2128]
lea r8, str.updateWebPort
mov edx, ebx
call fcn.14000f660
mov rcx, qword [0x1402f2128]
lea rdx, [0x14004235c]
mov r9d, r15d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
call fcn.1400126fc
mov rcx, qword [0x1402f2128]
mov rdx, rdi
call fcn.1400120e8
mov rcx, qword [0x1402f2128]
mov r8, r13
mov edx, ebx
call fcn.14000f660
mov rcx, rsi
call fcn.140051a48
mov rcx, qword [0x1402f2128]
mov rdx, rax
call fcn.1400120e8
mov rcx, qword [0x1402f2128]
lea rbx, str._HostChain
mov r8, rbx
lea edx, [r12 - 8]
call fcn.14000f660
mov rcx, qword [0x1402f2128]
lea r8, str.hostCooperate
lea edx, [r12 - 8]
call fcn.14000f660
mov rcx, qword [0x1402f2128]
lea rdx, [0x140042508]
mov r9d, r15d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
call fcn.1400126fc
mov rcx, qword [0x1402f2128]
mov rdx, rdi
call fcn.1400120e8
mov rcx, qword [0x1402f2128]
lea edx, [r12 - 8]
mov r8, r13
call fcn.14000f660
mov rcx, rsi
call fcn.140051a48
mov rcx, qword [0x1402f2128]
mov rdx, rax
call fcn.1400120e8
mov rcx, qword [0x1402f2128]
lea edx, [r12 - 8]
mov r8, rbx
call fcn.14000f660
mov rcx, qword [0x1402f2128]
lea r8, str.hostGC
lea edx, [r12 - 8]
call fcn.14000f660
mov rcx, qword [0x1402f2128]
lea rdx, [0x140042420]
mov r9d, r15d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
call fcn.1400126fc
mov rcx, qword [0x1402f2128]
mov rdx, rdi
call fcn.1400120e8
mov rcx, qword [0x1402f2128]
lea r15d, [r12 - 8]
mov edx, r15d
mov r8, r13
call fcn.14000f660
mov rcx, rsi
call fcn.140051a48
mov rcx, qword [0x1402f2128]
mov rdx, rax
call fcn.1400120e8
mov rcx, qword [0x1402f2128]
mov r8, rbx
mov edx, r15d
call fcn.14000f660
mov rcx, qword [0x1402f2128]
lea r8, str.detachCleanup
mov edx, r15d
call fcn.14000f660
mov rcx, qword [0x1402f2128]
mov edx, r14d
call fcn.140011e44
mov rcx, qword [0x1402f2128]
lea r8, str.transport
mov edx, r15d
call fcn.14000f660
mov rcx, qword [0x1402f2128]
mov edx, ebp
call fcn.140011e44
mov rcx, qword [0x1402f2128]
lea r8, str.webport
mov edx, r15d
call fcn.14000f660
mov rcx, qword [0x1402f2128]
call fcn.140012e00
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 [0x1402f2128]
mov qword [rdi + 0x90], rax
mov dword [rdi + 0xa8], ebp
call fcn.140012204
mov rcx, qword [0x1402f2128]
call fcn.1400124b4
mov rcx, rsi
call fcn.140012288
or r14d, 0xffffffff
lea r8, [0x140238b98]
mov edx, r14d
mov rcx, rsi
call fcn.14000f4ac
lea r8d, [r12 + 0xa]
mov edx, r14d
mov rcx, rsi
call fcn.14000fd74
lea r12d, [r15 + 3]
mov r8d, r12d
mov edx, r14d
mov rcx, rsi
call fcn.14000fdb0
xor ebp, ebp
test eax, eax
je 0x140042cd2
lea r13d, [r15 - 1]
mov edx, r15d
mov rcx, rsi
call fcn.1400100b0
mov r10d, 8
cmp dword [rax], r10d
jne 0x140042c1f
mov edx, r14d
mov rcx, rsi
call fcn.1400100b0
cmp dword [rax], r10d
jne 0x140042c1f
mov edx, r15d
mov rcx, rsi
call fcn.1400100b0
mov rcx, rbp
cmp dword [rax], r10d
jne 0x140042bce
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.1400100b0
mov rbx, rbp
cmp dword [rax], r10d
jne 0x140042bf2
mov rbx, qword [rax + 8]
mov rcx, qword [0x1402f2128]
mov rdx, r9
call fcn.140011fd4
mov rcx, qword [0x1402f2128]
lea rax, [rbx + 0x20]
neg rbx
sbb rdx, rdx
and rdx, rax
call fcn.140011fd4
jmp 0x140042ca2
mov edx, r15d
mov rcx, rsi
call fcn.1400100b0
cmp dword [rax], r10d
jne 0x140042cb4
mov edx, r14d
mov rcx, rsi
call fcn.1400100b0
cmp dword [rax], ebp
jne 0x140042cb4
mov edx, r15d
mov rcx, rsi
call fcn.1400100b0
mov rcx, rbp
cmp dword [rax], r10d
jne 0x140042c59
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.1400100b0
cmp dword [rax], ebp
jne 0x140042c7c
movsd xmm6, qword [rax + 8]
jmp 0x140042c84
movsd xmm6, qword [0x1402acbf8]
mov rcx, qword [0x1402f2128]
mov rdx, r9
call fcn.140011fd4
mov rcx, qword [0x1402f2128]
movaps xmm1, xmm6
call fcn.140011e04
mov rcx, qword [0x1402f2128]
mov r8d, r15d
mov edx, r13d
call fcn.14000f5d8
mov rcx, rsi
call fcn.140012e9c
mov r8d, r12d
mov edx, r14d
mov rcx, rsi
call fcn.14000fdb0
test eax, eax
jne 0x140042b91
mov edx, 3
mov rcx, rsi
call fcn.140012ce0
mov rcx, qword [0x1402f2128]
lea r8, str.attachOptions
mov edx, r15d
call fcn.14000f660
mov rcx, qword [0x1402f2128]
call fcn.140012e00
xor r9d, r9d
mov qword [rsp + 0x28], rbp
lea r8, [0x140042238]
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1402f2130], 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.14000ed74
mov edx, ebx
mov rcx, rsi
call fcn.140010188
xor eax, eax
jmp 0x140042d28