Function at 0x1400bc840
Capabilities:
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 + 0x1f], rax
mov rdi, r8
mov rsi, rdx
mov qword [rbp - 0x39], rdx
mov rcx, r8
cmp qword [r8 + 0x18], 8
jb 0x1400bc881
mov rcx, qword [r8]
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r15 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rbp + 0x17], rax
cmp rax, 0xffffffffffffffff
jne 0x1400bc949
lea ecx, [rax + 2]
call fcn.1400de610
test eax, eax
je 0x1400bc917
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x61], eax
cmp qword [rdi + 0x18], 8
jb 0x1400bc8d8
mov rdi, qword [rdi]
mov qword [rbp - 0x39], rdi
lea rax, [rbp - 0x61]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
lea rax, str.failed_to_open_file:__s_with_error_code__d
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, str.Intel::Analytics::CTxtVerSubstitution::Substitute
lea rdx, str.E:BT550b508a_48fa_453d_94fa_eec8802a9742ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginTxtVerSubstitution.cpp
lea ecx, [r9 - 0x23]
call fcn.14007d1d0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
mov r8d, 8
lea rdx, str._UNKNOWN
mov rcx, rsi
call fcn.14002b640
nop
mov rcx, 0xffffffffffffffff
jmp 0x1400bcb2e
mov ecx, 0x400
call fcn.1402974ec
mov rdi, rax
mov qword [rbp - 0x39], rax
xor edx, edx
mov r8d, 0x400
mov rcx, rax
call fcn.1402b60e0
mov dword [rbp - 0x11], r15d
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x11]
mov r8d, 0x3ff
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400bca07
lea ecx, [rax + 5]
call fcn.1400de610
test eax, eax
je 0x1400bc9d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x61], eax
lea rax, [rbp - 0x61]
mov qword [rsp + 0x28], rax
lea rax, str.failed_to_read_the_file:__d
mov qword [rsp + 0x20], rax
mov r9d, 0x2e
lea r8, str.Intel::Analytics::CTxtVerSubstitution::Substitute
lea rdx, str.E:BT550b508a_48fa_453d_94fa_eec8802a9742ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginTxtVerSubstitution.cpp
lea ecx, [r9 - 0x29]
call fcn.140026f90
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
mov r8d, 8
lea rdx, str._UNKNOWN
mov rcx, rsi
call fcn.14002b640
nop
mov rcx, rdi
call fcn.140296f94
jmp 0x1400bcb26
mov qword [rbp + 7], r15
mov qword [rbp + setsockopt], 0xf
mov byte [rbp - 9], 0
mov r12, 0xffffffffffffffff
mov r8, r12
inc r8
cmp byte [rdi + r8], 0
jne 0x1400bca21
mov rdx, rdi
lea rcx, [rbp - 9]
call fcn.14002cad0
nop
mov qword [rbp - 0x39], r15
mov rcx, rdi
call fcn.140296f94
lea r14, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
setae byte [rbp - 0x69]
cmovae r14, qword [rbp - 9]
mov r13, qword [rbp + 7]
cmp r13, 0xd
jb 0x1400bcabf
lea r15, [r14 + r13]
lea r8, [r15 - 0xc]
sub r8, r14
mov edx, 0x24
mov rcx, r14
call fcn.1402b66a0
mov rdi, rax
test rax, rax
je 0x1400bcabc
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str._FileVersion
mov rcx, rdi
call fcn.1402b6380
test eax, eax
je 0x1400bcb5e
inc rdi
lea r8, [r15 - 0xc]
sub r8, rdi
mov edx, 0x24
mov rcx, rdi
call fcn.1402b66a0
mov rdi, rax
test rax, rax
jne 0x1400bca80
xor r15d, r15d
mov ecx, 5
call fcn.1400de610
test eax, eax
je 0x1400bcaf6
lea rax, str.failed_to_find_file_version_key
mov qword [rsp + 0x20], rax
mov r9d, reloc.WS2_32.dll_gethostname
lea r8, str.Intel::Analytics::CTxtVerSubstitution::Substitute
lea rdx, str.E:BT550b508a_48fa_453d_94fa_eec8802a9742ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginTxtVerSubstitution.cpp
lea ecx, [r9 - 0x34]
call fcn.140028a20
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
mov r8d, 8
lea rdx, str._UNKNOWN
mov rcx, rsi
call fcn.14002b640
nop
lea rcx, [rbp - 9]
call fcn.14002ccd0
nop
test rbx, rbx
je 0x1400bcb34
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rcx, qword [rbp + 0x1f]
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
sub rdi, r14
cmp rdi, 0xffffffffffffffff
je 0x1400bcabc
add rdi, 0xd
mov qword [rbp - 0x21], 0
mov qword [rbp - 0x19], setsockopt
mov byte [rbp - 0x31], 0
cmp r13, rdi
jb 0x1400bcd3c
sub r13, rdi
cmp r13, 0xffffffffffffffff
cmovb r12, r13
lea rdx, [rbp - 9]
cmp byte [rbp - 0x69], 0
cmovne rdx, qword [rbp - 9]
add rdx, rdi
mov r8, r12
lea rcx, [rbp - 0x31]
call fcn.14002cad0
nop
lea rdi, [rbp - 0x31]
cmp qword [rbp - 0x19], 0x10
setae r12b
mov r15, qword [rbp - 0x31]
cmovae rdi, r15
mov r14, qword [rbp - 0x21]
test r14, r14
je 0x1400bccd2
mov r8, r14
mov edx, 0x20
mov rcx, rdi
call fcn.1402b66a0
test rax, rax
je 0x1400bccd2
sub rax, rdi
cmp rax, 0xffffffffffffffff
je 0x1400bccd2
xor r13d, r13d
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x41], setsockopt
mov byte [rbp - 0x59], r13b
cmp r14, rax
cmovb rax, r14
lea rdx, [rbp - 0x31]
test r12b, r12b
cmovne rdx, r15
mov r8, rax
lea rcx, [rbp - 0x59]
call fcn.14002cad0
lea rcx, [rbp - 0x31]
call fcn.14002ccd0
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [rbp - 0x31], xmm0
movups xmm1, xmmword [rbp - 0x49]
movups xmmword [rbp - 0x21], xmm1
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x41], setsockopt
mov byte [rbp - 0x59], r13b
lea rcx, [rbp - 0x59]
call fcn.14002ccd0
lea r8, [rbp - 0x31]
cmp qword [rbp - 0x19], 0x10
setae dl
mov rcx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x21]
jb 0x1400bcc7a
add rdi, rcx
jmp 0x1400bcc85
add rdi, r8
lea r14, [rbp - 0x31]
test dl, dl
je 0x1400bcc88
mov r14, rcx
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 7
mov word [rsi], r13w
mov rdx, rdi
sub rdx, r14
mov rcx, rsi
call fcn.1400bcdb0
mov qword [rbp - 0x61], rsi
cmp r14, rdi
je 0x1400bccc4
nop
movsx edx, byte [r14]
mov rcx, rsi
call fcn.140050d10
inc r14
cmp r14, rdi
jne 0x1400bccb0
lea rcx, [rbp - 0x31]
call fcn.14002ccd0
jmp 0x1400bcb1c
mov ecx, 5
call fcn.1400de610
test eax, eax
je 0x1400bcd09
lea rax, str.failed_to_find_the_end_of_the_file_version
mov qword [rsp + 0x20], rax
mov r9d, 0x41
lea r8, str.Intel::Analytics::CTxtVerSubstitution::Substitute
lea rdx, str.E:BT550b508a_48fa_453d_94fa_eec8802a9742ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginTxtVerSubstitution.cpp
lea ecx, [r9 - 0x3c]
call fcn.140028a20
xor eax, eax
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], 7
mov word [rsi], ax
lea r8d, [rax + 8]
lea rdx, str._UNKNOWN
mov rcx, rsi
call fcn.14002b640
nop
lea rcx, [rbp - 0x31]
call fcn.14002ccd0
jmp 0x1400bcb1c
call fcn.140041a10
int3