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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rdi, r8
mov rsi, rdx
mov qword [rsp + 0x70], rdx
xor r12d, r12d
mov dword [rsp + 0x48], r12d
mov rcx, r8
cmp qword [r8 + 0x18], 8
jb 0x14004f33a
mov rcx, qword [r8]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rbp - 0x80], rax
cmp rax, 0xffffffffffffffff
jne 0x14004f44c
lea ecx, [rax + 2]
call fcn.1400b2690
test eax, eax
je 0x14004f417
mov rax, qword [0x14039fc90]
mov rbx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x50]
lea rcx, [0x14039fc90]
mov rax, rbx
call qword [case.0x1400c6d28.0]
nop
mov dword [rsp + 0x48], 1
cmp qword [rax + 0x18], 0x10
jb 0x14004f3bb
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
cmp qword [rdi + 0x18], 8
jb 0x14004f3ca
mov rdi, qword [rdi]
mov qword [rsp + 0x70], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, str.Unable_to_open_file__ws:__hs
mov qword [rsp + 0x20], rax
mov r9d, 0x3e
lea r8, str.McAfee::DAD::CHashSubstitution::Md5Hash
lea rdx, str.E:BT2b930805_726b_4e13_82a8_9915837eb5a8DynamicAppDownloaderPluginsBSIUpdaterPlugin_srcHashSubstitution.cpp
lea ecx, [r9 - 0x3d]
call fcn.1400296d0
nop
lea rcx, [rsp + 0x50]
call fcn.1400266d0
mov qword [rsi], r12
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8d, 8
lea rdx, str._UNKNOWN
mov rcx, rsi
call fcn.140032810
nop
mov rcx, 0xffffffffffffffff
jmp 0x14004f757
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
cmp eax, 0xffffffff
jne 0x14004f4d7
mov ecx, 5
call fcn.1400b2690
test eax, eax
je 0x14004f4aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, str.failed_to_get_file_size:__d
mov qword [rsp + 0x20], rax
mov r9d, 0x46
lea r8, str.McAfee::DAD::CHashSubstitution::Md5Hash
lea rdx, str.E:BT2b930805_726b_4e13_82a8_9915837eb5a8DynamicAppDownloaderPluginsBSIUpdaterPlugin_srcHashSubstitution.cpp
lea ecx, [r9 - 0x41]
call fcn.14004a110
mov qword [rsi], r12
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8d, 8
lea rdx, str._UNKNOWN
mov rcx, rsi
call fcn.140032810
jmp 0x14004f74f
cmp r15d, 0xa00000
jbe 0x14004f519
mov ecx, 5
call fcn.1400b2690
test eax, eax
je 0x14004f4aa
lea rax, str.file_too_large
mov qword [rsp + 0x20], rax
mov r9d, 0x4d
lea r8, str.McAfee::DAD::CHashSubstitution::Md5Hash
lea rdx, str.E:BT2b930805_726b_4e13_82a8_9915837eb5a8DynamicAppDownloaderPluginsBSIUpdaterPlugin_srcHashSubstitution.cpp
lea ecx, [r9 - 0x48]
call fcn.1400297c0
jmp 0x14004f4aa
mov qword [rsp + 0x70], r12
mov rcx, r15
mov r14, 0xffffffffffffffff
test eax, eax
jne 0x14004f531
mov rcx, r12
jmp 0x14004f543
xor edx, edx
mov rax, r14
div rcx
cmp rax, 1
jb 0x14004f6e7
call fcn.140149f50
mov rdi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14004f6e7
mov dword [rsp + 0x78], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x78]
mov r8d, r15d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14004f5f5
lea ecx, [rax + 5]
call fcn.1400b2690
test eax, eax
je 0x14004f5c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, str.failed_to_read_file:__d
mov qword [rsp + 0x20], rax
mov r9d, 0x5b
lea r8, str.McAfee::DAD::CHashSubstitution::Md5Hash
lea rdx, str.E:BT2b930805_726b_4e13_82a8_9915837eb5a8DynamicAppDownloaderPluginsBSIUpdaterPlugin_srcHashSubstitution.cpp
lea ecx, [r9 - 0x56]
call fcn.14004a110
mov qword [rsi], r12
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8d, 8
lea rdx, str._UNKNOWN
mov rcx, rsi
call fcn.140032810
nop
mov rcx, rdi
jmp 0x14004f749
mov edx, dword [rsp + 0x78]
cmp edx, r15d
je 0x14004f637
mov ecx, 5
call fcn.1400b2690
test eax, eax
je 0x14004f5c4
lea rax, str.failed_to_read_the_right_amount_of_data
mov qword [rsp + 0x20], rax
mov r9d, 0x60
lea r8, str.McAfee::DAD::CHashSubstitution::Md5Hash
lea rdx, str.E:BT2b930805_726b_4e13_82a8_9915837eb5a8DynamicAppDownloaderPluginsBSIUpdaterPlugin_srcHashSubstitution.cpp
lea ecx, [r9 - 0x5b]
call fcn.1400297c0
jmp 0x14004f5c4
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov r13d, 0x10
mov r9d, r13d
lea r8, [rbp - 0x78]
mov rcx, rdi
call fcn.1400c20c0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
mov word [rbp + 0x20], ax
lea r15, [rbp - 0x78]
lea r12, [rbp - 0x60]
nop dword [rax]
nop dword [rax + rax]
movzx r9d, byte [r15]
lea r8, str._02x
mov edx, 3
mov rcx, r12
call fcn.1400430a0
add r12, 4
lea r15, [r15 + 1]
sub r13, 1
jne 0x14004f690
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], 7
mov word [rsi], ax
lea rax, [rbp - 0x60]
nop
inc r14
cmp word [rax + r14*2], 0
jne 0x14004f6d0
mov r8, r14
lea rdx, [rbp - 0x60]
jmp 0x14004f5e4
mov ecx, 5
call fcn.1400b2690
test eax, eax
je 0x14004f71e
lea rax, str.failed_to_allocate_memory
mov qword [rsp + 0x20], rax
mov r9d, 0x54
lea r8, str.McAfee::DAD::CHashSubstitution::Md5Hash
lea rdx, str.E:BT2b930805_726b_4e13_82a8_9915837eb5a8DynamicAppDownloaderPluginsBSIUpdaterPlugin_srcHashSubstitution.cpp
lea ecx, [r9 - 0x4f]
call fcn.1400297c0
mov qword [rsi], r12
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8d, 8
lea rdx, str._UNKNOWN
mov rcx, rsi
call fcn.140032810
nop
xor ecx, ecx
call fcn.1401483d0
nop
test rbx, rbx
je 0x14004f75d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14013af80
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret