Function at 0x1400bd1c0
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 - 0x27]
sub rsp, 0xd0
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rdi, r8
mov rsi, rdx
mov qword [rbp - 0x61], rdx
mov rcx, r8
cmp qword [r8 + 0x18], 8
jb 0x1400bd201
mov rcx, qword [r8]
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r13 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rbp - 0x51], rax
cmp rax, 0xffffffffffffffff
jne 0x1400bd2c9
lea ecx, [rax + 2]
call fcn.1400de610
test eax, eax
je 0x1400bd297
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x69], eax
cmp qword [rdi + 0x18], 8
jb 0x1400bd258
mov rdi, qword [rdi]
mov qword [rbp - 0x61], rdi
lea rax, [rbp - 0x69]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x61]
mov qword [rsp + 0x28], rax
lea rax, str.failed_to_open_file:__s_with_error_code__d
mov qword [rsp + 0x20], rax
mov r9d, 0x27
lea r8, str.Intel::Analytics::CHashSubstitution::Md5Hash
lea rdx, str.E:BT550b508a_48fa_453d_94fa_eec8802a9742ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
lea ecx, [r9 - 0x26]
call fcn.14007d1d0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 7
mov word [rsi], r13w
mov r8d, 8
lea rdx, str._UNKNOWN
mov rcx, rsi
call fcn.14002b640
nop
mov rcx, 0xffffffffffffffff
jmp 0x1400bd5b4
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
cmp eax, 0xffffffff
jne 0x1400bd34f
mov ecx, 5
call fcn.1400de610
test eax, eax
je 0x1400bd325
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x69], eax
lea rax, [rbp - 0x69]
mov qword [rsp + 0x28], rax
lea rax, str.failed_to_get_file_size:__d
mov qword [rsp + 0x20], rax
mov r9d, 0x2f
lea r8, str.Intel::Analytics::CHashSubstitution::Md5Hash
lea rdx, str.E:BT550b508a_48fa_453d_94fa_eec8802a9742ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
lea ecx, [r9 - 0x2a]
call fcn.140026f90
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 7
mov word [rsi], r13w
mov r8d, 8
lea rdx, str._UNKNOWN
mov rcx, rsi
call fcn.14002b640
jmp 0x1400bd5ac
cmp r15d, 0xa00000
jbe 0x1400bd391
mov ecx, 5
call fcn.1400de610
test eax, eax
je 0x1400bd325
lea rax, str.file_too_large
mov qword [rsp + 0x20], rax
mov r9d, reloc.WS2_32.dll_getprotobynumber
lea r8, str.Intel::Analytics::CHashSubstitution::Md5Hash
lea rdx, str.E:BT550b508a_48fa_453d_94fa_eec8802a9742ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
lea ecx, [r9 - 0x31]
call fcn.140028a20
jmp 0x1400bd325
mov qword [rbp - 0x61], r13
mov rcx, r15
mov r14, 0xffffffffffffffff
test eax, eax
jne 0x1400bd3a8
mov rcx, r13
jmp 0x1400bd3ba
xor edx, edx
mov rax, r14
div rcx
cmp rax, 1
jb 0x1400bd547
call fcn.1402c79a8
mov rdi, rax
mov qword [rbp - 0x61], rax
test rax, rax
je 0x1400bd547
mov dword [rbp - 0x59], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x59]
mov r8d, r15d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400bd464
lea ecx, [rax + 5]
call fcn.1400de610
test eax, eax
je 0x1400bd436
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x69], eax
lea rax, [rbp - 0x69]
mov qword [rsp + 0x28], rax
lea rax, str.failed_to_read_file:__d
mov qword [rsp + 0x20], rax
mov r9d, 0x44
lea r8, str.Intel::Analytics::CHashSubstitution::Md5Hash
lea rdx, str.E:BT550b508a_48fa_453d_94fa_eec8802a9742ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
lea ecx, [r9 - 0x3f]
call fcn.140026f90
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 7
mov word [rsi], r13w
mov r8d, 8
lea rdx, str._UNKNOWN
mov rcx, rsi
call fcn.14002b640
nop
mov rcx, rdi
jmp 0x1400bd5a6
mov edx, dword [rbp - 0x59]
cmp edx, r15d
je 0x1400bd4a5
mov ecx, 5
call fcn.1400de610
test eax, eax
je 0x1400bd436
lea rax, str.failed_to_read_the_right_amount_of_data
mov qword [rsp + 0x20], rax
mov r9d, 0x49
lea r8, str.Intel::Analytics::CHashSubstitution::Md5Hash
lea rdx, str.E:BT550b508a_48fa_453d_94fa_eec8802a9742ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
lea ecx, [r9 - 0x44]
call fcn.140028a20
jmp 0x1400bd436
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 0x49]
mov rcx, rdi
call fcn.1400f4320
test eax, eax
jne 0x1400bd436
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
mov word [rbp + 7], ax
mov r15, r13
lea r12, [rbp - 0x39]
nop word [rax + rax]
movzx r9d, byte [rbp + r15 - 0x49]
lea r8, str._02x
mov edx, 3
mov rcx, r12
call fcn.14009b7a0
inc r15
add r12, 4
cmp r15, 0x10
jb 0x1400bd4f0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 7
mov word [rsi], r13w
lea rax, [rbp - 0x39]
nop dword [rax + rax]
inc r14
cmp word [rax + r14*2], 0
jne 0x1400bd530
mov r8, r14
lea rdx, [rbp - 0x39]
jmp 0x1400bd453
mov ecx, 5
call fcn.1400de610
test eax, eax
je 0x1400bd57e
lea rax, str.failed_to_allocate_memory
mov qword [rsp + 0x20], rax
mov r9d, 0x3d
lea r8, str.Intel::Analytics::CHashSubstitution::Md5Hash
lea rdx, str.E:BT550b508a_48fa_453d_94fa_eec8802a9742ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
lea ecx, [r9 - 0x38]
call fcn.140028a20
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 7
mov word [rsi], r13w
mov r8d, 8
lea rdx, str._UNKNOWN
mov rcx, rsi
call fcn.14002b640
nop
xor ecx, ecx
call fcn.1402ba464
nop
test rbx, rbx
je 0x1400bd5ba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140296f70
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret