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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1401c73e8]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov rbx, rcx
lea rdx, [rsp + 0x134]
mov rcx, qword [rcx + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x130], eax
mov edi, 0xffffffff
cmp eax, edi
jne 0x14006d3c9
call fcn.14004ab40
test eax, eax
js 0x14006d3cb
mov eax, dword [rsp + 0x130]
mov edi, eax
mov dword [rbx + 0x78], edi
mov esi, dword [rbx + 0x78]
mov ecx, esi
call fcn.140122b90
mov rdi, rax
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.140124d50
lea rsi, [rbx + 0x80]
lea rax, [rsp + 0x130]
cmp rsi, rax
je 0x14006d409
mov rcx, qword [rsi]
mov qword [rsi], rdi
test rcx, rcx
je 0x14006d417
jmp 0x14006d411
test rdi, rdi
je 0x14006d417
mov rcx, rdi
call fcn.140122560
nop
xor eax, eax
mov dword [rsp + 0x140], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x140]
mov r8d, dword [rbx + 0x78]
mov rdx, qword [rsi]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14006d44f
call fcn.14004ab40
test eax, eax
js 0x14006d5d3
mov r11d, dword [rbx + 0x78]
cmp dword [rsp + 0x140], r11d
jne 0x14006d5d3
lea r9, [rbx + 0x48]
mov rdi, qword [r9 + 0x10]
mov r10, r9
cmp qword [r9 + 0x18], 8
jb 0x14006d476
mov r10, qword [r9]
cmp rdi, 2
jne 0x14006d4b8
mov r8, rdi
lea rax, [0x14019c3a8]
movzx ecx, word [r10]
movzx edx, word [0x14019c3a8]
cmp cx, dx
jb 0x14006d4b8
sub r10, rax
cmp cx, dx
ja 0x14006d4b8
cmp r8, 1
je 0x14006d51a
dec r8
add rax, 2
movzx ecx, word [r10 + rax]
movzx edx, word [rax]
cmp cx, dx
jae 0x14006d49c
cmp qword [r9 + 0x18], 8
jb 0x14006d4c2
mov r9, qword [r9]
cmp rdi, 4
jne 0x14006d5cc
mov rdx, rdi
lea rax, str.html
movzx ecx, word [r9]
mov r8d, 0x68
cmp cx, r8w
jb 0x14006d5cc
sub r9, rax
cmp cx, r8w
ja 0x14006d5cc
cmp rdx, 1
je 0x14006d51a
dec rdx
add rax, 2
movzx ecx, word [r9 + rax]
movzx r8d, word [rax]
cmp cx, r8w
jae 0x14006d4f1
mov al, 1
jmp 0x14006d657
mov dword [rsp + 0x130], r11d
lea r8, [rsp + 0x130]
mov edx, r11d
mov rcx, qword [rsi]
call fcn.14009aee0
test al, al
jne 0x14006d5c2
call fcn.1400595a0
mov r8d, 1
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.140059480
lea rax, str.ProtocolFileHandler.cpp
mov qword [rsp + 0x130], rax
mov dword [rsp + 0x138], 0xa6
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x38]
call fcn.140026620
lea rdx, str.Invalid_file_signature
lea rcx, [rsp + 0x38]
call fcn.140026650
lea rcx, [rsp + 0xd0]
call fcn.14005be70
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0xd0]
call fcn.1400fa82c
nop
jmp 0x14006d655
mov eax, dword [rsp + 0x130]
mov dword [rbx + 0x78], eax
mov al, 1
jmp 0x14006d657
call fcn.1400595a0
mov r8d, 1
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.140059480
lea rax, str.ProtocolFileHandler.cpp
mov qword [rsp + 0x130], rax
mov dword [rsp + 0x138], 0x9d
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x38]
call fcn.140026620
lea rdx, str.Failed_to_read_the_file
lea rcx, [rsp + 0x38]
call fcn.140026650
lea rcx, [rsp + 0xd0]
call fcn.14005be70
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0xd0]
call fcn.1400fa82c
nop
jmp 0x14006d655
xor al, al
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.140122510
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret