Function at 0x140037f10
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
cmp qword [rcx + 0x198], 0
mov rdi, rcx
jne 0x140038191
cmp byte [rcx + 0x30], 0
jne 0x140037f82
cmp byte [rcx + 9], 0
jne 0x140037f68
call qword [sym.imp.libp3dtoolconfig.dll_public:_static_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_Notify::out_void_]
mov rcx, rax
lea rdx, str.No_output_filename_specified._n
call fcn.140001ad0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov qword [rcx + 0x198], rax
mov byte [rcx + 0x1a0], 0
jmp 0x140038191
add rcx, 0x38
call qword [sym.imp.libp3dtool.dll_public:_char_const____ptr64___cdecl_Filename::c_str_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
lea rcx, [rdi + 0x38]
call qword [sym.imp.libp3dtool.dll_public:_bool___cdecl_Filename::make_dir_void_const___ptr64]
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x38]
call qword [sym.imp.libp3dtool.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_Filename::get_extension_void____ptr64]
cmp qword [rax + 0x18], 0x10
jb 0x140037fba
mov rcx, qword [rax]
jmp 0x140037fbd
mov rcx, rax
mov rbx, qword [rax + 0x10]
mov r8d, 2
cmp rbx, r8
cmovb r8, rbx
test r8, r8
je 0x140037fe5
lea rdx, [0x140049130]
call sub.VCRUNTIME140.dll_memcmp
mov ebp, eax
test eax, eax
jne 0x140037ffa
cmp rbx, 2
jae 0x140037ff0
or ebp, 0xffffffff
jmp 0x140037ffa
xor ebp, ebp
cmp rbx, 2
seta bpl
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x140038056
mov rcx, qword [rsp + 0x30]
inc rax
cmp rax, 0x1000
jb 0x140038051
test cl, 0x1f
je 0x140038021
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 0x140038031
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 0x140038041
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003804e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14003ea5c
cmp byte [rdi + 0xa], 0
jne 0x140038070
test ebp, ebp
je 0x140038070
and dword [rdi + 0x88], 0xffffffef
or dword [rdi + 0x88], 0x20
jmp 0x14003807e
and dword [rdi + 0x88], 0xffffffdf
or dword [rdi + 0x88], 0x10
lea r14, [rdi + 0x90]
xor r8d, r8d
mov rax, qword [r14]
xor edx, edx
movsxd rcx, dword [rax + 4]
add rcx, 0x90
add rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
mov r8b, 1
lea rcx, [rdi + 0x38]
mov rdx, r14
call qword [sym.imp.libp3dtool.dll_public:_bool___cdecl_Filename::open_write_class_std::basic_ofstream_char__struct_std::char_traits_char______ptr64__bool_const___ptr64]
test al, al
jne 0x1400380f5
call qword [sym.imp.libp3dtoolconfig.dll_public:_static_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_Notify::out_void_]
mov rcx, rax
lea rdx, str.Unable_to_write_to
call fcn.140001ad0
mov rdx, rax
lea rcx, [rdi + 0x38]
mov rbx, rax
call qword [sym.imp.libp3dtool.dll_public:_void___cdecl_Filename::output_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_const___ptr64]
lea rdx, [0x140041c28]
mov rcx, rbx
call fcn.140001ad0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.libp3dtoolconfig.dll_public:_static_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_Notify::out_void_]
mov rcx, rax
lea rdx, str.Writing
call fcn.140001ad0
mov rdx, rax
lea rcx, [rdi + 0x38]
mov rbx, rax
call qword [sym.imp.libp3dtool.dll_public:_void___cdecl_Filename::output_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_const___ptr64]
lea rdx, [0x140041c28]
mov rcx, rbx
call fcn.140001ad0
mov qword [rdi + 0x198], r14
mov byte [rdi + 0x1a0], 0
test ebp, ebp
jne 0x140038191
mov ecx, 0x230
call fcn.14003ea20
mov rbx, rax
test rax, rax
je 0x140038181
movzx r8d, byte [rdi + 0x1a0]
lea r9d, [rbp + 6]
mov rdx, qword [rdi + 0x198]
mov rcx, rax
mov dword [rsp + 0x20], 1
call qword [sym.imp.libpandaexpress.dll_public:_void___cdecl_OCompressStream::constructor_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64__bool__int____ptr64]
lea rax, [0x140049108]
mov qword [rbx + 0x1d0], rax
jmp 0x140038183
xor ebx, ebx
mov qword [rdi + 0x198], rbx
mov byte [rdi + 0x1a0], 1
mov rax, qword [rdi + 0x198]
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret