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

Disassembly:
push rbx
sub rsp, 0x40
cmp qword [rcx], 0
mov rbx, rcx
je 0x14001e44a
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 0x14001e4db
lea rdx, [0x14008e6f0]
call fcn.1400510e0
mov qword [rbx], rax
test rax, rax
jne 0x14001e487
lea rdx, [0x14008e6f4]
mov rcx, rdi
call fcn.1400510e0
mov qword [rbx], rax
test rax, rax
je 0x14001e4ef
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.14005e530
mov rcx, rbx
call fcn.14001ee80
xor ebp, ebp
mov ecx, eax
cmp eax, 0xfffffffa
jne 0x14001e6f9
cmp dword [rbx + 0x38], ebp
jne 0x14001e4ff
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001e4d1
call fcn.140050c6c
mov qword [rbx], rbp
mov eax, 0xfffffffa
jmp 0x14001ea38
lea rdx, [0x14008e6f8]
call fcn.1400510e0
mov qword [rbx], rax
test rax, rax
jne 0x14001e487
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 0x14001e539
lea edi, [rcx - 4]
jmp 0x14001e5b4
xor r8d, r8d
xor edx, edx
call fcn.14005e130
test eax, eax
je 0x14001e54e
mov edi, 0xfffffffb
jmp 0x14001e5b4
mov r9, qword [rbx]
lea rcx, [rbx + 0x13c]
mov edx, 1
lea r8d, [rdx + 0x1f]
call fcn.14005e388
cmp eax, 0x20
je 0x14001e619
mov rcx, qword [str.x__v_]
cmp dword [rcx], 1
jl 0x14001e5af
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_r537_56_apps_nvml_common_packetlogger.c
mov dword [rsp + 0x28], 0x20
mov edx, 0x161
mov r8d, 1
mov dword [rsp + 0x20], eax
call fcn.14001b9c0
mov edi, 0xfffffffa
mov rax, qword [str.x__v_]
cmp dword [rax], 1
jl 0x14001e5e2
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_r537_56_apps_nvml_common_packetlogger.c
mov r8d, 1
call fcn.14001b9c0
mov rax, qword [str.x__v_]
cmp dword [rax], 1
jl 0x14001e9f9
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_r537_56_apps_nvml_common_packetlogger.c
call fcn.14001b9c0
jmp 0x14001e9f9
xor edx, edx
lea rcx, [rbx + 0x190]
mov r8d, 0x10000
call fcn.14004dfc0
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 0x14001e659
lea edi, [rcx - 4]
jmp 0x14001e6d8
xor r8d, r8d
mov edx, esi
call fcn.14005e130
test eax, eax
je 0x14001e66e
mov edi, 0xfffffffb
jmp 0x14001e6d8
mov r9, qword [rbx]
lea rcx, [rbx + 0x190]
mov edx, 1
mov r8d, 0x10000
call fcn.14005e388
cmp eax, 0x10000
je 0x14001e722
mov rcx, qword [str.x__v_]
cmp dword [rcx], 1
jl 0x14001e6d3
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_r537_56_apps_nvml_common_packetlogger.c
mov dword [rsp + 0x28], 0x10000
mov edx, 0x161
mov r8d, 1
mov dword [rsp + 0x20], eax
call fcn.14001b9c0
mov edi, 0xfffffffa
mov rax, qword [str.x__v_]
cmp dword [rax], 1
jl 0x14001e9f9
lea r9, str.Unexpected_error__d_from_writing_first_idx_block_n
mov edx, 0xef
jmp 0x14001e5fe
test ecx, ecx
je 0x14001e722
mov rax, qword [str.x__v_]
cmp dword [rax], 1
jl 0x14001e9f9
mov dword [rsp + 0x20], ecx
lea r9, str.Unexpected_error__d_from_ReadHeader___n
mov edx, 0xf9
jmp 0x14001e602
mov ecx, dword [rbx + 0x13c]
cmp ecx, 0xa3b94392
je 0x14001e76f
mov rax, qword [str.x__v_]
cmp dword [rax], 1
jl 0x14001e9f9
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_r537_56_apps_nvml_common_packetlogger.c
call fcn.14001b9c0
jmp 0x14001e9f9
mov ecx, dword [rbx + 0x140]
cmp ecx, 0x10001
je 0x14001e7a3
mov rax, qword [str.x__v_]
cmp dword [rax], 1
jl 0x14001e9f9
mov dword [rsp + 0x28], 0x10001
lea r9, str.Version_mismatch__08X____08X._Incompatible_file
mov edx, 0x10c
jmp 0x14001e754
cmp dword [rbx + 0x38], ebp
je 0x14001ea36
mov rsi, qword [rbx + 0x144]
test rsi, rsi
jne 0x14001e7ec
mov rax, qword [str.x__v_]
cmp dword [rax], 6
jl 0x14001e7e0
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_r537_56_apps_nvml_common_packetlogger.c
call fcn.14001b9c0
mov qword [rbx + 0x180], rbp
jmp 0x14001e9cf
cmp qword [rbx + 0x188], rbp
jne 0x14001e857
nop word [rax + rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001e933
xor r8d, r8d
mov edx, esi
call fcn.14005e130
test eax, eax
jne 0x14001e92c
mov r9, qword [rbx]
lea rcx, [rbx + 0x190]
lea edx, [rax + 1]
mov r8d, 0x10000
call fcn.14005de60
mov rcx, rax
cmp eax, 0x10000
jne 0x14001e8e5
mov qword [rbx + 0x188], rsi
mov rsi, qword [rbx + 0x198]
test rsi, rsi
jne 0x14001e800
mov ecx, dword [rbx + 0x190]
cmp ecx, 0xa3b94392
je 0x14001e978
mov rax, qword [str.x__v_]
cmp dword [rax], 1
jl 0x14001e7e0
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_r537_56_apps_nvml_common_packetlogger.c
mov r8d, 1
call fcn.14001b9c0
mov rax, qword [str.x__v_]
cmp dword [rax], 1
jl 0x14001e7e0
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_r537_56_apps_nvml_common_packetlogger.c
mov r8d, 1
call fcn.14001b9c0
mov qword [rbx + 0x180], rbp
jmp 0x14001e9cf
mov rax, qword [str.x__v_]
cmp dword [rax], 5
jl 0x14001e925
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_r537_56_apps_nvml_common_packetlogger.c
call fcn.14001b9c0
mov edi, 0xfffffffa
jmp 0x14001e938
mov edi, 0xfffffffb
jmp 0x14001e938
mov edi, 0xfffffffc
mov rax, qword [str.x__v_]
cmp dword [rax], 1
jl 0x14001e7e0
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_r537_56_apps_nvml_common_packetlogger.c
call fcn.14001b9c0
mov qword [rbx + 0x180], rbp
jmp 0x14001e9cf
mov edx, ebp
lea rax, [rbx + 0x1a0]
mov rcx, rbp
mov r8d, 0xccc
nop word [rax + rax]
cmp qword [rax], rbp
je 0x14001ea20
inc edx
inc rcx
add rax, 0x14
cmp rcx, r8
jl 0x14001e990
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 0x14001ea36
mov rax, qword [str.x__v_]
cmp dword [rax], 1
jl 0x14001e9f9
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_r537_56_apps_nvml_common_packetlogger.c
call fcn.14001b9c0
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001ea19
cmp dword [rbx + 0x38], ebp
je 0x14001ea11
mov rcx, rbx
call fcn.14001dfc0
mov rcx, qword [rbx]
call fcn.140050c6c
mov qword [rbx], rbp
mov eax, 0xfffffffb
jmp 0x14001ea38
mov r8d, edx
test edx, edx
jne 0x14001e9a7
mov rax, qword [rbx + 0x188]
add rax, 0x10000
jmp 0x14001e9be
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