Function at 0x14001e440
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp qword [rcx], 0
mov rbx, rcx
je 0x14001e45a
mov eax, 0xfffffffd
add rsp, 0x40
pop rbx
ret
cmp dword [rcx + 0x38], 0
mov qword [rsp + 0x60], rdi
lea rdi, [rcx + 0x3c]
mov rcx, rdi
je 0x14001e4eb
lea rdx, [0x14008e460]
call fcn.140050f40
mov qword [rbx], rax
test rax, rax
jne 0x14001e497
lea rdx, [0x14008e464]
mov rcx, rdi
call fcn.140050f40
mov qword [rbx], rax
test rax, rax
je 0x14001e4ff
xor r9d, r9d
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x68], r14
lea r8d, [r9 + 4]
call fcn.14005e390
mov rcx, rbx
call fcn.14001ee90
xor ebp, ebp
mov ecx, eax
cmp eax, 0xfffffffa
jne 0x14001e709
cmp dword [rbx + 0x38], ebp
jne 0x14001e50f
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001e4e1
call fcn.140050acc
mov qword [rbx], rbp
mov eax, 0xfffffffa
jmp 0x14001ea48
lea rdx, [0x14008e468]
call fcn.140050f40
mov qword [rbx], rax
test rax, rax
jne 0x14001e497
mov rdi, qword [rsp + 0x60]
mov eax, 0xfffffffe
add rsp, 0x40
pop rbx
ret
mov qword [rbx + 0x14c], rbp
mov qword [rbx + 0x154], rbp
mov rcx, qword [rbx]
mov dword [rbx + 0x13c], 0xa3b94392
mov dword [rbx + 0x140], 0x10001
mov qword [rbx + 0x144], 0x20
test rcx, rcx
jne 0x14001e549
lea edi, [rcx - 4]
jmp 0x14001e5c4
xor r8d, r8d
xor edx, edx
call fcn.14005df90
test eax, eax
je 0x14001e55e
mov edi, 0xfffffffb
jmp 0x14001e5c4
mov r9, qword [rbx]
lea rcx, [rbx + 0x13c]
mov edx, 1
lea r8d, [rdx + 0x1f]
call fcn.14005e1e8
cmp eax, 0x20
je 0x14001e629
mov rcx, qword [0x1400b2120]
cmp dword [rcx], 1
jl 0x14001e5bf
mov qword [rsp + 0x38], rdi
lea r9, str._d____d_trying_to_write_to_offset__lld_of__s_n
mov qword [rsp + 0x30], rbp
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_common_packetlogger.c
mov dword [rsp + 0x28], 0x20
mov edx, 0x161
mov r8d, 1
mov dword [rsp + 0x20], eax
call fcn.14001b9f0
mov edi, 0xfffffffa
mov rax, qword [0x1400b2120]
cmp dword [rax], 1
jl 0x14001e5f2
lea r9, str.Error__d_while_trying_to_write_header_n
mov dword [rsp + 0x20], edi
mov edx, 0x17d
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_common_packetlogger.c
mov r8d, 1
call fcn.14001b9f0
mov rax, qword [0x1400b2120]
cmp dword [rax], 1
jl 0x14001ea09
lea r9, str.Unexpected_error__d_from_packetlogger_write_header_n
mov edx, 0xe1
mov dword [rsp + 0x20], edi
mov r8d, 1
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_common_packetlogger.c
call fcn.14001b9f0
jmp 0x14001ea09
xor edx, edx
lea rcx, [rbx + 0x190]
mov r8d, 0x10000
call fcn.14004de20
mov rcx, qword [rbx]
mov rsi, qword [rbx + 0x144]
mov qword [rbx + 0x188], rsi
mov dword [rbx + 0x190], 0xa3b94392
mov qword [rbx + 0x198], rbp
test rcx, rcx
jne 0x14001e669
lea edi, [rcx - 4]
jmp 0x14001e6e8
xor r8d, r8d
mov edx, esi
call fcn.14005df90
test eax, eax
je 0x14001e67e
mov edi, 0xfffffffb
jmp 0x14001e6e8
mov r9, qword [rbx]
lea rcx, [rbx + 0x190]
mov edx, 1
mov r8d, 0x10000
call fcn.14005e1e8
cmp eax, 0x10000
je 0x14001e732
mov rcx, qword [0x1400b2120]
cmp dword [rcx], 1
jl 0x14001e6e3
mov qword [rsp + 0x38], rdi
lea r9, str._d____d_trying_to_write_to_offset__lld_of__s_n
mov qword [rsp + 0x30], rsi
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_common_packetlogger.c
mov dword [rsp + 0x28], 0x10000
mov edx, 0x161
mov r8d, 1
mov dword [rsp + 0x20], eax
call fcn.14001b9f0
mov edi, 0xfffffffa
mov rax, qword [0x1400b2120]
cmp dword [rax], 1
jl 0x14001ea09
lea r9, str.Unexpected_error__d_from_writing_first_idx_block_n
mov edx, 0xef
jmp 0x14001e60e
test ecx, ecx
je 0x14001e732
mov rax, qword [0x1400b2120]
cmp dword [rax], 1
jl 0x14001ea09
mov dword [rsp + 0x20], ecx
lea r9, str.Unexpected_error__d_from_ReadHeader___n
mov edx, 0xf9
jmp 0x14001e612
mov ecx, dword [rbx + 0x13c]
cmp ecx, 0xa3b94392
je 0x14001e77f
mov rax, qword [0x1400b2120]
cmp dword [rax], 1
jl 0x14001ea09
mov dword [rsp + 0x28], 0xa3b94392
lea r9, str.Cookie_mismatch__08X____08X._Not_packet_logger_file_
mov edx, 0x104
mov dword [rsp + 0x20], ecx
mov r8d, 1
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_common_packetlogger.c
call fcn.14001b9f0
jmp 0x14001ea09
mov ecx, dword [rbx + 0x140]
cmp ecx, 0x10001
je 0x14001e7b3
mov rax, qword [0x1400b2120]
cmp dword [rax], 1
jl 0x14001ea09
mov dword [rsp + 0x28], 0x10001
lea r9, str.Version_mismatch__08X____08X._Incompatible_file
mov edx, 0x10c
jmp 0x14001e764
cmp dword [rbx + 0x38], ebp
je 0x14001ea46
mov rsi, qword [rbx + 0x144]
test rsi, rsi
jne 0x14001e7fc
mov rax, qword [0x1400b2120]
cmp dword [rax], 6
jl 0x14001e7f0
lea r9, str.File_is_missing_first_index_block_n
mov edx, 0x1ad
lea r8d, [rsi + 6]
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_common_packetlogger.c
call fcn.14001b9f0
mov qword [rbx + 0x180], rbp
jmp 0x14001e9df
cmp qword [rbx + 0x188], rbp
jne 0x14001e867
nop word [rax + rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001e943
xor r8d, r8d
mov edx, esi
call fcn.14005df90
test eax, eax
jne 0x14001e93c
mov r9, qword [rbx]
lea rcx, [rbx + 0x190]
lea edx, [rax + 1]
mov r8d, 0x10000
call fcn.14005dcc0
mov rcx, rax
cmp eax, 0x10000
jne 0x14001e8f5
mov qword [rbx + 0x188], rsi
mov rsi, qword [rbx + 0x198]
test rsi, rsi
jne 0x14001e810
mov ecx, dword [rbx + 0x190]
cmp ecx, 0xa3b94392
je 0x14001e988
mov rax, qword [0x1400b2120]
cmp dword [rax], 1
jl 0x14001e7f0
mov dword [rsp + 0x28], 0xa3b94392
lea r9, str.Block_cookie__08X____08X_n
mov dword [rsp + 0x20], ecx
mov edx, 0x18b
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_common_packetlogger.c
mov r8d, 1
call fcn.14001b9f0
mov rax, qword [0x1400b2120]
cmp dword [rax], 1
jl 0x14001e7f0
lea r9, str.NextIdx__d_returned_n
mov dword [rsp + 0x20], 0xffffffff
mov edx, 0x1c9
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_common_packetlogger.c
mov r8d, 1
call fcn.14001b9f0
mov qword [rbx + 0x180], rbp
jmp 0x14001e9df
mov rax, qword [0x1400b2120]
cmp dword [rax], 5
jl 0x14001e935
mov qword [rsp + 0x38], rdi
lea r9, str._d____d_trying_to_read_from_offset__lld_of__s_n
mov qword [rsp + 0x30], rsi
mov edx, 0x147
mov dword [rsp + 0x28], 0x10000
mov r8d, 5
mov dword [rsp + 0x20], ecx
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_common_packetlogger.c
call fcn.14001b9f0
mov edi, 0xfffffffa
jmp 0x14001e948
mov edi, 0xfffffffb
jmp 0x14001e948
mov edi, 0xfffffffc
mov rax, qword [0x1400b2120]
cmp dword [rax], 1
jl 0x14001e7f0
mov qword [rsp + 0x28], rsi
lea r9, str.Got_error__d_from_ReadFromFile___offset__lld_n
mov edx, 0x1bf
mov dword [rsp + 0x20], edi
mov r8d, 1
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_common_packetlogger.c
call fcn.14001b9f0
mov qword [rbx + 0x180], rbp
jmp 0x14001e9df
mov edx, ebp
lea rax, [rbx + 0x1a0]
mov rcx, rbp
mov r8d, 0xccc
nop word [rax + rax]
cmp qword [rax], rbp
je 0x14001ea30
inc edx
inc rcx
add rax, 0x14
cmp rcx, r8
jl 0x14001e9a0
mov eax, r8d
lea rcx, [rax + rax*4]
movsxd rax, dword [rbx + rcx*4 + 0x19c]
add rax, qword [rbx + rcx*4 + 0x18c]
add rax, 7
and rax, 0xfffffffffffffff8
mov qword [rbx + 0x180], rax
jne 0x14001ea46
mov rax, qword [0x1400b2120]
cmp dword [rax], 1
jl 0x14001ea09
lea r9, str.Unexpected_0_next_write_offset.
mov edx, 0x118
mov r8d, 1
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_common_packetlogger.c
call fcn.14001b9f0
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001ea29
cmp dword [rbx + 0x38], ebp
je 0x14001ea21
mov rcx, rbx
call fcn.14001dfd0
mov rcx, qword [rbx]
call fcn.140050acc
mov qword [rbx], rbp
mov eax, 0xfffffffb
jmp 0x14001ea48
mov r8d, edx
test edx, edx
jne 0x14001e9b7
mov rax, qword [rbx + 0x188]
add rax, 0x10000
jmp 0x14001e9ce
xor eax, eax
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret