Function at 0x140004230
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, [0x1400200d0]
mov rcx, r14
call fcn.140002610
mov rdx, r12
lea rcx, [rbp + 0x38]
call fcn.1400037b0
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 0x1400046e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 8]
call fcn.140001020
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.140002e20
nop
lea r8, str._error___handle
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140002f90
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140003000
nop
lea r8, str._error_number:
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140002f90
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140003000
mov rbx, rax
cmp r14, rax
je 0x140004385
mov rcx, r14
call fcn.140002570
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 0x1400043dd
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x1400043d8
test cl, 0x1f
je 0x1400043ab
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400043ba
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400043c9
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x1400043d5
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], send
mov byte [rsp + 0x40], 0
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x140004448
inc rax
mov rcx, qword [rsp + 0x60]
cmp rax, 0x1000
jb 0x140004443
test cl, 0x1f
je 0x140004416
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004425
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004434
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140004440
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], send
mov byte [rsp + 0x60], 0
mov rax, qword [rbp - 0x68]
cmp rax, 0x10
jb 0x1400044b1
inc rax
mov rcx, qword [rbp - 0x80]
cmp rax, 0x1000
jb 0x1400044ac
test cl, 0x1f
je 0x14000447f
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000448e
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000449d
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x1400044a9
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], send
mov byte [rbp - 0x80], 0
mov rax, qword [rbp - 0x48]
cmp rax, 0x10
jb 0x140004517
inc rax
mov rcx, qword [rbp - 0x60]
cmp rax, 0x1000
jb 0x140004512
test cl, 0x1f
je 0x1400044e5
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400044f4
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004503
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x14000450f
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], send
mov byte [rbp - 0x60], 0
mov rax, qword [rbp - 0x28]
cmp rax, 0x10
jb 0x14000457d
inc rax
mov rcx, qword [rbp - 0x40]
cmp rax, 0x1000
jb 0x140004578
test cl, 0x1f
je 0x14000454b
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000455a
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004569
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140004575
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], send
mov byte [rbp - 0x40], 0
mov rax, qword [rbp - 8]
cmp rax, 0x10
jb 0x1400045e3
inc rax
mov rcx, qword [rbp - 0x20]
cmp rax, 0x1000
jb 0x1400045de
test cl, 0x1f
je 0x1400045b1
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400045c0
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400045cf
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x1400045db
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], send
mov byte [rbp - 0x20], 0
mov rax, qword [rbp + 0x20]
cmp rax, 0x10
jb 0x140004649
inc rax
mov rcx, qword [rbp + 8]
cmp rax, 0x1000
jb 0x140004644
test cl, 0x1f
je 0x140004617
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004626
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004635
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140004641
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], send
mov byte [rsi], 0
xor r8d, r8d
lea rdx, [0x1400200d0]
mov rcx, rsi
call fcn.140002610
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 8
jb 0x140004bdd
inc rdx
mov rcx, qword [rbp + 0x38]
movabs rax, 0x7fffffffffffffff
cmp rdx, rax
jbe 0x140004695
call fcn.140009ab8
int3
lea rax, [rdx + rdx]
cmp rax, 0x1000
jb 0x1400046d9
test cl, 0x1f
je 0x1400046ac
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400046bb
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400046ca
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x1400046d6
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
jmp 0x140004bdd
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
mov ecx, eax
call fcn.14000b06c
mov rdi, rax
mov rcx, rbx
test rax, rax
jne 0x1400047b5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8d, [rdi + 0x14]
lea rdx, str.malloc_memory_error_
mov rcx, r14
call fcn.140002610
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], send
mov byte [rsi], dil
xor r8d, r8d
lea rdx, [0x1400200d0]
mov rcx, rsi
call fcn.140002610
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 8
jb 0x140004bdd
inc rdx
mov rcx, qword [rbp + 0x38]
movabs rax, 0x7fffffffffffffff
cmp rdx, rax
jbe 0x14000476c
call fcn.140009ab8
int3
lea rax, [rdx + rdx]
cmp rax, 0x1000
jb 0x1400046d9
test cl, 0x1f
je 0x140004787
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004796
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400047a5
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x1400046d6
call fcn.140009ab8
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 0x140004b7f
lea edx, [rax + 1]
mov rcx, rdi
call fcn.1400059e8
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.140001020
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.140002e20
nop
lea r8, str._error___handle
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140002f90
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140003000
nop
lea r8, str._error_number
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140002f90
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140003000
mov rbx, rax
cmp r14, rax
je 0x140004898
mov rcx, r14
call fcn.140002570
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 0x1400048ee
inc rax
mov rcx, qword [rbp - 0x20]
cmp rax, 0x1000
jb 0x1400048e9
test cl, 0x1f
je 0x1400048bc
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400048cb
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400048da
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x1400048e6
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], send
mov byte [rbp - 0x20], 0
mov rax, qword [rbp - 0x28]
cmp rax, 0x10
jb 0x140004954
inc rax
mov rcx, qword [rbp - 0x40]
cmp rax, 0x1000
jb 0x14000494f
test cl, 0x1f
je 0x140004922
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004931
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004940
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x14000494c
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], send
mov byte [rbp - 0x40], 0
mov rax, qword [rbp - 0x48]
cmp rax, 0x10
jb 0x1400049ba
inc rax
mov rcx, qword [rbp - 0x60]
cmp rax, 0x1000
jb 0x1400049b5
test cl, 0x1f
je 0x140004988
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004997
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400049a6
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x1400049b2
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], send
mov byte [rbp - 0x60], 0
mov rax, qword [rbp - 0x68]
cmp rax, 0x10
jb 0x140004a20
inc rax
mov rcx, qword [rbp - 0x80]
cmp rax, 0x1000
jb 0x140004a1b
test cl, 0x1f
je 0x1400049ee
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400049fd
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004a0c
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140004a18
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], send
mov byte [rbp - 0x80], 0
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x140004a88
inc rax
mov rcx, qword [rsp + 0x60]
cmp rax, 0x1000
jb 0x140004a83
test cl, 0x1f
je 0x140004a56
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004a65
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004a74
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140004a80
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], send
mov byte [rsp + 0x60], 0
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x140004af3
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x140004aee
test cl, 0x1f
je 0x140004ac1
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004ad0
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004adf
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140004aeb
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], send
mov byte [rsp + 0x40], 0
mov rax, qword [rbp + 0x20]
cmp rax, 0x10
jb 0x140004b5c
inc rax
mov rcx, qword [rbp + 8]
cmp rax, 0x1000
jb 0x140004b57
test cl, 0x1f
je 0x140004b2a
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004b39
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004b48
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140004b54
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], send
mov byte [rsi], 0
xor r8d, r8d
lea rdx, [0x1400200d0]
mov rcx, rsi
call fcn.140002610
jmp 0x140004bd4
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.140002460
mov edx, 1
mov rcx, rdi
call fcn.1400059e8
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.140002390
mov rax, rsi
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.140005980
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret