Function at 0x140018d10
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [0x140047ce0]
call fcn.140004180
lea rdx, str._n_n___PureBasic_Debugger_Report
mov rcx, rdi
mov rbp, qword [rax]
call sub.msvcrt.dll_fprintf
lea rdx, str._n_n_n
mov rcx, rdi
call sub.msvcrt.dll_fprintf
lea rdx, str._Included_source_files__n
mov rcx, rdi
call sub.msvcrt.dll_fprintf
lea r8, [0x14004004c]
lea rdx, str.___s_n
mov rcx, rdi
call sub.msvcrt.dll_fprintf
xor esi, esi
cmp dword [0x140040083], esi
jle 0x140018db0
lea rbx, [0x140040087]
nop word [rax + rax]
mov r8, qword [rbx]
lea rdx, str.___s_n
mov rcx, rdi
call sub.msvcrt.dll_fprintf
inc esi
lea rbx, [rbx + 8]
cmp esi, dword [0x140040083]
jl 0x140018d90
lea rdx, [0x14003680c]
mov rcx, rdi
call sub.msvcrt.dll_fprintf
lea rdx, str._Program_execution_information__n
mov rcx, rdi
call sub.msvcrt.dll_fprintf
xor ecx, ecx
call sub.msvcrt.dll__time64
lea rdx, [0x140033d30]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call sub.msvcrt.dll_fprintf
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll__ctime64
lea rdx, str.____Execution_time:__s
mov rcx, rdi
mov r8, rax
call sub.msvcrt.dll_fprintf
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea rdx, str._______Commandline:__s
mov r8, rax
mov rcx, rdi
call sub.msvcrt.dll_fprintf
lea rdx, [0x1400377e8]
mov rcx, rdi
call sub.msvcrt.dll_fprintf
lea rdx, str._Error_information__n
mov rcx, rdi
call sub.msvcrt.dll_fprintf
mov r8d, dword [rbp + 0x18]
lea rdx, str.___Current_Line:__d_n
and r8d, 0xfffff
mov rcx, rdi
inc r8d
call sub.msvcrt.dll_fprintf
mov ecx, dword [rbp + 0x18]
call fcn.140015e20
lea rdx, str.___Current_File:__s_n
mov rcx, rdi
mov r8, rax
call sub.msvcrt.dll_fprintf
mov eax, dword [rbp + 0x24]
add eax, 0xfffffffe
cmp eax, 7
ja case.0x140018e90.4
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x19068]
add rcx, rdx
jmp rcx
lea rdx, str.__Program_State:_error_n
jmp 0x140018ede
lea rdx, str.__Program_State:_halted_by__CallDebugger__n
jmp 0x140018ede
lea rdx, str.__Program_State:_program_ended_n
jmp 0x140018ede
lea rdx, str.__Program_State:_fatal_error_n
jmp 0x140018ede
lea rdx, str.__Program_State:_halted_by_Breakpoint_n
jmp 0x140018ede
lea rdx, str.__Program_State:_halted_by_User_n
jmp 0x140018ede
lea rdx, str.__Program_State:_halted_by_Data_Breakpoint_n
mov rcx, rdi
call sub.msvcrt.dll_fprintf
lea rdx, str.__Program_State:_unknown_n
mov rcx, rdi
call sub.msvcrt.dll_fprintf
lea rdx, [0x14003680c]
mov rcx, rdi
call sub.msvcrt.dll_fprintf
lea rdx, str._Global_variables_
mov rcx, rdi
call sub.msvcrt.dll_fprintf
mov r9d, 1
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rdi
call fcn.14001c940
lea rdx, [0x1400377e8]
mov rcx, rdi
call sub.msvcrt.dll_fprintf
lea rdx, str._Execution_history_
mov rcx, rdi
call sub.msvcrt.dll_fprintf
mov edx, 1
mov rcx, rdi
call fcn.14001a750
lea rdx, [0x140033d30]
mov rcx, rdi
call sub.msvcrt.dll_fprintf
lea rdx, str._Arrays__n
mov rcx, rdi
call sub.msvcrt.dll_fprintf
or r8d, 0xffffffff
xor edx, edx
mov rcx, rdi
call fcn.140019f40
lea rdx, [0x140033d30]
mov rcx, rdi
call sub.msvcrt.dll_fprintf
lea rdx, str._Linked_Lists__n
mov rcx, rdi
call sub.msvcrt.dll_fprintf
or r8d, 0xffffffff
xor edx, edx
mov rcx, rdi
call fcn.14001ada0
lea rdx, [0x140033d30]
mov rcx, rdi
call sub.msvcrt.dll_fprintf
lea rdx, str._Maps__n
mov rcx, rdi
call sub.msvcrt.dll_fprintf
or r8d, 0xffffffff
xor edx, edx
mov rcx, rdi
call fcn.14001b6c0
lea rdx, [0x140033d30]
mov rcx, rdi
call sub.msvcrt.dll_fprintf
lea rdx, str._Environment_variables__n
mov rcx, rdi
call sub.msvcrt.dll_fprintf
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
cmp byte [rax], 0
mov rsi, rax
mov rbx, rax
je 0x14001902a
nop word [rax + rax]
lea rdx, str.___s_n
mov r8, rbx
mov rcx, rdi
call sub.msvcrt.dll_fprintf
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140019016
inc rbx
add rbx, rcx
cmp byte [rbx], 0
jne 0x140019000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea rdx, [0x14003680c]
mov rcx, rdi
call sub.msvcrt.dll_fprintf
lea rdx, str._n_n_n
mov rcx, rdi
call sub.msvcrt.dll_fprintf
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret