Function at 0x140003980
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbx
push rdi
push r13
push r14
sub rsp, 0x48
mov r13, r8
mov r8d, Ordinal_79
mov rbx, rdx
lea r14, str.CCspHelper::FileImportContent
lea r9, [0x1401cdac8]
lea rdx, str..ce_CspEncrypter.cpp
lea ecx, [r8 - 9]
mov qword [rsp + 0x20], r14
call fcn.140038200
cmp qword [rbx + 0x20], 8
jb 0x1400039c7
mov rcx, qword [rbx + 8]
jmp 0x1400039cb
lea rcx, [rbx + 8]
xor ebx, ebx
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x140003a30
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str._s___::CreateFileW_failed_with_Windows_error_code:__d_.
lea r8d, [rbx + 0x5a]
mov dword [rsp + 0x28], eax
lea rdx, str..ce_CspEncrypter.cpp
lea ecx, [rbx + 0x45]
mov qword [rsp + 0x20], r14
call fcn.140038200
mov ebx, 0xffff4a56
jmp 0x140003ca8
xor eax, eax
lea rdx, [rsp + 0x78]
mov rcx, rdi
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x7c], eax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140003a82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x64
lea r9, str._s___::GetFileSizeEx_failed_with_Windows_error_code:__d_.
mov dword [rsp + 0x28], eax
lea ecx, [r8 - 0x1f]
lea rdx, str..ce_CspEncrypter.cpp
mov qword [rsp + 0x20], r14
call fcn.140038200
mov ebx, 0xffff4a55
jmp 0x140003c9f
mov eax, dword [rsp + 0x78]
mov r8d, 0x69
lea r9, str._s___::GetFileSizeEx:_HighPart:__d___LowPart:__d_.
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x7c]
lea rdx, str..ce_CspEncrypter.cpp
mov dword [rsp + 0x28], eax
lea ecx, [r8 - 0x25]
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x20], r14
call fcn.140038200
mov eax, dword [rsp + 0x78]
mov r9d, dword [rsp + 0x7c]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
mov rbp, rax
jne 0x140003b91
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str._s___::CreateFileMappingW_failed_with_Windows_error_code:__d_.
lea r8d, [rbp + 0x74]
mov dword [rsp + 0x28], eax
lea rdx, str..ce_CspEncrypter.cpp
lea ecx, [rbp + 0x45]
mov qword [rsp + 0x20], r14
call fcn.140038200
lea rdx, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x140003b5b
mov eax, dword [rsp + 0x78]
lea r9, str._s___::GetFileSizeEx_after_error:_HighPart:__d___LowPart:__d_.
lea r8d, [rbp + 0x79]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x7c]
lea rdx, str..ce_CspEncrypter.cpp
mov dword [rsp + 0x28], eax
lea ecx, [rbp + 0x44]
mov qword [rsp + 0x20], r14
call fcn.140038200
mov ebx, 0xffff4a54
jmp 0x140003c9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x7d
lea r9, str._s___::GetFileSizeEx_failed_with_Windows_error_code:__d_.
mov dword [rsp + 0x28], eax
lea ecx, [r8 - 0x38]
lea rdx, str..ce_CspEncrypter.cpp
mov qword [rsp + 0x20], r14
call fcn.140038200
mov ebx, 0xffff4a54
jmp 0x140003c9a
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x40], r12
mov r12d, 4
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, r12d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
mov rsi, rax
jne 0x140003bf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str._s___::MapViewOfFile_failed_with_Windows_error_code:__d_.
lea rdx, str..ce_CspEncrypter.cpp
mov dword [rsp + 0x28], eax
lea ecx, [rsi + 0x45]
mov r8d, 0x87
mov qword [rsp + 0x20], r14
call fcn.140038200
mov ebx, 0xffff4a53
jmp 0x140003c84
mov rax, qword [r13]
mov edx, ebx
movsxd rcx, dword [rax + 4]
add rcx, r13
cmp qword [rcx + 0x48], rdx
cmove edx, r12d
xor r8d, r8d
call fcn.1400033c0
mov r8, qword [rsp + 0x78]
lea rcx, [r13 + 0x10]
mov rdx, rsi
call fcn.140009550
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov rax, qword [r13]
movsxd rcx, dword [rax + 4]
mov eax, dword [rcx + r13 + 0x10]
shr eax, 2
test al, 1
je 0x140003c7b
mov r8d, __WSAFDIsSet
lea r9, str._s___FileImportContent_error_code:__d_.
lea rdx, str..ce_CspEncrypter.cpp
lea ecx, [r8 - 0x50]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r14
call fcn.140038200
mov ebx, 0xffff4a5b
mov eax, 0xffff4a59
cmp r12d, 8
cmove ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0xae
lea r9, str._s______
lea rdx, str..ce_CspEncrypter.cpp
lea ecx, [r8 - 0x6a]
mov qword [rsp + 0x20], r14
call fcn.140038200
mov eax, ebx
add rsp, 0x48
pop r14
pop r13
pop rdi
pop rbx
ret