Function at 0x140003210
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x140021008]
xor rax, rsp
mov qword [rbp + 0xc0], rax
xor r12d, r12d
mov edi, ecx
lea rcx, [0x140021040]
mov qword [rbp - 0x70], rdx
mov rbx, rcx
mov qword [rsp + 0x78], rcx
mov dword [rsp + 0x58], edi
mov r14d, r12d
mov qword [rbp - 0x50], rdx
mov r13d, r12d
mov dword [rsp + 0x60], r12d
mov r15d, r12d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0x64], r12d
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x50], r12d
mov qword [rbp - 0x78], r12
mov dword [rsp + 0x4c], r12d
call fcn.14000bfe0
mov edx, 1
mov qword [rbp - 0x80], rax
mov ecx, edx
mov rsi, rax
call qword [sym.imp.php8.dll_php_win32_console_fileno_set_vt100]
lea edx, [r12 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.php8.dll_php_win32_console_fileno_set_vt100]
lea rax, [0x14000ee90]
mov qword [0x140021148], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___p__fmode]
xor ecx, ecx
mov dword [rax], 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
lea ecx, [r12 + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
lea ecx, [r12 + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
lea rcx, [rbp - 0x68]
call fcn.1400010c0
mov dword [rsp + 0x30], 2
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 1
lea r9, [rsp + 0x70]
lea r8, [0x14000ec20]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.php8.dll_php_getopt]
cmp eax, 0xffffffff
je 0x140003449
add eax, 2
lea r8, str.cli_set_process_title
lea rcx, [0x140000000]
cmp eax, 0x78
ja case.0x1400033a6.6
cdqe
movzx eax, byte [rcx + rax + 0x36e4]
mov edx, dword [rcx + rax*4 + 0x36c0]
add rdx, rcx
jmp rdx
test r15, r15
je 0x1400033b6
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov r15, rax
mov qword [rbp - 0x78], rax
jmp case.0x1400033a6.6
mov dword [rsp + 0x4c], 1
jmp case.0x1400033a6.6
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp - 0x68]
call qword [sym.imp.php8.dll_php_ini_builder_define]
jmp case.0x1400033a6.6
lea rbx, str.cli_server
mov qword [0x140021338], r8
mov qword [rsp + 0x78], rbx
jmp case.0x1400033a6.6
mov dword [rsp + 0x50], 1
jmp case.0x1400033a6.6
mov rcx, qword [rsi]
call fcn.140001880
jmp 0x140003640
mov rcx, qword [rsi]
call fcn.140001880
mov r14d, 1
mov dword [rsp + 0x40], r14d
jmp 0x140003640
lea r14, [0x140021040]
mov rbx, r14
mov qword [rsp + 0x78], rbx
jmp 0x140003450
lea r14, [0x140021040]
lea rax, [0x140001810]
mov rcx, rbx
mov qword [rbx + 0xf0], rax
mov qword [rbx + 0xa0], r15
mov dword [rbx + 0xf8], 1
mov dword [rbx + 0xc4], 1
call qword [sym.imp.php8.dll_sapi_startup]
mov eax, dword [rsp + 0x4c]
mov r13d, 1
mov dword [rbx + 0xc0], eax
mov rax, qword [rsi]
mov qword [rbx + 0xb8], rax
mov dword [rsp + 0x64], r13d
cmp rbx, r14
jne 0x1400034bb
lea r8d, [r13 + 0x6d]
lea rdx, str.html_errors0_nregister_argc_argv1_nimplicit_flush1_noutput_buffering0_nmax_execution_time0_nmax_input_time_1_n
lea rcx, [rbp - 0x68]
call qword [sym.imp.php8.dll_php_ini_builder_prepend]
lea rcx, [rbp - 0x68]
call fcn.1400010e0
mov qword [rbx + 0x100], rax
mov rcx, rbx
mov rax, qword [rbx + 0x10]
call qword [0x14000d908]
cmp eax, 0xffffffff
jne 0x1400034ea
mov r14d, r13d
mov dword [rsp + 0x40], r13d
jmp 0x140003640
xor ecx, ecx
mov dword [rsp + 0x68], r13d
call qword [sym.imp.php8.dll_php_win32_cp_cli_do_setup]
call qword [sym.imp.php8.dll_php_win32_cp_get_orig]
mov ecx, dword [rax]
mov dword [0x140021a6c], ecx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x44]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r14, rax
mov qword [rbp - 0x48], rax
movsxd rax, dword [rsp + 0x44]
mov rcx, rax
mov dword [rsp + 0x58], eax
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x80], rax
mov rsi, rax
test rax, rax
je 0x140003577
mov edi, r12d
cmp dword [rsp + 0x44], r12d
jle 0x140003577
nop dword [rax]
movsxd rax, edi
xor edx, edx
lea rbx, [rax*8]
mov rcx, qword [rbx + r14]
lea r8, [rdx - 1]
call qword [sym.imp.php8.dll_php_win32_cp_conv_w_to_cur]
inc edi
mov qword [rbx + rsi], rax
cmp edi, dword [rsp + 0x44]
jl 0x140003550
mov edx, r13d
mov dword [rsp + 0x60], r13d
lea rcx, [0x140001e40]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
cmp dword [rsp + 0x50], r12d
je 0x1400035a1
mov rax, qword [sym.imp.php8.dll_compiler_globals]
or dword [rax + 0xac], 3
mov rax, qword [sym.imp.php8.dll_executor_globals]
mov rdx, rsp
mov qword [rax + 0x1a0], r12
mov rcx, qword [sym.imp.php8.dll_executor_globals]
mov rax, qword [rcx + 0x1a0]
mov qword [rbp - 0x58], rax
lea rax, [rbp - 0x40]
mov qword [rcx + 0x1a0], rax
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll___intrinsic_setjmp
mov edi, dword [rsp + 0x58]
mov rsi, qword [rbp - 0x80]
test eax, eax
jne 0x140003613
lea rax, [0x140021040]
mov rdx, rsi
mov ecx, edi
cmp qword [rsp + 0x78], rax
jne 0x140003605
call fcn.140001e60
mov r14d, eax
mov dword [rsp + 0x40], eax
jmp 0x140003618
call fcn.140009bc0
mov r14d, eax
mov dword [rsp + 0x40], eax
jmp 0x140003618
mov r14d, dword [rsp + 0x40]
mov rax, qword [sym.imp.php8.dll_executor_globals]
mov rcx, qword [rbp - 0x58]
mov r12d, dword [rsp + 0x60]
mov r13d, dword [rsp + 0x64]
mov r15, qword [rbp - 0x78]
mov qword [rax + 0x1a0], rcx
mov rax, qword [rbp - 0x50]
mov qword [rbp - 0x70], rax
test r15, r15
je 0x14000364e
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp - 0x68]
call fcn.1400010d0
cmp dword [rsp + 0x68], 0
je 0x140003664
call qword [sym.imp.php8.dll_php_module_shutdown]
test r13d, r13d
je 0x14000366f
call qword [sym.imp.php8.dll_sapi_shutdown]
xor ecx, ecx
call qword [sym.imp.php8.dll_php_win32_cp_cli_do_restore]
test r12d, r12d
je 0x1400036a9
test edi, edi
jle 0x140003696
mov rbx, rsi
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x140003683
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x80], rax
call fcn.14000c070
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3