Function at 0x1400077c0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2d8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov edi, r9d
mov rsi, r8
mov r12, rdx
mov rbx, rcx
mov qword [rsp + 0x88], rdx
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetFileType]
mov ebp, eax
test eax, eax
jne 0x140007817
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140007b7b
mov rcx, qword [rbx + 0x40]
xor r13d, r13d
mov qword [rbx + 0x40], r13
test rcx, rcx
je 0x14000782d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x48], r13
mov dword [rbx + 0x50], 0xfde9
mov word [rbx + 0x54], r13w
mov byte [rbx + 0x56], r13b
mov qword [rbx + 0x58], r13
mov qword [rbx + 0x60], r13
cmp edi, 3
ja 0x140007887
test edi, edi
jne 0x14000785c
call qword [sym.imp.KERNEL32.dll_GetACP]
mov edi, eax
jmp 0x140007887
cmp edi, 1
jne 0x14000786b
call qword [sym.imp.KERNEL32.dll_GetOEMCP]
mov edi, eax
jmp 0x140007887
lea r8, [rsp + 0xa0]
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCPInfoExW]
test eax, eax
cmovne edi, dword [rsp + 0xb4]
mov dword [rsp + 0x90], edi
lea rcx, [rsp + 0x90]
call fcn.140004830
mov eax, dword [rsp + 0x90]
mov dword [rbx + 0x50], eax
mov byte [rbx + 0x54], 3
movzx eax, byte [rsp + 0x340]
mov byte [rbx + 0x55], al
mov rax, qword [r12]
mov qword [r12], r13
mov rcx, qword [rbx + 0x40]
mov qword [rbx + 0x40], rax
test rcx, rcx
je 0x1400078cf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x48], rsi
test byte [rbx + 0x55], 0x10
je 0x140007934
cmp ebp, 2
jne 0x140007934
lea rdx, [rsp + 0x90]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x140007934
mov rsi, qword [rbx + 0x30]
mov edx, 0x800
cmp rsi, rdx
jae 0x140007924
cmp qword [rbx + 0x38], rdx
jae 0x140007917
sub rdx, rsi
lea rcx, [rbx + 0x20]
call fcn.140005c70
mov qword [rbx + 0x30], rsi
mov rdx, qword [rbx + 0x38]
lea rcx, [rbx + 0x20]
call fcn.140005be0
mov dword [rbx + 0x50], 0x4b0
mov byte [rbx + 0x54], 4
jmp 0x140007afe
mov rdi, qword [rbx + 0x10]
mov edx, 0x1000
cmp rdi, rdx
jae 0x140007999
cmp qword [rbx + 0x18], rdx
jae 0x140007957
sub rdx, rdi
mov rcx, rbx
call fcn.140005de0
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx + 0x18]
mov qword [rbx + 0x10], rax
mov rcx, rbx
cmp rax, rdi
ja 0x140007976
cmp rax, 0xf
jbe 0x140007970
mov rcx, qword [rbx]
mov byte [rcx + rax], r13b
jmp 0x140007999
mov rsi, rax
sub rsi, rdi
cmp rax, 0xf
jbe 0x140007985
mov rcx, qword [rbx]
add rdi, rcx
mov r8, rsi
xor edx, edx
mov rcx, rdi
call fcn.14001fbb0
mov byte [rdi + rsi], r13b
test byte [rbx + 0x55], 2
je 0x140007afe
mov dword [rsp + 0x90], r13d
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400079b8
mov rcx, qword [rbx]
mov rdx, qword [rbx + 0x58]
add rdx, rcx
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x90]
mov r8d, 4
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400079ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140007b3a
mov ecx, dword [rsp + 0x90]
add qword [rbx + 0x58], rcx
test ecx, ecx
jne 0x140007a15
mov rcx, qword [rbx + 0x40]
mov qword [rbx + 0x40], r13
test rcx, rcx
je 0x140007a11
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x48], r13
lea rdi, [0x14002a700]
nop dword [rax]
mov rdx, rbx
mov r14, qword [rbx + 0x18]
cmp r14, 0xf
jbe 0x140007a30
mov rdx, qword [rbx]
mov rbp, qword [rbx + 0x58]
movzx esi, byte [rdi + 2]
mov ecx, esi
movzx eax, bpl
cmp rsi, rbp
cmova ecx, eax
movzx r15d, cl
mov r8d, r15d
mov rcx, qword [rdi + 8]
call fcn.1400205f0
test eax, eax
jne 0x140007a71
cmp r15b, sil
je 0x140007a83
cmp qword [rbx + 0x48], r13
je 0x140007a71
mov edx, esi
sub edx, ebp
mov rcx, rbx
call fcn.1400076d0
jmp 0x140007a20
add rdi, 0x10
lea rax, str._clipboard_
cmp rdi, rax
jne 0x140007a20
jmp 0x140007afe
cmp rsi, rbp
jb 0x140007a8e
mov qword [rbx + 0x58], r13
jmp 0x140007aba
test rsi, rsi
je 0x140007aba
sub rbp, rsi
mov qword [rbx + 0x58], rbp
mov rax, rbx
cmp r14, 0xf
jbe 0x140007aab
mov rax, qword [rbx]
mov rcx, rax
jmp 0x140007aae
mov rcx, rbx
lea rdx, [rax + rsi]
mov r8, rbp
call fcn.14001ff70
movzx edi, word [rdi]
cmp edi, 3
ja 0x140007afb
test edi, edi
jne 0x140007ad0
call qword [sym.imp.KERNEL32.dll_GetACP]
mov edi, eax
jmp 0x140007afb
cmp edi, 1
jne 0x140007adf
call qword [sym.imp.KERNEL32.dll_GetOEMCP]
mov edi, eax
jmp 0x140007afb
lea r8, [rsp + 0xa0]
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCPInfoExW]
test eax, eax
cmovne edi, dword [rsp + 0xb4]
mov dword [rbx + 0x50], edi
mov rcx, rbx
call fcn.140007d70
nop
mov rcx, qword [r12]
test rcx, rcx
je 0x140007b16
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140008180
add rsp, 0x2d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.1400073c0
nop
mov r8, rax
lea rdx, str.ReadFile_error
lea rcx, [rsp + 0x48]
call fcn.1400057a0
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400065b0
lea rdx, [0x14002dc40]
lea rcx, [rsp + 0x30]
call fcn.140009dc8
nop
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.1400073c0
nop
mov r8, rax
lea rdx, str.GetFileType_error
lea rcx, [rsp + 0x68]
call fcn.1400057a0
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400065b0
lea rdx, [0x14002dc40]
lea rcx, [rsp + 0x30]
call fcn.140009dc8
int3