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

Disassembly:
push rbx
sub rsp, 0x40
cmp qword [rcx], 0
mov rbx, rcx
je 0x14001de6a
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 0x14001defb
lea rdx, [0x140083240]
call fcn.140048c90
mov qword [rbx], rax
test rax, rax
jne 0x14001dea7
lea rdx, [0x140083244]
mov rcx, rdi
call fcn.140048c90
mov qword [rbx], rax
test rax, rax
je 0x14001df0f
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.140056a80
mov rcx, rbx
call fcn.14001e860
xor esi, esi
mov ecx, eax
cmp eax, 0xfffffffa
jne 0x14001e103
cmp dword [rbx + 0x38], esi
jne 0x14001df1f
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001def1
call fcn.14004881c
mov qword [rbx], rsi
mov eax, 0xfffffffa
jmp 0x14001e428
lea rdx, [0x140083248]
call fcn.140048c90
mov qword [rbx], rax
test rax, rax
jne 0x14001dea7
mov rdi, qword [rsp + 0x60]
mov eax, 0xfffffffe
add rsp, 0x40
pop rbx
ret
mov qword [rbx + 0x14c], rsi
mov qword [rbx + 0x154], rsi
mov rcx, qword [rbx]
mov dword [rbx + 0x13c], 0xa3b94392
mov dword [rbx + 0x140], 0x10001
mov qword [rbx + 0x144], 0x20
test rcx, rcx
jne 0x14001df59
lea edi, [rcx - 4]
jmp 0x14001dfc9
xor r8d, r8d
xor edx, edx
call fcn.140056680
mov r9, qword [rbx]
lea rcx, [rbx + 0x13c]
mov edx, 1
lea r8d, [rdx + 0x1f]
call fcn.1400568d8
cmp eax, 0x20
je 0x14001e02e
mov rcx, qword [str.X_n_]
cmp dword [rcx], 1
jl 0x14001dfc4
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_r470_r470_00_apps_nvml_common_packetlogger.c
mov dword [rsp + 0x28], 0x20
mov edx, 0x15b
mov r8d, 1
mov dword [rsp + 0x20], eax
call fcn.14001b400
mov edi, 0xfffffffa
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001dff7
lea r9, str.Error__d_while_trying_to_write_header_n
mov dword [rsp + 0x20], edi
mov edx, 0x177
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r470_r470_00_apps_nvml_common_packetlogger.c
mov r8d, 1
call fcn.14001b400
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001e3e9
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_r470_r470_00_apps_nvml_common_packetlogger.c
call fcn.14001b400
jmp 0x14001e3e9
xor edx, edx
lea rcx, [rbx + 0x190]
mov r8d, 0x10000
call fcn.140045b70
mov rcx, qword [rbx]
mov rbp, qword [rbx + 0x144]
mov qword [rbx + 0x188], rbp
mov dword [rbx + 0x190], 0xa3b94392
mov qword [rbx + 0x198], rsi
test rcx, rcx
jne 0x14001e06e
lea edi, [rcx - 4]
jmp 0x14001e0e2
xor r8d, r8d
mov edx, ebp
call fcn.140056680
mov r9, qword [rbx]
lea rcx, [rbx + 0x190]
mov edx, 1
mov r8d, 0x10000
call fcn.1400568d8
cmp eax, 0x10000
je 0x14001e12c
mov rcx, qword [str.X_n_]
cmp dword [rcx], 1
jl 0x14001e0dd
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_r470_r470_00_apps_nvml_common_packetlogger.c
mov dword [rsp + 0x28], 0x10000
mov edx, 0x15b
mov r8d, 1
mov dword [rsp + 0x20], eax
call fcn.14001b400
mov edi, 0xfffffffa
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001e3e9
lea r9, str.Unexpected_error__d_from_writing_first_idx_block_n
mov edx, 0xef
jmp 0x14001e013
test ecx, ecx
je 0x14001e12c
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001e3e9
mov dword [rsp + 0x20], ecx
lea r9, str.Unexpected_error__d_from_ReadHeader___n
mov edx, 0xf9
jmp 0x14001e017
mov ecx, dword [rbx + 0x13c]
cmp ecx, 0xa3b94392
je 0x14001e179
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001e3e9
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_r470_r470_00_apps_nvml_common_packetlogger.c
call fcn.14001b400
jmp 0x14001e3e9
mov ecx, dword [rbx + 0x140]
cmp ecx, 0x10001
je 0x14001e1ad
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001e3e9
mov dword [rsp + 0x28], 0x10001
lea r9, str.Version_mismatch__08X____08X._Incompatible_file
mov edx, 0x10c
jmp 0x14001e15e
cmp dword [rbx + 0x38], esi
je 0x14001e426
mov rbp, qword [rbx + 0x144]
test rbp, rbp
jne 0x14001e1f6
mov rax, qword [str.X_n_]
cmp dword [rax], 6
jl 0x14001e1ea
lea r9, str.File_is_missing_first_index_block_n
mov edx, 0x1a7
lea r8d, [rbp + 6]
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r470_r470_00_apps_nvml_common_packetlogger.c
call fcn.14001b400
mov qword [rbx + 0x180], rsi
jmp 0x14001e3bf
cmp qword [rbx + 0x188], rsi
jne 0x14001e251
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001e326
xor r8d, r8d
mov edx, ebp
call fcn.140056680
mov r9, qword [rbx]
lea rcx, [rbx + 0x190]
mov edx, 1
mov r8d, 0x10000
call fcn.1400563b0
mov rcx, rax
cmp eax, 0x10000
jne 0x14001e2df
mov qword [rbx + 0x188], rbp
mov rbp, qword [rbx + 0x198]
test rbp, rbp
jne 0x14001e200
mov ecx, dword [rbx + 0x190]
cmp ecx, 0xa3b94392
je 0x14001e36b
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001e1ea
mov dword [rsp + 0x28], 0xa3b94392
lea r9, str.Block_cookie__08X____08X_n
mov dword [rsp + 0x20], ecx
mov edx, 0x185
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r470_r470_00_apps_nvml_common_packetlogger.c
mov r8d, 1
call fcn.14001b400
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001e1ea
lea r9, str.NextIdx__d_returned_n
mov dword [rsp + 0x20], 0xffffffff
mov edx, 0x1c3
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r470_r470_00_apps_nvml_common_packetlogger.c
mov r8d, 1
call fcn.14001b400
mov qword [rbx + 0x180], rsi
jmp 0x14001e3bf
mov rax, qword [str.X_n_]
cmp dword [rax], 5
jl 0x14001e31f
mov qword [rsp + 0x38], rdi
lea r9, str._d____d_trying_to_read_from_offset__lld_of__s_n
mov qword [rsp + 0x30], rbp
mov edx, 0x144
mov dword [rsp + 0x28], 0x10000
mov r8d, 5
mov dword [rsp + 0x20], ecx
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r470_r470_00_apps_nvml_common_packetlogger.c
call fcn.14001b400
mov edi, 0xfffffffa
jmp 0x14001e32b
mov edi, 0xfffffffc
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001e1ea
mov qword [rsp + 0x28], rbp
lea r9, str.Got_error__d_from_ReadFromFile___offset__lld_n
mov edx, 0x1b9
mov dword [rsp + 0x20], edi
mov r8d, 1
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r470_r470_00_apps_nvml_common_packetlogger.c
call fcn.14001b400
mov qword [rbx + 0x180], rsi
jmp 0x14001e3bf
mov edx, esi
lea rax, [rbx + 0x1a0]
mov rcx, rsi
mov r8d, 0xccc
nop dword [rax]
cmp qword [rax], rsi
je 0x14001e410
inc edx
inc rcx
add rax, 0x14
cmp rcx, r8
jl 0x14001e380
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 0x14001e426
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001e3e9
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_r470_r470_00_apps_nvml_common_packetlogger.c
call fcn.14001b400
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001e409
cmp dword [rbx + 0x38], esi
je 0x14001e401
mov rcx, rbx
call fcn.14001d990
mov rcx, qword [rbx]
call fcn.14004881c
mov qword [rbx], rsi
mov eax, 0xfffffffb
jmp 0x14001e428
mov r8d, edx
test edx, edx
jne 0x14001e397
mov rax, qword [rbx + 0x188]
add rax, 0x10000
jmp 0x14001e3ae
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