Function at 0x14000b040
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.1400013d0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.140003f70
mov rcx, rax
lea rdx, str.__write_man_n
call fcn.1400013d0
lea rdx, str..TH
mov rcx, rsi
call fcn.1400013d0
lea rdi, [r14 + 0xa0]
cmp qword [rdi + 0x18], 0x10
jb 0x14000b0af
mov rbx, qword [rdi]
jmp 0x14000b0b2
mov rbx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14000b0be
mov rcx, qword [rdi]
jmp 0x14000b0c1
mov rcx, rdi
add rcx, qword [rdi + 0x10]
cmp rbx, rcx
je 0x14000b0e2
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.140004100
inc rbx
jmp 0x14000b0b2
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 0x14000b12a
cmp byte [rax], 0
je 0x14000b12a
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 0x14000b12a
lea rcx, [rsp + 0x190]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__gmtime64]
jmp 0x14000b14e
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 0x14000b172
lea rcx, [rsp + 0x190]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x14000b172
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 0x14000b177
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.1400013d0
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.1400013d0
mov rcx, rax
lea rdx, [0x14000daf4]
call fcn.1400013d0
mov rcx, rax
mov rdx, rbx
call fcn.140003f70
mov rcx, rax
lea rdx, str.__Panda3D_n
call fcn.1400013d0
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x14000b226
mov rcx, qword [rsp + 0x40]
inc rax
cmp rax, 0x1000
jb 0x14000b221
test cl, 0x1f
je 0x14000b1f1
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 0x14000b201
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 0x14000b211
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14000b21e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14000c190
lea rdx, str..SH_NAME_n
mov rcx, rsi
call fcn.1400013d0
cmp qword [r14 + 0xd0], 0
mov rdx, rdi
mov rcx, rsi
je 0x14000b263
call fcn.140003f70
mov rcx, rax
lea rdx, [0x14000db0c]
call fcn.1400013d0
mov rcx, rax
lea rdx, [r14 + 0xc0]
call fcn.140003f70
lea rdx, [0x14000da58]
mov rcx, rax
call fcn.1400013d0
lea rdx, str..SH_SYNOPSIS_n
mov rcx, rsi
call fcn.1400013d0
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 0x14000b301
lea rdx, [0x14000db30]
mov rcx, rsi
call fcn.1400013d0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.140003f70
mov rcx, rax
lea rdx, str._fR
call fcn.1400013d0
mov rcx, rax
mov rdx, rbx
call fcn.140003f70
mov rcx, rax
lea rdx, [0x14000da58]
call fcn.1400013d0
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 0x14000b392
nop dword [rax + rax]
lea rdx, str..br_n
mov rcx, rsi
call fcn.1400013d0
lea rdx, [0x14000db30]
mov rcx, rsi
call fcn.1400013d0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.140003f70
mov rcx, rax
lea rdx, str._fR
call fcn.1400013d0
mov rcx, rax
mov rdx, rbx
call fcn.140003f70
mov rcx, rax
lea rdx, [0x14000da58]
call fcn.1400013d0
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 0x14000b320
lea rdx, str..SH_DESCRIPTION_n
mov rcx, rsi
call fcn.1400013d0
xor r8b, r8b
lea rdi, [r14 + 0xe0]
cmp qword [rdi + 0x18], 0x10
jb 0x14000b3b7
mov rbx, qword [rdi]
jmp 0x14000b3c0
mov rbx, rdi
nop word [rax + rax]
cmp qword [rdi + 0x18], 0x10
jb 0x14000b3cc
mov rcx, qword [rdi]
jmp 0x14000b3cf
mov rcx, rdi
add rcx, qword [rdi + 0x10]
cmp rbx, rcx
je 0x14000b42c
movzx edx, byte [rbx]
cmp dl, 0x2d
jne 0x14000b3f8
lea rdx, [0x14000db54]
mov rcx, rsi
call fcn.1400013d0
movzx r8d, byte [rbx]
inc rbx
jmp 0x14000b3c0
cmp r8b, 0xa
jne 0x14000b41b
cmp dl, r8b
jne 0x14000b41b
lea rdx, str..PP_n
mov rcx, rsi
call fcn.1400013d0
movzx r8d, byte [rbx]
inc rbx
jmp 0x14000b3c0
mov rcx, rsi
call fcn.140004100
movzx r8d, byte [rbx]
inc rbx
jmp 0x14000b3c0
lea rdx, [0x14000da58]
mov rcx, rsi
call fcn.1400013d0
lea rdx, str..SH_OPTIONS_n
mov rcx, rsi
call fcn.1400013d0
mov rcx, r14
call fcn.14000aa20
mov rbx, qword [r14 + 0x140]
cmp rbx, qword [r14 + 0x148]
je 0x14000b521
mov qword [rsp + 0x160], rbp
nop
mov rbp, qword [rbx]
lea rdx, str..TP_n
mov rcx, rsi
call fcn.1400013d0
cmp qword [rbp + 0x30], 0
mov rcx, rsi
jne 0x14000b4ac
lea rdx, str..B__
call fcn.1400013d0
mov rcx, rax
mov rdx, rbp
call fcn.140003f70
lea rdx, [0x14000da58]
jmp 0x14000b4e5
lea rdx, str..BI___
call fcn.1400013d0
mov rcx, rax
mov rdx, rbp
call fcn.140003f70
mov rcx, rax
lea rdx, [0x14000db84]
call fcn.1400013d0
mov rcx, rax
lea rdx, [rbp + 0x20]
call fcn.140003f70
lea rdx, [0x14000db80]
mov rcx, rax
call fcn.1400013d0
lea rdx, [rbp + 0x48]
mov rcx, rsi
call fcn.140003f70
mov rcx, rax
lea rdx, [0x14000da58]
call fcn.1400013d0
add rbx, 8
cmp rbx, qword [r14 + 0x148]
jne 0x14000b470
mov rbp, qword [rsp + 0x160]
mov rax, qword [rsp + 0x38]
cmp rax, 0x10
jb 0x14000b57d
mov rcx, qword [rsp + 0x20]
inc rax
cmp rax, 0x1000
jb 0x14000b578
test cl, 0x1f
je 0x14000b548
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 0x14000b558
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 0x14000b568
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14000b575
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14000c190
add rsp, 0x168
pop r14
pop rdi
pop rsi
pop rbx
ret