Function at 0x1400cfa50
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rsp + 0x100], rbx
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, r8
mov rsi, rdx
xor r15d, r15d
mov dword [rbp - 0x55], r15d
cmp qword [r8 + 0x18], 8
jb 0x1400cfa9b
mov rcx, qword [r8]
jmp 0x1400cfa9e
mov rcx, rdi
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
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 + 0x27], rax
cmp rax, 0xffffffffffffffff
jne 0x1400cfbb3
mov eax, dword [0x1403f2658]
mov dword [rsp + 0x20], eax
mov r9, qword [str._no_host]
mov r8, qword [0x1403f2b80]
mov rdx, qword [str._no_group]
mov rcx, qword [0x1403f2660]
call fcn.140033d60
test rax, rax
je 0x1400cfb6a
mov rcx, qword [rax]
test rcx, rcx
je 0x1400cfb6a
mov rax, qword [rcx]
lea edx, [rbx + 2]
call qword [rax + 0x50]
test eax, eax
je 0x1400cfb6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x59], eax
cmp qword [rdi + 0x18], 8
jb 0x1400cfb2b
mov rdi, qword [rdi]
mov qword [rbp - 0x29], rdi
lea rax, [rbp - 0x59]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x29]
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.TxtVerSubstitution.cpp
lea ecx, [r9 - 0x23]
call fcn.140085070
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r15
cmp qword [rsi + 0x18], 8
jb 0x1400cfb82
mov rax, qword [rsi]
jmp 0x1400cfb85
mov rax, rsi
mov word [rax], r15w
movzx ecx, word [str._UNKNOWN]
neg cx
sbb r8, r8
and r8d, 8
lea rdx, str._UNKNOWN
mov rcx, rsi
call fcn.14002c3d0
nop
or rcx, 0xffffffffffffffff
jmp 0x1400cff29
xor eax, eax
mov qword [rbp - 0x29], rax
mov edx, 0x400
lea rcx, [rbp - 0x29]
call fcn.140036380
nop
xor edx, edx
mov r8d, 0x400
mov rdi, qword [rbp - 0x29]
mov rcx, rdi
call fcn.14028e7e0
mov dword [rbp - 1], r15d
mov qword [rsp + 0x20], r15
lea r9, [rbp - 1]
mov r8d, 0x3ff
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400cfca0
lea ecx, [rax + 5]
call fcn.1400294e0
test eax, eax
je 0x1400cfc4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x59], eax
lea rax, [rbp - 0x59]
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.TxtVerSubstitution.cpp
lea ecx, [r9 - 0x29]
call fcn.140027910
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r15
cmp qword [rsi + 0x18], 8
jb 0x1400cfc62
mov rax, qword [rsi]
jmp 0x1400cfc65
mov rax, rsi
mov word [rax], r15w
movzx eax, word [str._UNKNOWN]
neg ax
sbb r8, r8
and r8d, 8
lea rdx, str._UNKNOWN
mov rcx, rsi
call fcn.14002c3d0
nop
test rdi, rdi
je 0x1400cff21
mov rcx, rdi
call fcn.14026e340
jmp 0x1400cff21
mov qword [rbp + 0x1f], sendto
mov qword [rbp + 0x17], r15
mov byte [rbp + 7], 0
cmp byte [rdi], 0
jne 0x1400cfcba
mov r8, r15
jmp 0x1400cfcca
or r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdi + r8], 0
jne 0x1400cfcc0
mov rdx, rdi
lea rcx, [rbp + 7]
call fcn.14002d080
nop
mov qword [rbp - 0x29], r15
test rdi, rdi
je 0x1400cfce8
mov rcx, rdi
call fcn.14026e340
mov r9d, reloc.WS2_32.dll_listen
lea rdx, str._FileVersion
lea rcx, [rbp + 7]
call fcn.1400cffa0
cmp rax, 0xffffffffffffffff
jne 0x1400cfd7d
lea ecx, [rax + 6]
call fcn.1400294e0
test eax, eax
je 0x1400cfd39
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.TxtVerSubstitution.cpp
lea ecx, [r9 - 0x34]
call fcn.140029450
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r15
cmp qword [rsi + 0x18], 8
jb 0x1400cfd51
mov rax, qword [rsi]
jmp 0x1400cfd54
mov rax, rsi
mov word [rax], r15w
movzx eax, word [str._UNKNOWN]
neg ax
sbb r8, r8
and r8d, 8
lea rdx, str._UNKNOWN
mov rcx, rsi
call fcn.14002c3d0
jmp 0x1400cff17
lea r8, [rax + 0xd]
or r9, 0xffffffffffffffff
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 7]
call fcn.1400cff60
nop
mov r14, qword [rbp - 0x11]
test r14, r14
je 0x1400cfe96
cmp r14, 1
jb 0x1400cfe96
lea rdi, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rdi, qword [rbp - 0x21]
nop dword [rax + rax]
test r14, r14
je 0x1400cfe96
mov r8, r14
mov edx, 0x20
mov rcx, rdi
call fcn.14028ee80
mov r9, rax
test rax, rax
je 0x1400cfe96
cmp byte [rax], 0x20
je 0x1400cfdf9
sub rdi, rax
dec rdi
add r14, rdi
lea rdi, [rax + 1]
jmp 0x1400cfdc0
lea rax, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rax, qword [rbp - 0x21]
sub r9, rax
cmp r9, 0xffffffffffffffff
je 0x1400cfe96
xor r8d, r8d
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x21]
call fcn.1400cff60
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.140072a00
lea rcx, [rbp - 0x49]
call fcn.14002dfa0
lea rdi, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rdi, qword [rbp - 0x21]
add rdi, qword [rbp - 0x11]
lea r14, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae r14, qword [rbp - 0x21]
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r15
cmp qword [rsi + 0x18], 8
jb 0x1400cfe71
mov rax, qword [rsi]
jmp 0x1400cfe74
mov rax, rsi
mov word [rax], r15w
mov rdx, rdi
sub rdx, r14
mov rcx, rsi
call fcn.140032580
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call fcn.1400d0070
jmp 0x1400cff0d
mov ecx, 5
call fcn.1400294e0
test eax, eax
je 0x1400cfecd
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.TxtVerSubstitution.cpp
lea ecx, [r9 - 0x3c]
call fcn.140029450
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r15
cmp qword [rsi + 0x18], 8
jb 0x1400cfee5
mov rax, qword [rsi]
jmp 0x1400cfee8
mov rax, rsi
mov word [rax], r15w
movzx eax, word [str._UNKNOWN]
neg ax
sbb r8, r8
and r8d, 8
lea rdx, str._UNKNOWN
mov rcx, rsi
call fcn.14002c3d0
nop
lea rcx, [rbp - 0x21]
call fcn.14002dfa0
nop
lea rcx, [rbp + 7]
call fcn.14002dfa0
nop
test rbx, rbx
je 0x1400cff2f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14026d870
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret