Function at 0x140033650
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x1400a9010]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp + 0xa0], rcx
xor r12d, r12d
lea rcx, [rbp + 0xa0]
call fcn.1400275d0
movsd xmm0, qword [rax]
movsd qword [rbp + 0x90], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp + 0xb0], ecx
lea rax, [0x1400a9cb0]
mov qword [rbp + 0xb8], rax
movaps xmm0, xmmword [rbp + 0xb0]
movdqa xmmword [rbp + 0xb0], xmm0
mov eax, dword [rbp + 0x90]
test eax, eax
jne 0x1400336e2
test ecx, ecx
jne 0x140033d49
jmp 0x1400336e7
cmp eax, 1
jne 0x1400336f0
mov byte [rdi + 0x20], r12b
jmp 0x140033cc6
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x60]
call fcn.1400591d0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14003370f
mov rdx, qword [rbx]
lea rcx, [rsp + 0x60]
call fcn.14003c200
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], r13
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x5c], edx
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], socket
mov byte [rbp + 0x70], 0
cmp qword [rbp - 0x10], 0
jne 0x140033aff
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140033776
mov rcx, qword [rbx]
call fcn.140032f50
mov edx, eax
mov rcx, rbx
call fcn.140033160
mov r14, rax
mov qword [rbp + 0x90], rax
test rax, rax
jne 0x140033859
mov byte [rdi + 0x20], al
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x1400337d9
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400337d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140033d59
call fcn.140057214
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], socket
mov byte [rbp + 0x70], 0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], r13
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x70]
call fcn.1400399b0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x10]
call fcn.14007ed0c
nop
jmp 0x140033cc6
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
mov edx, eax
mov rcx, qword [rbp + 0x80]
cmp r15, rcx
ja 0x140033894
lea rcx, [rbp + 0x70]
cmp qword [rbp + 0x88], 0x10
cmovae rcx, qword [rbp + 0x70]
mov qword [rbp + 0x80], rdx
mov byte [rcx + r15], 0
jmp 0x1400338f0
mov rsi, rdx
sub rsi, rcx
mov r8, qword [rbp + 0x88]
mov rax, r8
sub rax, rcx
cmp rsi, rax
ja 0x1400338d6
mov qword [rbp + 0x80], rdx
lea rbx, [rbp + 0x70]
cmp r8, 0x10
cmovae rbx, qword [rbp + 0x70]
add rbx, rcx
mov r8, rsi
xor edx, edx
mov rcx, rbx
call fcn.1400591d0
mov byte [rbx + rsi], 0
jmp 0x1400338f0
mov byte [rsp + 0x20], 0
mov r9, rsi
movzx r8d, byte [rsp + 0x30]
mov rdx, rsi
lea rcx, [rbp + 0x70]
call fcn.14002c900
mov dword [rbp + 0xa0], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 0x10
cmovae rdx, qword [rbp + 0x70]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xa0]
mov r8d, r15d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140033a30
movups xmm0, xmmword [rbp + 0x70]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0x80]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], socket
mov byte [rbp + 0x70], 0
mov byte [rdi + 0x20], 1
mov rcx, r14
mov rax, qword [0x14009b558]
call rax
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x1400339b0
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400339ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140033d59
call fcn.140057214
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], socket
mov byte [rbp + 0x70], 0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], r13
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x70]
call fcn.1400399b0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x10]
call fcn.14007ed0c
nop
jmp 0x140033cc6
mov byte [rdi + 0x20], 0
mov rcx, r14
mov rax, qword [0x14009b558]
call rax
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x140033a7f
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033a7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140033d59
call fcn.140057214
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], socket
mov byte [rbp + 0x70], 0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], r13
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x70]
call fcn.1400399b0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x10]
call fcn.14007ed0c
nop
jmp 0x140033cc6
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
and dword [rsp + rcx + 0x78], 0xfffffffe
mov esi, 2
mov r8d, esi
lea rcx, [rsp + 0x60]
call fcn.140039d90
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x60]
call fcn.140039cb0
mov rdx, qword [rax + 8]
add rdx, qword [rax]
cmp qword [rbp + 0x88], rdx
jae 0x140033b5a
mov rbx, qword [rbp + 0x80]
sub rdx, rbx
lea rcx, [rbp + 0x70]
call fcn.14002b3d0
mov qword [rbp + 0x80], rbx
xor r8d, r8d
lea rcx, [rsp + 0x60]
call fcn.140039d90
mov qword [rbp + 0x90], r12
mov word [rbp + 0x98], 1
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx - 0x58]
mov qword [rbp + 0xa0], rax
test rax, rax
sete byte [rbp + 0xa8]
mov byte [rbp + 0xa9], 0
movaps xmm0, xmmword [rbp + 0x90]
movdqa xmmword [rbp + 0xb0], xmm0
movaps xmm1, xmmword [rbp + 0xa0]
movdqa xmmword [rbp + 0x90], xmm1
lea r8, [rbp + 0xb0]
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x70]
call fcn.14003b190
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov eax, 4
cmp qword [rbp + rcx - 0x58], 0
cmovne eax, r12d
mov dword [rsp + rcx + 0x70], eax
test dword [rsp + rcx + 0x74], eax
jne 0x140033d5f
lea rcx, [rsp + 0x70]
call fcn.14003a7a0
test rax, rax
jne 0x140033c35
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov eax, 6
cmp qword [rbp + rcx - 0x58], 0
cmovne eax, esi
or eax, dword [rsp + rcx + 0x70]
and eax, 0x17
mov dword [rsp + rcx + 0x70], eax
mov edx, dword [rsp + rcx + 0x74]
and edx, eax
jne 0x140033cf3
movups xmm0, xmmword [rbp + 0x70]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0x80]
movups xmmword [rdi + 0x10], xmm1
mov byte [rdi + 0x20], 1
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], socket
mov byte [rbp + 0x70], 0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], r13
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x70]
call fcn.1400399b0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x10]
call fcn.14007ed0c
nop
mov rax, rdi
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140056e90
mov rbx, qword [rsp + 0x230]
add rsp, 0x1e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test dl, 4
je 0x140033d01
lea rbx, str.ios_base::badbit_set
jmp 0x140033d16
test sil, dl
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0xb0]
call fcn.140031db0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140032340
lea rdx, [0x1400a74b0]
lea rcx, [rsp + 0x38]
call fcn.140059100
nop
mov r8, rbx
lea rdx, [rbp + 0xb0]
call fcn.140026ec0
nop
call fcn.14005d7e8
nop
mov edx, 1
lea rcx, [rbp + 0xb0]
call fcn.140031db0
mov r8, rax
lea rdx, str.ios_base::badbit_set
lea rcx, [rsp + 0x38]
call fcn.140032340
lea rdx, [0x1400a74b0]
lea rcx, [rsp + 0x38]
call fcn.140059100
int3