Function at 0x140049ce0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0xd8], rax
test rdx, rdx
je 0x140049d26
cmp byte [rsi + 0x17], 0
js 0x140049f1d
xor eax, eax
mov byte [rsi], al
mov byte [rsi + 0x17], al
mov rcx, rdi
call fcn.1400d91f0
test al, al
jne 0x140049d46
lea rdx, [0x1401e1da5]
mov rcx, rdi
call fcn.140051dd0
test rax, rax
jne 0x140049d73
xor edi, edi
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1401013e0
mov eax, edi
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, rax
test rsi, rsi
je 0x140049d8c
cmp byte [rsi + 0x17], 0
js 0x140049f30
xor eax, eax
mov byte [rsi], al
mov byte [rsi + 0x17], al
mov rcx, r14
xor edx, edx
xor r8d, r8d
call fcn.1401194e4
movaps xmm0, xmmword [0x1401d9dd0]
lea rdi, [rsp + 0x80]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.ReadStreamToStringWithMaxSize
lea r8, str..._.._base_files_file_util.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0xbb
call fcn.1400d95e0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400e5a80
xorps xmm6, xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
mov dword [rbx + 0x30], 0
mov rcx, r14
call fcn.140111a90
mov ecx, eax
call fcn.14011252c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140049f43
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov edi, 0xffff
cmovg rdi, rax
lea r15, [rsp + 0x20]
movaps xmmword [r15], xmm6
mov qword [r15 + 0x10], 0
inc rdi
xor ebx, ebx
mov rcx, r15
mov rdx, rdi
xor r8d, r8d
call fcn.1400d57b0
mov r12d, 0x10000
cmp byte [rsp + 0x37], 0
mov rcx, r15
jns 0x140049e78
mov rcx, qword [rsp + 0x20]
add rcx, rbx
mov edx, 1
mov r8, rdi
mov r9, r14
call fcn.140119264
test rax, rax
je 0x140049eb9
mov rcx, rbx
not rcx
cmp rcx, rax
jb 0x140049f4d
test rbx, rbx
cmove rdi, r12
add rbx, rax
mov rcx, r14
call fcn.140118e10
test eax, eax
je 0x140049f5b
mov rcx, r14
call fcn.140118e3c
test eax, eax
sete dil
test rsi, rsi
je 0x140049efc
movups xmm0, xmmword [rsi]
mov rax, qword [rsi + 0x10]
mov rcx, qword [rsp + 0x30]
mov qword [rsi + 0x10], rcx
movaps xmm1, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400d57b0
cmp byte [rsp + 0x37], 0
js 0x140049f71
lea rcx, [rsp + 0x80]
call fcn.1400e5c10
mov rcx, r14
call fcn.140118d28
jmp 0x140049d48
mov rax, qword [rsi]
mov byte [rax], 0
mov qword [rsi + 8], 0
jmp 0x140049d26
mov rax, qword [rsi]
mov byte [rax], 0
mov qword [rsi + 8], 0
jmp 0x140049d8c
mov edi, 0xffff
jmp 0x140049e3f
mov rbx, 0xffffffffffffffff
xor edi, edi
jmp 0x140049ec7
lea rdx, [rbx + rdi]
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.1400d57b0
jmp 0x140049e69
mov rcx, qword [rsp + 0x20]
call fcn.140100564
jmp 0x140049f03