Function at 0x14001d990
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
mov eax, 0x10068
call fcn.140032c30
sub rsp, rax
mov rax, qword [0x1400a37d8]
xor rax, rsp
mov qword [rsp + 0x10050], rax
xor ebp, ebp
mov rbx, rcx
cmp dword [rcx + 0x38], ebp
jne 0x14001d9c4
lea eax, [rbp - 7]
jmp 0x14001ddf8
cmp dword [rcx + 0x15c], 0xc
mov qword [rsp + 0x10090], rdi
jbe 0x14001d9fc
lea rdi, [rcx + 0x10]
cmp dword [rcx + 8], ebp
je 0x14001da03
mov rcx, rdi
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [rbx + 0x15c], 0xc
ja 0x14001da03
cmp dword [rbx + 8], ebp
je 0x14001d9fc
mov rcx, rdi
call sub.KERNEL32.dll_LeaveCriticalSection
xor eax, eax
jmp 0x14001ddf0
mov qword [rsp + 0x10088], rsi
mov qword [rsp + 0x10098], r14
cmp qword [rbx + 0x180], rbp
je 0x14001de12
cmp qword [rbx + 0x188], rbp
je 0x14001de12
lea rcx, [rbx + 0x190]
call fcn.14001d900
mov esi, eax
test eax, eax
jns 0x14001da76
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001de3c
lea r9, str.FindFirstFreeIdxInBlock_returned__d_n
mov dword [rsp + 0x20], esi
mov edx, 0x201
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
jmp 0x14001de3c
mov qword [rsp + 0x10060], r15
cmp esi, 0xccc
jne 0x14001dbfe
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x10000
call fcn.140045b70
mov rcx, qword [rbx]
mov dword [rsp + 0x50], 0xa3b94392
mov qword [rsp + 0x58], rbp
test rcx, rcx
jne 0x14001dab8
mov ecx, 0xfffffffc
jmp 0x14001db34
mov rsi, qword [rbx + 0x180]
xor r8d, r8d
mov edx, esi
call fcn.140056680
mov r9, qword [rbx]
lea rcx, [rsp + 0x50]
mov edx, 1
mov r8d, 0x10000
call fcn.1400568d8
mov rcx, rax
cmp eax, 0x10000
je 0x14001db62
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001db2f
lea rax, [rbx + 0x3c]
mov edx, 0x15b
mov qword [rsp + 0x38], rax
lea r9, str._d____d_trying_to_write_to_offset__lld_of__s_n
mov qword [rsp + 0x30], rsi
mov r8d, 1
mov dword [rsp + 0x28], 0x10000
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 ecx, 0xfffffffa
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001db62
mov dword [rsp + 0x20], ecx
lea r9, str.packetlogger_write_to_file__d_n
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r470_r470_00_apps_nvml_common_packetlogger.c
mov edx, 0x212
mov r8d, 1
call fcn.14001b400
mov rax, qword [rbx + 0x180]
lea rdx, [rbx + 0x190]
mov r9, qword [rbx + 0x188]
mov r8d, 0x10000
mov rcx, rbx
mov qword [rbx + 0x198], rax
call fcn.14001ea70
mov rax, qword [rbx + 0x180]
lea rdx, [rsp + 0x50]
mov qword [rbx + 0x188], rax
lea rcx, [rbx + 0x190]
add rax, 0x10000
mov r8d, 0x10000
mov qword [rbx + 0x180], rax
call fcn.140045560
lea rcx, [rbx + 0x190]
call fcn.14001d900
mov esi, eax
test eax, eax
je 0x14001dbfe
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001dbfe
lea r9, str.IndexIdx___0_is__d_n
mov dword [rsp + 0x20], esi
mov edx, 0x223
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 r14, qword [rbx + 0x178]
lea rdx, [rsp + 0x40]
mov r9d, dword [rbx + 0x15c]
mov r8, qword [rbx + 0x168]
add r9d, 0xfffffff4
movsxd rax, esi
add r8, 0xc
lea rsi, [rbx + 0x1a0]
mov dword [rsp + 0x20], 2
lea rcx, [rax + rax*4]
mov rax, qword [rbx + 0x188]
lea rsi, [rsi + rcx*4]
lea r15, [rax + rcx*4]
mov eax, dword [rbx + 0x174]
sub eax, 0xc
lea rcx, [r14 + 0xc]
mov dword [rsp + 0x40], eax
call fcn.140033980
mov ecx, eax
test eax, eax
je 0x14001dc99
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001dc8f
mov dword [rsp + 0x20], ecx
lea r9, str.compress2___returned__d_n
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r470_r470_00_apps_nvml_common_packetlogger.c
mov edx, 0x231
mov r8d, 1
call fcn.14001b400
mov ebp, 0xfffffff6
jmp 0x14001ddc8
mov eax, dword [rbx + 0x10190]
mov dword [rsi + 8], eax
mov eax, dword [rbx + 0x10194]
mov dword [rsi + 0xc], eax
mov rax, qword [rbx + 0x180]
mov qword [rsi], rax
xor eax, eax
mov dword [r14 + 8], eax
mov eax, dword [rbx + 0x15c]
mov dword [r14 + 4], eax
mov eax, dword [rsp + 0x40]
add eax, 0xc
mov dword [r14], eax
lea r8d, [rax + 7]
and r8d, 0xfffffff8
mov dword [rsi + 0x10], r8d
mov rax, qword [str.X_n_]
cmp dword [rax], 8
jl 0x14001dd1d
mov eax, dword [r14]
lea r9, str.COMPRESS_uncmpLen__d__cmpLen__d__sizeOnDisk__d_n
mov dword [rsp + 0x30], r8d
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r470_r470_00_apps_nvml_common_packetlogger.c
mov dword [rsp + 0x28], eax
mov edx, 0x242
mov eax, dword [r14 + 4]
mov r8d, 8
mov dword [rsp + 0x20], eax
call fcn.14001b400
mov r8d, dword [rsi + 0x10]
mov r9, qword [rbx + 0x180]
mov rdx, r14
mov rcx, rbx
call fcn.14001ea70
mov ecx, eax
test eax, eax
je 0x14001dd63
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001dd63
mov dword [rsp + 0x20], ecx
lea r9, str.Unexpected_st__d_from_WriteToFile___n
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r470_r470_00_apps_nvml_common_packetlogger.c
mov edx, 0x247
mov r8d, 1
call fcn.14001b400
movsxd rax, dword [rsi + 0x10]
lea r9, [r15 + 0x10]
add qword [rbx + 0x180], rax
mov r8d, 0x14
mov rdx, rsi
mov rcx, rbx
call fcn.14001ea70
mov ecx, eax
test eax, eax
je 0x14001ddb7
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001ddb7
mov dword [rsp + 0x20], ecx
lea r9, str.Unexpected_st__d_from_WriteToFile___n
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r470_r470_00_apps_nvml_common_packetlogger.c
mov edx, 0x24f
mov r8d, 1
call fcn.14001b400
mov qword [rbx + 0x10190], rbp
mov dword [rbx + 0x15c], 0xc
cmp dword [rbx + 8], 0
mov r15, qword [rsp + 0x10060]
je 0x14001ddde
mov rcx, rdi
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, ebp
mov rsi, qword [rsp + 0x10088]
mov r14, qword [rsp + 0x10098]
mov rdi, qword [rsp + 0x10090]
mov rcx, qword [rsp + 0x10050]
xor rcx, rsp
call fcn.140032ca0
add rsp, 0x10068
pop rbp
pop rbx
ret
mov rax, qword [str.X_n_]
cmp dword [rax], 1
jl 0x14001de3c
lea r9, str.Unexpected_null_offsets_n
mov edx, 0x1f8
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
cmp dword [rbx + 8], ebp
je 0x14001de49
mov rcx, rdi
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, 0xfffffff8
jmp 0x14001dde0