Function at 0x140048390
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1401f3030]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x60]
call fcn.14014ba20
lea rcx, [0x140000000]
lea rax, [rcx + 0x1b8bb0]
mov qword [rsp + 0x60], rax
lea rax, [rcx + 0x1b8ba8]
mov qword [rsp + 0x70], rax
mov qword [rbp], rsi
mov qword [rbp + 0x28], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
mov dword [rsp + 0x30], 2
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0x80
mov qword [rsp + 0x68], rsi
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 8]
call fcn.140030ba0
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x5c], edx
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x78]
call fcn.140030a90
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x20], rsi
mov dword [rbp - 0x18], esi
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x60]
call fcn.14014ba20
mov dword [rsp + 0x58], esi
nop
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x58]
mov r8d, 0xff
lea rdx, [rbp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140048531
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140048531
cmp eax, 0xff
ja 0x140048521
cmp rax, 0x100
jae 0x140048601
mov byte [rbp + rax + 0x60], 0
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.140049800
jmp 0x1400484e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1400484e0
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov dword [rsp + 0x30], 0x42
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov ecx, dword [rbp - 0x18]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x14004858d
mov rax, qword [rbp - 0x48]
mov r8, qword [rax]
test r8, r8
je 0x14004858d
mov rax, qword [rbp - 0x68]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x20]
cmovb r8, qword [rbp - 0x20]
sub r8, rdx
sar r8, 1
jmp 0x1400485c4
test cl, 4
jne 0x1400485ba
mov rax, qword [rbp - 0x50]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400485ba
mov rax, qword [rbp - 0x70]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x38]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
jmp 0x1400485c4
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1400485d2
mov rcx, rbx
call fcn.140020fa0
nop
lea rcx, [rsp + 0x60]
call fcn.14002edd0
mov rax, rbx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140149500
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
call fcn.140149ab4
nop
int3