Function at 0x18008da10
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x910], rbx
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov r15, r9
mov esi, r8d
mov r14, rdx
mov rdi, rcx
mov rcx, qword [0x1801c0208]
test rcx, rcx
je 0x18008da69
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [0x18013a8f0]
mov rcx, rdi
call fcn.1800e3d98
mov rbx, rax
test rax, rax
jne 0x18008db82
call fcn.1800dd340
mov ecx, dword [rax]
call fcn.1800e9a30
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, str.Failed_to_open_file__s___s_
mov edx, 0x7ff
lea rcx, [rbp - 0x40]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 5
jl 0x18008dda6
lea rax, [rsp + 0x58]
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x70], 7
xor edi, edi
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
lea r8d, [rbx + 0x24]
lea rdx, str.GridCloudLicensingTrustedStorage.cpp
lea rcx, [rsp + 0x58]
call fcn.18001eca0
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
lea r8d, [rbx + 0xf]
lea rdx, str._readBinaryFile
lea rcx, [rsp + 0x78]
call fcn.18001eca0
nop
lea rax, [rsp + 0x30]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x40], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____2048____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x50], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x29
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x48]
lea edx, [rbx + 5]
call fcn.180019ae4
jmp 0x18008dda6
mov rcx, rbx
call fcn.1800ecc30
mov ecx, eax
call fcn.1800e9954
test rax, rax
jne 0x18008dc95
call fcn.1800dd340
mov ecx, dword [rax]
call fcn.1800e9a30
mov r9, rax
lea r8, str.Failed_to_get_file_handle___s_
mov edx, 0x7ff
lea rcx, [rbp - 0x40]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x18008dd9e
lea rax, [rsp + 0x78]
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x58]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x70], 7
xor edi, edi
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
lea r8d, [rdi + 0x24]
lea rdx, str.GridCloudLicensingTrustedStorage.cpp
lea rcx, [rsp + 0x78]
call fcn.18001eca0
nop
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
lea r8d, [rdi + 0xf]
lea rdx, str._readBinaryFile
lea rcx, [rsp + 0x58]
call fcn.18001eca0
nop
lea rax, [rsp + 0x30]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x50], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____2048____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x3a
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov edx, 3
call fcn.180019ae4
jmp 0x18008dd9e
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x18008dd9e
cmp eax, esi
jbe 0x18008dd88
lea r8, str.Insufficient_buffer_size_to_read_file
mov edx, 0x7ff
lea rcx, [rbp - 0x40]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x18008dd9e
lea rax, [rsp + 0x78]
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x58]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x70], 7
xor edi, edi
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
lea r8d, [rdi + 0x24]
lea rdx, str.GridCloudLicensingTrustedStorage.cpp
lea rcx, [rsp + 0x78]
call fcn.18001eca0
nop
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
lea r8d, [rdi + 0xf]
lea rdx, str._readBinaryFile
lea rcx, [rsp + 0x58]
call fcn.18001eca0
nop
lea rax, [rsp + 0x30]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x50], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____2048____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x48
jmp 0x18008dc7c
mov r8d, eax
mov r9, rbx
mov edx, 1
mov rcx, r14
call fcn.1800e9fc8
mov dword [r15], eax
mov rcx, rbx
call fcn.1800e3ba4
mov rcx, qword [0x1801c0208]
test rcx, rcx
je 0x18008ddb8
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.1800a6240
mov rbx, qword [rsp + 0x910]
add rsp, 0x8d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret