Function at 0x140010a90
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.140001450
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1400047e0
mov rcx, rax
lea rdx, str.__write_man_n
call fcn.140001450
lea rdx, str..TH
mov rcx, rsi
call fcn.140001450
lea rdi, [r14 + 0xa0]
cmp qword [rdi + 0x18], 0x10
jb 0x140010aff
mov rbx, qword [rdi]
jmp 0x140010b02
mov rbx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140010b0e
mov rcx, qword [rdi]
jmp 0x140010b11
mov rcx, rdi
add rcx, qword [rdi + 0x10]
cmp rbx, rcx
je 0x140010b32
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.140009320
inc rbx
jmp 0x140010b02
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 0x140010b7a
cmp byte [rax], 0
je 0x140010b7a
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 0x140010b7a
lea rcx, [rsp + 0x190]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__gmtime64]
jmp 0x140010b9e
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 0x140010bc2
lea rcx, [rsp + 0x190]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x140010bc2
mov r9, rax
lea r8, str._d__B__Y
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
test rax, rax
jne 0x140010bc7
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.140001450
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.140001450
mov rcx, rax
lea rdx, [0x140017324]
call fcn.140001450
mov rcx, rax
mov rdx, rbx
call fcn.1400047e0
mov rcx, rax
lea rdx, str.__Panda3D_n
call fcn.140001450
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x140010c76
mov rcx, qword [rsp + 0x40]
inc rax
cmp rax, 0x1000
jb 0x140010c71
test cl, 0x1f
je 0x140010c41
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 0x140010c51
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 0x140010c61
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140010c6e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1400139a0
lea rdx, str..SH_NAME_n
mov rcx, rsi
call fcn.140001450
cmp qword [r14 + 0xd0], 0
mov rdx, rdi
mov rcx, rsi
je 0x140010cb3
call fcn.1400047e0
mov rcx, rax
lea rdx, [0x14001733c]
call fcn.140001450
mov rcx, rax
lea rdx, [r14 + 0xc0]
call fcn.1400047e0
lea rdx, [0x140015b70]
mov rcx, rax
call fcn.140001450
lea rdx, str..SH_SYNOPSIS_n
mov rcx, rsi
call fcn.140001450
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 0x140010d51
lea rdx, [0x140017360]
mov rcx, rsi
call fcn.140001450
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1400047e0
mov rcx, rax
lea rdx, str._fR
call fcn.140001450
mov rcx, rax
mov rdx, rbx
call fcn.1400047e0
mov rcx, rax
lea rdx, [0x140015b70]
call fcn.140001450
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 0x140010de2
nop dword [rax + rax]
lea rdx, str..br_n
mov rcx, rsi
call fcn.140001450
lea rdx, [0x140017360]
mov rcx, rsi
call fcn.140001450
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1400047e0
mov rcx, rax
lea rdx, str._fR
call fcn.140001450
mov rcx, rax
mov rdx, rbx
call fcn.1400047e0
mov rcx, rax
lea rdx, [0x140015b70]
call fcn.140001450
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 0x140010d70
lea rdx, str..SH_DESCRIPTION_n
mov rcx, rsi
call fcn.140001450
xor r8b, r8b
lea rdi, [r14 + 0xe0]
cmp qword [rdi + 0x18], 0x10
jb 0x140010e07
mov rbx, qword [rdi]
jmp 0x140010e10
mov rbx, rdi
nop word [rax + rax]
cmp qword [rdi + 0x18], 0x10
jb 0x140010e1c
mov rcx, qword [rdi]
jmp 0x140010e1f
mov rcx, rdi
add rcx, qword [rdi + 0x10]
cmp rbx, rcx
je 0x140010e7c
movzx edx, byte [rbx]
cmp dl, 0x2d
jne 0x140010e48
lea rdx, [0x140017384]
mov rcx, rsi
call fcn.140001450
movzx r8d, byte [rbx]
inc rbx
jmp 0x140010e10
cmp r8b, 0xa
jne 0x140010e6b
cmp dl, r8b
jne 0x140010e6b
lea rdx, str..PP_n
mov rcx, rsi
call fcn.140001450
movzx r8d, byte [rbx]
inc rbx
jmp 0x140010e10
mov rcx, rsi
call fcn.140009320
movzx r8d, byte [rbx]
inc rbx
jmp 0x140010e10
lea rdx, [0x140015b70]
mov rcx, rsi
call fcn.140001450
lea rdx, str..SH_OPTIONS_n
mov rcx, rsi
call fcn.140001450
mov rcx, r14
call fcn.140010450
mov rbx, qword [r14 + 0x140]
cmp rbx, qword [r14 + 0x148]
je 0x140010f71
mov qword [rsp + 0x160], rbp
nop
mov rbp, qword [rbx]
lea rdx, str..TP_n
mov rcx, rsi
call fcn.140001450
cmp qword [rbp + 0x30], 0
mov rcx, rsi
jne 0x140010efc
lea rdx, str..B__
call fcn.140001450
mov rcx, rax
mov rdx, rbp
call fcn.1400047e0
lea rdx, [0x140015b70]
jmp 0x140010f35
lea rdx, str..BI___
call fcn.140001450
mov rcx, rax
mov rdx, rbp
call fcn.1400047e0
mov rcx, rax
lea rdx, [0x1400173b0]
call fcn.140001450
mov rcx, rax
lea rdx, [rbp + 0x20]
call fcn.1400047e0
lea rdx, [0x140016520]
mov rcx, rax
call fcn.140001450
lea rdx, [rbp + 0x48]
mov rcx, rsi
call fcn.1400047e0
mov rcx, rax
lea rdx, [0x140015b70]
call fcn.140001450
add rbx, 8
cmp rbx, qword [r14 + 0x148]
jne 0x140010ec0
mov rbp, qword [rsp + 0x160]
mov rax, qword [rsp + 0x38]
cmp rax, 0x10
jb 0x140010fcd
mov rcx, qword [rsp + 0x20]
inc rax
cmp rax, 0x1000
jb 0x140010fc8
test cl, 0x1f
je 0x140010f98
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 0x140010fa8
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 0x140010fb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140010fc5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1400139a0
add rsp, 0x168
pop r14
pop rdi
pop rsi
pop rbx
ret