Function at 0x14004d50c
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.14001b968
or r12d, 0xffffffff
lea r8, [0x1402830c0]
mov edx, r12d
xor r9d, r9d
mov rcx, rsi
call fcn.14005dbd4
mov ebx, eax
mov rcx, rsi
shr ebx, 0x1d
not ebx
call fcn.14001c4f8
and ebx, 1
je 0x14004dca2
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.1400184b0
test eax, eax
jne 0x14004dcc8
mov r9d, edi
lea rdx, str.getJSModule_duktape_debugger__
mov rcx, rsi
call fcn.1400184b0
test eax, eax
jne 0x14004dcc8
lea r13d, [r15 - 2]
mov rcx, rsi
mov edx, r13d
lea r8, [rsp + 0xb8]
call fcn.14001a9f0
lea r8, [rsp + 0x50]
mov edx, r12d
mov rcx, rsi
mov rbx, rax
call fcn.14001a9f0
xor ecx, ecx
mov rdi, rax
call fcn.14008c084
mov qword [0x1402d3980], rax
call fcn.14007f1d4
mov r9, qword [0x1402d3980]
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.14007f2a0
mov rcx, rsi
mov qword [0x1402d3988], rax
call fcn.14005eb5c
mov rcx, rax
lea rdx, [0x14004d1e8]
xor r8d, r8d
call fcn.14008bdbc
mov r9d, dword [rsp + 0xb8]
lea rdx, str.promise
mov rcx, qword [0x1402d3988]
mov r8, rbx
call fcn.140049bd8
mov r9d, dword [rsp + 0x50]
lea rdx, str.duktape_debugger
mov rcx, qword [0x1402d3988]
mov r8, rdi
call fcn.140049bd8
mov rcx, rsi
call fcn.14001b968
xor r9d, r9d
mov qword [rsp + 0x20], r15
lea r8, str._scriptSourceForDebugger
mov edx, r12d
mov rcx, rsi
call fcn.14005db34
xor r9d, r9d
mov qword [rsp + 0x20], r15
lea r8, str._scriptPathForDebugger
mov edx, r12d
mov rcx, rsi
mov rdi, rax
call fcn.14005db34
mov rcx, rsi
mov rbx, rax
call fcn.14001c4f8
test rdi, rdi
je 0x14004d7e5
test rbx, rbx
jne 0x14004d73a
mov rcx, rsi
call fcn.14001b8e4
lea r8, str.process
mov edx, r12d
mov rcx, rsi
call fcn.140018be8
lea r8, str.argv0
mov edx, r12d
mov rcx, rsi
call fcn.140018be8
mov edx, r12d
mov rcx, rsi
call fcn.140019798
mov ebx, r15d
cmp dword [rax], 8
jne 0x14004d720
mov rbx, qword [rax + 8]
mov edx, 3
mov rcx, rsi
call fcn.14001c3d8
lea rax, [rbx + 0x20]
neg rbx
sbb rbx, rbx
and rbx, rax
mov rcx, qword [0x1402d3988]
call fcn.14001b8e4
mov rcx, qword [0x1402d3988]
mov rdx, rdi
call fcn.14001b6b4
mov rcx, qword [0x1402d3988]
lea r8, str.split
mov edx, r12d
call fcn.140018be8
mov rcx, qword [0x1402d3988]
mov edx, r13d
call fcn.140019b88
mov rcx, qword [0x1402d3988]
lea rdx, [0x140245aa0]
call fcn.14001b6b4
mov rcx, qword [0x1402d3988]
mov edx, 1
call fcn.1400179c8
mov rcx, qword [0x1402d3988]
lea r8, str._scriptTokens
mov edx, r13d
call fcn.140018d9c
mov rcx, qword [0x1402d3988]
mov rdx, rbx
call fcn.14001b6b4
mov rcx, qword [0x1402d3988]
lea r8, str._scriptPath
mov edx, r13d
call fcn.140018d9c
mov rcx, qword [0x1402d3988]
call fcn.14001c4f8
mov rcx, rsi
call fcn.14001b968
xor r8d, r8d
mov edx, 0xe8
mov rcx, rsi
call fcn.14001c1e0
mov rcx, rax
mov r9d, 2
xor r8d, r8d
mov edx, 0xd0
call fcn.14008ba98
lea r13, str._DbgObj
mov ebx, 0xfffffffe
mov r8, r13
mov edx, ebx
mov rcx, rsi
mov rdi, rax
call fcn.140018d9c
mov rcx, rsi
call fcn.14001c4f8
mov rcx, qword [0x1402d3988]
call fcn.14001b8e4
mov rcx, qword [0x1402d3988]
lea r12d, [rbx + 8]
mov r15d, 0x18075380
mov dword [rsp + 0x20], r12d
mov r9d, r15d
lea r8d, [rbx + 3]
lea rdx, [0x14004d214]
call fcn.14001bddc
mov rcx, qword [0x1402d3988]
mov rdx, rdi
call fcn.14001b7c8
mov rcx, qword [0x1402d3988]
mov r8, r13
mov edx, ebx
call fcn.140018d9c
mov rcx, qword [0x1402d3988]
lea r8, str.updateWebPort
mov edx, ebx
call fcn.140018d9c
mov rcx, qword [0x1402d3988]
lea rdx, [0x14004d2dc]
mov r9d, r15d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
call fcn.14001bddc
mov rcx, qword [0x1402d3988]
mov rdx, rdi
call fcn.14001b7c8
mov rcx, qword [0x1402d3988]
mov r8, r13
mov edx, ebx
call fcn.140018d9c
mov rcx, rsi
call fcn.14005eb5c
mov rcx, qword [0x1402d3988]
mov rdx, rax
call fcn.14001b7c8
mov rcx, qword [0x1402d3988]
lea rbx, str._HostChain
mov r8, rbx
lea edx, [r12 - 8]
call fcn.140018d9c
mov rcx, qword [0x1402d3988]
lea r8, str.hostCooperate
lea edx, [r12 - 8]
call fcn.140018d9c
mov rcx, qword [0x1402d3988]
lea rdx, [0x14004d488]
mov r9d, r15d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
call fcn.14001bddc
mov rcx, qword [0x1402d3988]
mov rdx, rdi
call fcn.14001b7c8
mov rcx, qword [0x1402d3988]
lea edx, [r12 - 8]
mov r8, r13
call fcn.140018d9c
mov rcx, rsi
call fcn.14005eb5c
mov rcx, qword [0x1402d3988]
mov rdx, rax
call fcn.14001b7c8
mov rcx, qword [0x1402d3988]
lea edx, [r12 - 8]
mov r8, rbx
call fcn.140018d9c
mov rcx, qword [0x1402d3988]
lea r8, str.hostGC
lea edx, [r12 - 8]
call fcn.140018d9c
mov rcx, qword [0x1402d3988]
lea rdx, [0x14004d3a0]
mov r9d, r15d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
call fcn.14001bddc
mov rcx, qword [0x1402d3988]
mov rdx, rdi
call fcn.14001b7c8
mov rcx, qword [0x1402d3988]
lea r15d, [r12 - 8]
mov edx, r15d
mov r8, r13
call fcn.140018d9c
mov rcx, rsi
call fcn.14005eb5c
mov rcx, qword [0x1402d3988]
mov rdx, rax
call fcn.14001b7c8
mov rcx, qword [0x1402d3988]
mov r8, rbx
mov edx, r15d
call fcn.140018d9c
mov rcx, qword [0x1402d3988]
lea r8, str.detachCleanup
mov edx, r15d
call fcn.140018d9c
mov rcx, qword [0x1402d3988]
mov edx, r14d
call fcn.14001b524
mov rcx, qword [0x1402d3988]
lea r8, str.transport
mov edx, r15d
call fcn.140018d9c
mov rcx, qword [0x1402d3988]
mov edx, ebp
call fcn.14001b524
mov rcx, qword [0x1402d3988]
lea r8, str.webport
mov edx, r15d
call fcn.140018d9c
mov rcx, qword [0x1402d3988]
call fcn.14001c4f8
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 [0x1402d3988]
mov qword [rdi + 0x90], rax
mov dword [rdi + 0xa8], ebp
call fcn.14001b8e4
mov rcx, qword [0x1402d3988]
call fcn.14001bb94
mov rcx, rsi
call fcn.14001b968
or r14d, 0xffffffff
lea r8, [0x14024f1b0]
mov edx, r14d
mov rcx, rsi
call fcn.140018be8
lea r8d, [r12 + 0xa]
mov edx, r14d
mov rcx, rsi
call fcn.14001945c
lea r12d, [r15 + 3]
mov r8d, r12d
mov edx, r14d
mov rcx, rsi
call fcn.140019498
xor ebp, ebp
test eax, eax
je 0x14004dc4f
lea r13d, [r15 - 1]
mov edx, r15d
mov rcx, rsi
call fcn.140019798
mov r10d, 8
cmp dword [rax], r10d
jne 0x14004db9c
mov edx, r14d
mov rcx, rsi
call fcn.140019798
cmp dword [rax], r10d
jne 0x14004db9c
mov edx, r15d
mov rcx, rsi
call fcn.140019798
mov rcx, rbp
cmp dword [rax], r10d
jne 0x14004db4b
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.140019798
mov rbx, rbp
cmp dword [rax], r10d
jne 0x14004db6f
mov rbx, qword [rax + 8]
mov rcx, qword [0x1402d3988]
mov rdx, r9
call fcn.14001b6b4
mov rcx, qword [0x1402d3988]
lea rax, [rbx + 0x20]
neg rbx
sbb rdx, rdx
and rdx, rax
call fcn.14001b6b4
jmp 0x14004dc1f
mov edx, r15d
mov rcx, rsi
call fcn.140019798
cmp dword [rax], r10d
jne 0x14004dc31
mov edx, r14d
mov rcx, rsi
call fcn.140019798
cmp dword [rax], ebp
jne 0x14004dc31
mov edx, r15d
mov rcx, rsi
call fcn.140019798
mov rcx, rbp
cmp dword [rax], r10d
jne 0x14004dbd6
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.140019798
cmp dword [rax], ebp
jne 0x14004dbf9
movsd xmm6, qword [rax + 8]
jmp 0x14004dc01
movsd xmm6, qword [0x14028a3b0]
mov rcx, qword [0x1402d3988]
mov rdx, r9
call fcn.14001b6b4
mov rcx, qword [0x1402d3988]
movaps xmm1, xmm6
call fcn.14001b4e4
mov rcx, qword [0x1402d3988]
mov r8d, r15d
mov edx, r13d
call fcn.140018d14
mov rcx, rsi
call fcn.14001c594
mov r8d, r12d
mov edx, r14d
mov rcx, rsi
call fcn.140019498
test eax, eax
jne 0x14004db0e
mov edx, 3
mov rcx, rsi
call fcn.14001c3d8
mov rcx, qword [0x1402d3988]
lea r8, str.attachOptions
mov edx, r15d
call fcn.140018d9c
mov rcx, qword [0x1402d3988]
call fcn.14001c4f8
xor r9d, r9d
mov qword [rsp + 0x28], rbp
lea r8, [0x14004d1b8]
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1402d3990], 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.1400184b0
mov edx, ebx
mov rcx, rsi
call fcn.140019870
xor eax, eax
jmp 0x14004dca5