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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0xa8]
sub rsp, 0x190
mov ebx, 0x104
lea rcx, [rbp - 0x80]
mov r8d, ebx
xor edx, edx
call fcn.1400032f0
mov r8d, ebx
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
or rax, 0xffffffffffffffff
lea rcx, [rbp - 0x80]
xor r15d, r15d
inc rax
cmp byte [rcx + rax], r15b
jne 0x14000104f
test rax, rax
je 0x1400013db
mov cl, 0x5c
jmp 0x14000106a
test rax, rax
je 0x140001073
dec rax
cmp byte [rbp + rax - 0x80], cl
jne 0x140001065
cmp byte [rbp + rax - 0x80], cl
jne 0x1400013db
mov byte [rsp + 0x50], cl
lea r8, [rsp + 0x50]
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x40], r15d
mov rdx, rbx
mov byte [rbp + rax - 0x80], r15b
mov dword [rsp + 0x51], 0x6563696c
mov dword [rsp + 0x55], 0x2e65736e
mov dword [rsp + 0x59], 0x747874
call fcn.140003a1c
mov r8d, 3
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
lea rcx, [rbp - 0x80]
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov r14, r15
cmp rax, 0xffffffffffffffff
je 0x1400013db
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0x20
jbe 0x14000131a
lea r9, [rsp + 0x64]
mov dword [rsp + 0x60], r15d
mov r8d, 4
mov dword [rsp + 0x64], r15d
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000131a
cmp dword [rsp + 0x60], 0x392bddce
jne 0x14000131a
lea eax, [rdi - 4]
mov ecx, eax
mov dword [rsp + 0x40], eax
call fcn.140003a94
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x64]
mov rdx, rax
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000131a
call fcn.140001548
call fcn.1400014a0
mov rax, qword [0x140017be8]
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x68], r15
test rax, rax
jne 0x1400011ad
mov rcx, qword [0x140017bf8]
lea rdx, [0x140014350]
call fcn.1400013fc
mov qword [0x140017be8], rax
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x70]
xor edx, edx
call rax
test eax, eax
je 0x14000131a
mov rax, qword [0x140017bd8]
mov rdi, qword [rsp + 0x70]
test rax, rax
jne 0x1400011fa
mov rcx, qword [0x140017bf8]
lea rdx, [0x1400143a8]
call fcn.1400013fc
mov qword [0x140017bd8], rax
xor r9d, r9d
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
lea rdx, [0x1400143f0]
mov rcx, rdi
mov dword [rsp + 0x20], 1
lea r8d, [r9 + 0x1c]
call rax
test eax, eax
je 0x1400012e8
mov rax, qword [0x140017bd0]
mov rdi, qword [rsp + 0x68]
mov dword [rsp + 0x44], 2
test rax, rax
jne 0x14000125a
mov rcx, qword [0x140017bf8]
lea rdx, [0x1400143b8]
call fcn.1400013fc
mov qword [0x140017bd0], rax
xor r9d, r9d
lea r8, [rsp + 0x44]
mov rcx, rdi
lea edx, [r9 + 4]
call rax
mov rax, qword [0x140017bc0]
mov rdi, qword [rsp + 0x68]
test rax, rax
jne 0x140001296
mov rcx, qword [0x140017bf8]
lea rdx, [0x140014398]
call fcn.1400013fc
mov qword [0x140017bc0], rax
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rsi
xor edx, edx
call rax
mov rdi, qword [rsp + 0x68]
test eax, eax
mov rax, qword [0x140017be0]
cmovne r14, rsi
test rax, rax
jne 0x1400012e3
mov rcx, qword [0x140017bf8]
lea rdx, [0x140014368]
call fcn.1400013fc
mov qword [0x140017be0], rax
mov rcx, rdi
call rax
mov rax, qword [0x140017bf0]
mov rdi, qword [rsp + 0x70]
test rax, rax
jne 0x140001313
mov rcx, qword [0x140017bf8]
lea rdx, [0x140014380]
call fcn.1400013fc
mov qword [0x140017bf0], rax
xor edx, edx
mov rcx, rdi
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x1400013db
mov eax, dword [rsp + 0x40]
lea ecx, [rax + rax*2]
call fcn.140003a94
mov r9d, dword [rsp + 0x40]
mov r8, r14
mov rcx, rax
mov rdi, rax
lea edx, [r9 + r9*2]
call fcn.1400016bc
mov rcx, r14
movsxd rsi, eax
call fcn.140003a08
mov rbx, r15
test esi, esi
jle 0x14000136f
mov rdx, rsi
mov rcx, rdi
call fcn.140001f24
mov rbx, rax
mov rcx, rdi
call fcn.140003a08
test rbx, rbx
je 0x1400013db
lea rdx, [rsp + 0x44]
mov dword [rsp + 0x44], 0x75626544
mov rcx, rbx
mov word [rsp + 0x48], 0x67
call fcn.1400023a0
mov rbx, rax
test rax, rax
je 0x1400013db
mov rax, qword [0x140017bc8]
test rax, rax
jne 0x1400013c6
mov rcx, qword [0x140017c00]
lea rdx, [0x1400143d0]
call fcn.1400013fc
mov qword [0x140017bc8], rax
lea rcx, [rbp - 0x80]
call rax
call rbx
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400013ce
lea r11, [rsp + 0x190]
xor eax, eax
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret