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

Disassembly:
push rbp
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x80], ecx
mov qword [rbp + 0x88], rdx
call fcn.00402d70
call sub.msvcrt.dll_rand
mov ecx, eax
mov edx, 0x51eb851f
mov eax, ecx
imul edx
sar edx, 5
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
imul eax, eax, 0x64
sub ecx, eax
mov eax, ecx
sub eax, 0x32
mov dword [rbp - 0xc], eax
call sub.msvcrt.dll_rand
mov ecx, eax
mov edx, 0x51eb851f
mov eax, ecx
imul edx
sar edx, 5
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
imul eax, eax, 0x64
sub ecx, eax
mov eax, ecx
sub eax, 0x32
mov dword [rbp - 8], eax
mov edx, dword [rbp - 8]
mov eax, dword [rbp - 0xc]
mov ecx, eax
call fcn.004015af
lea rax, [0x004016a2]
mov qword [rbp + 0x40], rax
mov ecx, 0x64
call fcn.00401675
mov rax, qword [rbp + 0x40]
call rax
call fcn.00401841
call fcn.00401921
mov qword [rbp + 0x48], 0xffffffffffffffff
mov qword [rbp + 0x50], 0
mov dword [rbp - 4], 0
mov dword [rbp - 0x14], 0
mov qword [rbp + 0x58], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 0
mov edx, 0x80000000
lea rax, [0x00409980]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xffffffffffffffff
jne 0x401c01
lea rcx, str.createfi
call fcn.00401a83
jmp 0x401e97
mov rax, qword [rbp + 0x48]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
jne 0x401c30
lea rcx, str.filesize
call fcn.00401a83
jmp 0x401e97
mov ebx, dword [rbp - 4]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 8
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp + 0x58], rax
cmp qword [rbp + 0x58], 0
jne 0x401c6c
lea rcx, str.alloc
call fcn.00401a83
jmp 0x401e97
lea r8, [rbp - 0x14]
mov ecx, dword [rbp - 4]
mov rdx, qword [rbp + 0x58]
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
je 0x401ca2
mov eax, dword [rbp - 0x14]
cmp dword [rbp - 4], eax
je 0x401cca
mov eax, dword [rbp - 0x14]
mov edx, dword [rbp - 4]
mov r8d, edx
mov edx, eax
lea rcx, str._i__Read__ld_from__ld_Bytes__n
call sub.msvcrt.dll_printf
lea rcx, str.rdfile
call fcn.00401a83
jmp 0x401e97
mov rax, qword [rbp + 0x48]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
mov edx, dword [rbp - 4]
lea r8, [rbp + 0x10]
lea rcx, [rbp + 0x18]
mov rax, qword [rbp + 0x58]
mov r9, r8
mov r8, rcx
mov rcx, rax
call fcn.004028d1
test eax, eax
jne 0x401d15
mov eax, 0xffffffff
jmp 0x401e97
lea rcx, str.___DONE
call sub.msvcrt.dll_puts
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0x2000
lea rdx, [rbp + 0x28]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x3000
mov r9, rdx
mov r8d, 0
mov rdx, rax
mov rcx, 0xffffffffffffffff
call fcn.00402b30
mov dword [rbp], eax
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8, rdx
mov rdx, rax
mov rcx, 0xffffffffffffffff
call fcn.00402af0
mov dword [rbp - 0x10], 0
lea rcx, [rbp + 0x28]
lea rax, [rbp + 0x20]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20
mov r8, rcx
mov rdx, rax
mov rcx, 0xffffffffffffffff
call fcn.00402ab0
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jns 0x401dd1
mov eax, 2
jmp 0x401e97
mov qword [rbp + 0x30], 0xffffffffffffffff
mov rdx, qword [rbp + 0x20]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdx
mov r9, 0xffffffffffffffff
mov r8d, 0
mov edx, 0x1fffff
mov rcx, rax
call fcn.00402b70
mov dword [rbp + 8], eax
cmp dword [rbp + 8], 0
jns 0x401e45
mov eax, 3
jmp 0x401e97
movabs rax, 0xfffffffdabf41c00
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x30]
lea rdx, [rbp + 0x38]
mov r8, rdx
mov edx, 0
mov rcx, rax
call fcn.00402bb0
mov dword [rbp + 0xc], eax
cmp dword [rbp + 0xc], 0
jns 0x401e92
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____aaaaaaa_n
call sub.msvcrt.dll_printf
mov eax, 4
jmp 0x401e97
mov eax, 0
add rsp, 0xe8
pop rbx
pop rbp
ret