Function at 0x14003a140
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x168
mov rsi, rdx
mov r14, rcx
add rcx, 8
lea rdx, [rsp + 0x20]
call qword [sym.imp.libp3dtool.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_Filename::get_basename_wo_extension_void____ptr64]
lea rdx, str..__Automatically_generated_by
mov rcx, rsi
call fcn.140001ad0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.140001940
mov rcx, rax
lea rdx, str.__write_man_n
call fcn.140001ad0
lea rdx, str..TH
mov rcx, rsi
call fcn.140001ad0
lea rdi, [r14 + 0xa0]
cmp qword [rdi + 0x18], 0x10
jb 0x14003a1af
mov rbx, qword [rdi]
jmp 0x14003a1b2
mov rbx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14003a1be
mov rcx, qword [rdi]
jmp 0x14003a1c1
mov rcx, rdi
add rcx, qword [rdi + 0x10]
cmp rbx, rcx
je 0x14003a1e2
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov edx, eax
mov rcx, rsi
call fcn.140031ee0
inc rbx
jmp 0x14003a1b2
lea rcx, str.SOURCE_DATE_EPOCH
mov byte [rsp + 0x60], 0
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14003a22a
cmp byte [rax], 0
je 0x14003a22a
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0xa]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoll]
mov qword [rsp + 0x190], rax
test rax, rax
jle 0x14003a22a
lea rcx, [rsp + 0x190]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__gmtime64]
jmp 0x14003a24e
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rsp + 0x190], rax
cmp rax, 0xffffffffffffffff
je 0x14003a272
lea rcx, [rsp + 0x190]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x14003a272
mov r9, rax
lea r8, str._d__B__Y
mov edx, 0x100
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
test rax, rax
jne 0x14003a277
mov byte [rsp + 0x60], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.libp3dtool.dll_public:_static_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_PandaSystem::get_version_string_void_]
lea rdx, str._1__
mov rcx, rsi
mov rbx, rax
call fcn.140001ad0
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.140001ad0
mov rcx, rax
lea rdx, [0x1400484a4]
call fcn.140001ad0
mov rcx, rax
mov rdx, rbx
call fcn.140001940
mov rcx, rax
lea rdx, str.__Panda3D_n
call fcn.140001ad0
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x14003a326
mov rcx, qword [rsp + 0x40]
inc rax
cmp rax, 0x1000
jb 0x14003a321
test cl, 0x1f
je 0x14003a2f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14003a301
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14003a311
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003a31e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14003ea5c
lea rdx, str..SH_NAME_n
mov rcx, rsi
call fcn.140001ad0
cmp qword [r14 + 0xd0], 0
mov rdx, rdi
mov rcx, rsi
je 0x14003a363
call fcn.140001940
mov rcx, rax
lea rdx, [0x1400484bc]
call fcn.140001ad0
mov rcx, rax
lea rdx, [r14 + 0xc0]
call fcn.140001940
lea rdx, [0x140041c28]
mov rcx, rax
call fcn.140001ad0
lea rdx, str..SH_SYNOPSIS_n
mov rcx, rsi
call fcn.140001ad0
lea rdx, [rsp + 0x1a8]
lea rcx, [r14 + 0x100]
call qword [sym.imp.libp3dtool.dll__begin___vector_V__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__V__pallocator_array_V__basic_]
lea rdx, [rsp + 0x1a0]
lea rcx, [r14 + 0x100]
mov rbx, qword [rax]
call qword [sym.imp.libp3dtool.dll__end___vector_V__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__V__pallocator_array_V__basic_st]
cmp rbx, qword [rax]
je 0x14003a401
lea rdx, [0x1400484e0]
mov rcx, rsi
call fcn.140001ad0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.140001940
mov rcx, rax
lea rdx, str._fR
call fcn.140001ad0
mov rcx, rax
mov rdx, rbx
call fcn.140001940
mov rcx, rax
lea rdx, [0x140041c28]
call fcn.140001ad0
add rbx, 0x20
lea rdx, [rsp + 0x1a0]
lea rcx, [r14 + 0x100]
call qword [sym.imp.libp3dtool.dll__end___vector_V__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__V__pallocator_array_V__basic_st]
cmp rbx, qword [rax]
je 0x14003a492
nop dword [rax + rax]
lea rdx, str..br_n
mov rcx, rsi
call fcn.140001ad0
lea rdx, [0x1400484e0]
mov rcx, rsi
call fcn.140001ad0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.140001940
mov rcx, rax
lea rdx, str._fR
call fcn.140001ad0
mov rcx, rax
mov rdx, rbx
call fcn.140001940
mov rcx, rax
lea rdx, [0x140041c28]
call fcn.140001ad0
lea rdx, [rsp + 0x1a0]
add rbx, 0x20
lea rcx, [r14 + 0x100]
call qword [sym.imp.libp3dtool.dll__end___vector_V__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__V__pallocator_array_V__basic_st]
cmp rbx, qword [rax]
jne 0x14003a420
lea rdx, str..SH_DESCRIPTION_n
mov rcx, rsi
call fcn.140001ad0
xor r8b, r8b
lea rdi, [r14 + 0xe0]
cmp qword [rdi + 0x18], 0x10
jb 0x14003a4b7
mov rbx, qword [rdi]
jmp 0x14003a4c0
mov rbx, rdi
nop word [rax + rax]
cmp qword [rdi + 0x18], 0x10
jb 0x14003a4cc
mov rcx, qword [rdi]
jmp 0x14003a4cf
mov rcx, rdi
add rcx, qword [rdi + 0x10]
cmp rbx, rcx
je 0x14003a52c
movzx edx, byte [rbx]
cmp dl, 0x2d
jne 0x14003a4f8
lea rdx, [0x140048504]
mov rcx, rsi
call fcn.140001ad0
movzx r8d, byte [rbx]
inc rbx
jmp 0x14003a4c0
cmp r8b, 0xa
jne 0x14003a51b
cmp dl, r8b
jne 0x14003a51b
lea rdx, str..PP_n
mov rcx, rsi
call fcn.140001ad0
movzx r8d, byte [rbx]
inc rbx
jmp 0x14003a4c0
mov rcx, rsi
call fcn.140031ee0
movzx r8d, byte [rbx]
inc rbx
jmp 0x14003a4c0
lea rdx, [0x140041c28]
mov rcx, rsi
call fcn.140001ad0
lea rdx, str..SH_OPTIONS_n
mov rcx, rsi
call fcn.140001ad0
mov rcx, r14
call fcn.140039b00
mov rbx, qword [r14 + 0x140]
cmp rbx, qword [r14 + 0x148]
je 0x14003a621
mov qword [rsp + 0x160], rbp
nop
mov rbp, qword [rbx]
lea rdx, str..TP_n
mov rcx, rsi
call fcn.140001ad0
cmp qword [rbp + 0x30], 0
mov rcx, rsi
jne 0x14003a5ac
lea rdx, str..B__
call fcn.140001ad0
mov rcx, rax
mov rdx, rbp
call fcn.140001940
lea rdx, [0x140041c28]
jmp 0x14003a5e5
lea rdx, str..BI___
call fcn.140001ad0
mov rcx, rax
mov rdx, rbp
call fcn.140001940
mov rcx, rax
lea rdx, [0x140048530]
call fcn.140001ad0
mov rcx, rax
lea rdx, [rbp + 0x20]
call fcn.140001940
lea rdx, [0x140046f38]
mov rcx, rax
call fcn.140001ad0
lea rdx, [rbp + 0x48]
mov rcx, rsi
call fcn.140001940
mov rcx, rax
lea rdx, [0x140041c28]
call fcn.140001ad0
add rbx, 8
cmp rbx, qword [r14 + 0x148]
jne 0x14003a570
mov rbp, qword [rsp + 0x160]
mov rax, qword [rsp + 0x38]
cmp rax, 0x10
jb 0x14003a67d
mov rcx, qword [rsp + 0x20]
inc rax
cmp rax, 0x1000
jb 0x14003a678
test cl, 0x1f
je 0x14003a648
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14003a658
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14003a668
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003a675
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14003ea5c
add rsp, 0x168
pop r14
pop rdi
pop rsi
pop rbx
ret