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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x1d8], rbx
mov rax, qword [0x140023008]
xor rax, rsp
mov qword [rbp + 0x78], rax
mov r14, r8
mov r12, rdx
mov rsi, rcx
xor r13d, r13d
mov dword [rbp], r13d
xor r8d, r8d
lea rdx, [0x140020030]
mov rcx, r14
call fcn.1400023c0
mov rdx, r12
lea rcx, [rbp + 0x38]
call fcn.1400034e0
nop
lea rcx, [rbp + 0x38]
cmp qword [rbp + 0x50], 8
cmovae rcx, qword [rbp + 0x38]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r13 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140004413
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 8]
call fcn.140003140
mov rdi, rax
or edx, ebx
lea rcx, [rbp - 0x20]
call fcn.140001000
mov rbx, rax
mov r8, r12
lea rdx, str.Read_file
lea rcx, [rbp - 0x40]
call fcn.140002b30
nop
lea r8, str._error___handle
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140002ca0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140002d10
nop
lea r8, str._error_number:
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140002ca0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002d10
mov rbx, rax
cmp r14, rax
je 0x1400040b5
mov rcx, r14
call fcn.140002320
movups xmm0, xmmword [rbx]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [r14 + 0x10], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], send
mov byte [rbx], r13b
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x14000410d
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x140004108
test cl, 0x1f
je 0x1400040db
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400040ea
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400040f9
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140004105
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], socket
mov byte [rsp + 0x40], 0
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x140004178
inc rax
mov rcx, qword [rsp + 0x60]
cmp rax, 0x1000
jb 0x140004173
test cl, 0x1f
je 0x140004146
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004155
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004164
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140004170
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], socket
mov byte [rsp + 0x60], 0
mov rax, qword [rbp - 0x68]
cmp rax, 0x10
jb 0x1400041e1
inc rax
mov rcx, qword [rbp - 0x80]
cmp rax, 0x1000
jb 0x1400041dc
test cl, 0x1f
je 0x1400041af
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400041be
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400041cd
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x1400041d9
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], send
mov byte [rbp - 0x80], 0
mov rax, qword [rbp - 0x48]
cmp rax, 0x10
jb 0x140004247
inc rax
mov rcx, qword [rbp - 0x60]
cmp rax, 0x1000
jb 0x140004242
test cl, 0x1f
je 0x140004215
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004224
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004233
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x14000423f
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], send
mov byte [rbp - 0x60], 0
mov rax, qword [rbp - 0x28]
cmp rax, 0x10
jb 0x1400042ad
inc rax
mov rcx, qword [rbp - 0x40]
cmp rax, 0x1000
jb 0x1400042a8
test cl, 0x1f
je 0x14000427b
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000428a
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004299
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x1400042a5
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], send
mov byte [rbp - 0x40], 0
mov rax, qword [rbp - 8]
cmp rax, 0x10
jb 0x140004313
inc rax
mov rcx, qword [rbp - 0x20]
cmp rax, 0x1000
jb 0x14000430e
test cl, 0x1f
je 0x1400042e1
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400042f0
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400042ff
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x14000430b
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], send
mov byte [rbp - 0x20], 0
mov rax, qword [rbp + 0x20]
cmp rax, 0x10
jb 0x140004379
inc rax
mov rcx, qword [rbp + 8]
cmp rax, 0x1000
jb 0x140004374
test cl, 0x1f
je 0x140004347
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004356
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004365
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140004371
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], send
mov byte [rsi], 0
xor r8d, r8d
lea rdx, [0x140020030]
mov rcx, rsi
call fcn.1400023c0
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 8
jb 0x14000490d
inc rdx
mov rcx, qword [rbp + 0x38]
movabs rax, 0x7fffffffffffffff
cmp rdx, rax
jbe 0x1400043c5
call fcn.1400098f8
int3
lea rax, [rdx + rdx]
cmp rax, 0x1000
jb 0x140004409
test cl, 0x1f
je 0x1400043dc
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400043eb
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400043fa
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140004406
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
jmp 0x14000490d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
mov ecx, eax
call fcn.14000aeac
mov rdi, rax
mov rcx, rbx
test rax, rax
jne 0x1400044e5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8d, [rdi + 0x14]
lea rdx, str.malloc_memory_error_
mov rcx, r14
call fcn.1400023c0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], send
mov byte [rsi], dil
xor r8d, r8d
lea rdx, [0x140020030]
mov rcx, rsi
call fcn.1400023c0
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 8
jb 0x14000490d
inc rdx
mov rcx, qword [rbp + 0x38]
movabs rax, 0x7fffffffffffffff
cmp rdx, rax
jbe 0x14000449c
call fcn.1400098f8
int3
lea rax, [rdx + rdx]
cmp rax, 0x1000
jb 0x140004409
test cl, 0x1f
je 0x1400044b7
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400044c6
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400044d5
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140004406
call fcn.1400098f8
nop
mov dword [rbp + 0x30], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x30]
mov r8d, r15d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400048af
lea edx, [rax + 1]
mov rcx, rdi
call fcn.1400057f8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 8]
call fcn.140003140
mov rdi, rax
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140001000
mov rbx, rax
mov r8, r12
lea rdx, str.Read_file
lea rcx, [rsp + 0x60]
call fcn.140002b30
nop
lea r8, str._error___handle
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140002ca0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140002d10
nop
lea r8, str._error_number
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140002ca0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140002d10
mov rbx, rax
cmp r14, rax
je 0x1400045c8
mov rcx, r14
call fcn.140002320
movups xmm0, xmmword [rbx]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [r14 + 0x10], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], send
mov byte [rbx], 0
mov rax, qword [rbp - 8]
cmp rax, 0x10
jb 0x14000461e
inc rax
mov rcx, qword [rbp - 0x20]
cmp rax, 0x1000
jb 0x140004619
test cl, 0x1f
je 0x1400045ec
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400045fb
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000460a
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140004616
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], send
mov byte [rbp - 0x20], 0
mov rax, qword [rbp - 0x28]
cmp rax, 0x10
jb 0x140004684
inc rax
mov rcx, qword [rbp - 0x40]
cmp rax, 0x1000
jb 0x14000467f
test cl, 0x1f
je 0x140004652
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004661
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004670
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x14000467c
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], send
mov byte [rbp - 0x40], 0
mov rax, qword [rbp - 0x48]
cmp rax, 0x10
jb 0x1400046ea
inc rax
mov rcx, qword [rbp - 0x60]
cmp rax, 0x1000
jb 0x1400046e5
test cl, 0x1f
je 0x1400046b8
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400046c7
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400046d6
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x1400046e2
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], send
mov byte [rbp - 0x60], 0
mov rax, qword [rbp - 0x68]
cmp rax, 0x10
jb 0x140004750
inc rax
mov rcx, qword [rbp - 0x80]
cmp rax, 0x1000
jb 0x14000474b
test cl, 0x1f
je 0x14000471e
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000472d
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000473c
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140004748
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], send
mov byte [rbp - 0x80], 0
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x1400047b8
inc rax
mov rcx, qword [rsp + 0x60]
cmp rax, 0x1000
jb 0x1400047b3
test cl, 0x1f
je 0x140004786
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004795
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400047a4
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x1400047b0
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], socket
mov byte [rsp + 0x60], 0
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x140004823
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x14000481e
test cl, 0x1f
je 0x1400047f1
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004800
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000480f
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x14000481b
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], socket
mov byte [rsp + 0x40], 0
mov rax, qword [rbp + 0x20]
cmp rax, 0x10
jb 0x14000488c
inc rax
mov rcx, qword [rbp + 8]
cmp rax, 0x1000
jb 0x140004887
test cl, 0x1f
je 0x14000485a
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004869
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004878
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140004884
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], send
mov byte [rsi], 0
xor r8d, r8d
lea rdx, [0x140020030]
mov rcx, rsi
call fcn.1400023c0
jmp 0x140004904
mov qword [rbp + 0x68], r13
mov qword [rbp + 0x70], send
mov byte [rbp + 0x58], 0
mov r8d, dword [rbp + 0x30]
mov rdx, rdi
lea rcx, [rbp + 0x58]
call fcn.140002210
mov edx, 1
mov rcx, rdi
call fcn.1400057f8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rbp + 0x58]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp + 0x68]
movups xmmword [rsi + 0x10], xmm1
mov qword [rbp + 0x68], r13
mov qword [rbp + 0x70], send
mov byte [rbp + 0x58], 0
lea rcx, [rbp + 0x38]
call fcn.140002140
mov rax, rsi
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.140005790
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret