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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rbx, rcx
mov rcx, qword [0x1407951e0]
xor r12d, r12d
mov r14d, edx
mov r15d, r12d
call fcn.1400bf780
mov rdi, rax
call fcn.14008ef04
test rbx, rbx
mov qword [rsp + 0x30], r12
lea rsi, [0x140179494]
lea r13d, [r12 + 1]
cmovne rsi, rbx
lea ebx, [r12 + 3]
mov edx, 0xc0000000
mov r8d, r13d
xor r9d, r9d
mov rcx, rsi
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rdi + 0x14], r12d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
jne 0x14008e5e3
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov r8d, r13d
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
jne 0x14008e58f
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov r8d, ebx
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi], rax
cmp qword [rdi], 0xffffffffffffffff
mov dword [rdi + 0x14], r13d
jne 0x14008e5e3
mov rcx, rsi
mov qword [rdi], r12
mov dword [rdi + 0x50], r14d
mov dword [rdi + 0x28], 0xfde9
call sub.msvcrt.dll_wcslen
mov rcx, qword [0x140790968]
lea r8, [rax*2 + 2]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi + 8], rax
test rax, rax
je 0x14008e8d0
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_wcscpy
jmp 0x14008e8d0
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rbp + 0x58], rax
mov dword [rdi + 0x28], r12d
mov dword [rdi + 0x50], r14d
mov rax, qword [rbp + 0x58]
cmp rax, rbx
jl 0x14008e663
mov rcx, qword [rdi]
lea r9, [rbp + 0x50]
lea rdx, [rbp + 0x40]
mov r8d, ebx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x50], ebx
jne 0x14008e64e
lea rdx, [0x14018d6c4]
lea rcx, [rbp + 0x40]
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x14008e64e
mov dword [rdi + 0x28], 0xfde9
mov rax, qword [rbp + 0x58]
sub rax, rbx
mov qword [rbp + 0x58], rax
jmp 0x14008e663
mov rcx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, qword [rbp + 0x58]
test rax, rax
jle 0x14008e713
mov rcx, qword [0x140790968]
xor edx, edx
lea r8, [rax + 2]
cmp dword [rdi + 0x28], r12d
jne 0x14008e753
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14008e70f
mov r8, qword [rbp + 0x58]
mov rcx, qword [0x140790968]
xor edx, edx
lea r8, [r8*4 + 2]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x14008e70f
mov r8d, dword [rbp + 0x58]
mov rcx, qword [rdi]
lea r9, [rbp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rbp + 0x50]
lea r9, [rbp - 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x58]
lea rdx, [rbp + 0x58]
shl rax, 2
mov r8, rbx
mov qword [rbp + 0x58], rax
mov rcx, qword [rdi + 0x18]
call fcn.1400c1540
mov dword [rdi + 0x28], 0xfde9
mov rcx, qword [0x140790968]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rbp + 0x58]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14008e8d0
mov word [rcx + rax], r12w
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbp + 0x58]
lea rcx, [rbx + rax]
mov sil, 0xa
mov r14b, reloc.WS2_32.dll_listen
mov qword [rdi + 0x20], rcx
cmp rbx, rcx
jae 0x14008e8d0
cmp byte [rbx], 0x20
je 0x14008e74e
cmp byte [rbx], 9
jne 0x14008e785
add rbx, r13
jmp 0x14008e744
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x14008e70f
mov r8d, dword [rbp + 0x58]
mov rcx, qword [rdi]
lea r9, [rbp + 0x50]
mov rdx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rbp + 0x50]
mov qword [rbp + 0x58], rax
jmp 0x14008e713
mov al, byte [rbx]
cmp al, 0x3b
jne 0x14008e7cf
add rbx, r13
cmp byte [rbx], 0x20
jne 0x14008e796
add rbx, r13
lea rcx, [rdi + 0x30]
mov r9, rbx
mov r8d, 2
mov rdx, r15
call fcn.14008e8ec
mov r15, rax
jmp 0x14008e7c5
cmp byte [rbx], sil
je 0x14008e8b6
cmp byte [rbx], r14b
je 0x14008e8b6
add rbx, r13
cmp byte [rbx], r12b
jne 0x14008e7b0
jmp 0x14008e8b6
cmp al, 0x5b
jne 0x14008e833
add rbx, r13
lea rcx, [rdi + 0x30]
mov r8, r13
mov r9, rbx
mov rdx, r15
call fcn.14008e8ec
mov r15, rax
jmp 0x14008e800
mov al, byte [rbx]
cmp al, 0x5d
je 0x14008e80e
cmp al, sil
je 0x14008e805
cmp al, r14b
je 0x14008e805
add rbx, r13
cmp byte [rbx], r12b
jne 0x14008e7ed
cmp byte [rbx], 0x5d
jne 0x14008e8b6
mov byte [rbx], r12b
jmp 0x14008e825
cmp al, sil
je 0x14008e8b9
cmp al, r14b
je 0x14008e8bc
add rbx, r13
mov al, byte [rbx]
test al, al
jne 0x14008e813
jmp 0x14008e8bc
cmp al, sil
je 0x14008e8bc
cmp al, r14b
je 0x14008e8bc
mov r8, rbx
jmp 0x14008e863
cmp al, 0x3d
ja 0x14008e85e
movsx rax, al
movabs rcx, 0x2000000000002400
bt rcx, rax
jb 0x14008e867
add rbx, r13
mov al, byte [rbx]
test al, al
jne 0x14008e846
lea rax, [rbx - 1]
jmp 0x14008e87a
cmp byte [rax], 0x20
je 0x14008e877
cmp byte [rax], 9
jne 0x14008e87f
sub rax, r13
cmp rax, r8
ja 0x14008e86d
mov byte [rax + 1], r12b
add rbx, r13
cmp byte [rbx], 0x20
je 0x14008e883
cmp byte [rbx], 9
je 0x14008e883
lea rcx, [rdi + 0x30]
mov r9, rbx
mov rdx, r15
call fcn.14008e8ec
mov r15, rax
jmp 0x14008e8b1
cmp byte [rbx], sil
je 0x14008e8b6
cmp byte [rbx], r14b
je 0x14008e8b6
add rbx, r13
cmp byte [rbx], r12b
jne 0x14008e8a4
mov byte [rbx], r12b
add rbx, r13
cmp byte [rbx], sil
je 0x14008e8b9
cmp byte [rbx], r14b
je 0x14008e8b9
cmp rbx, qword [rdi + 0x20]
jb 0x14008e744
mov rax, qword [rdi]
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret