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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rdx
mov rbx, rcx
xor r12d, r12d
mov dword [rbp - 9], r12d
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400703a8
cmp qword [rax], 0xffffffffffffffff
je 0x1400703a8
test rax, rax
je 0x1400703a8
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x1400703a8
lea rdx, [rbp - 1]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x14006ffbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400703a8
mov edi, dword [rbp - 1]
shl rdi, 0x20
mov rax, r14
add rdi, r14
jne 0x14006ffe6
mov qword [rsi + 0x10], r12
cmp qword [rsi + 0x18], 8
jb 0x14006ffdb
mov rsi, qword [rsi]
mov word [rsi], r12w
mov al, 1
jmp 0x1400703aa
lea ecx, [rdi + 2]
call fcn.1400bbc88
mov r14, rax
test rax, rax
je 0x1400703a8
mov qword [rbp + 0x27], rax
mov word [rax], 0
mov eax, edi
mov byte [rax + r14], 0
lea eax, [rdi + 1]
mov byte [rax + r14], 0
mov byte [rbx + 0x14], 1
mov eax, dword [rbx]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140070399
cmp qword [rcx], 0xffffffffffffffff
je 0x140070399
mov qword [rbp - 1], rax
xor r9d, r9d
lea r8, [rbp + 3]
mov edx, eax
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 1], eax
cmp eax, 0xffffffff
jne 0x14007005b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140070399
mov r15d, edi
sub r15d, dword [rbx]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140070399
cmp qword [rcx], 0xffffffffffffffff
je 0x140070399
mov dword [rbp - 9], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp - 9]
mov r8d, r15d
mov rdx, r14
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140070399
mov eax, dword [rbp - 9]
cmp eax, r15d
ja 0x140070399
test eax, eax
jne 0x1400700c5
mov qword [rsi + 0x10], r12
cmp qword [rsi + 0x18], 8
jb 0x1400700ba
mov rsi, qword [rsi]
mov word [rsi], r12w
mov bl, 1
jmp 0x14007039b
mov byte [rax + r14], 0
mov eax, dword [rbp - 9]
inc eax
mov byte [rax + r14], 0
cmp dword [rbx + 0x10], 9
je 0x140070312
mov byte [rbx + 0x14], 0
cmp dword [rbx], 0
jbe 0x14007013e
mov ecx, 8
call fcn.1400bd270
mov qword [rbp - 1], rax
mov dword [rax], r12d
mov byte [rax + 4], 0
mov r8d, dword [rbx + 0x10]
mov edx, 9
lea rcx, [rbp - 1]
call fcn.14006bad0
mov r8d, dword [rbp - 9]
mov r9, rsi
mov rdx, r14
lea rcx, [rbp - 1]
call fcn.14006bcd0
mov byte [rbx + 0x14], al
mov rcx, qword [rbp - 1]
cmp byte [rcx + 4], 0
je 0x140070135
mov byte [rcx + 4], 0
mov dword [rcx], r12d
call fcn.1400bd20c
mov qword [rbp - 1], r12
cmp byte [rbx + 0x14], 0
jne 0x140070393
mov dword [rbp - 1], r12d
lea rcx, [rbp - 0x39]
call fcn.1400845a0
nop
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], r12
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r12
mov word [rbp + 7], r12w
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 7]
mov r8d, dword [rbp - 9]
mov rdx, r14
call fcn.140084710
test al, al
je 0x14007025f
mov edi, dword [rbp - 1]
mov dword [rbx + 0x18], edi
mov byte [rbx + 0x14], 1
lea rax, [rbp + 7]
cmp rsi, rax
je 0x1400701cf
lea rdx, [rbp + 7]
mov rcx, rsi
call fcn.14006af60
mov rcx, qword [rsi + 0x10]
mov rax, qword [rbp + 0x17]
mov qword [rsi + 0x10], rax
mov qword [rbp + 0x17], rcx
mov rcx, qword [rsi + 0x18]
mov rax, qword [rbp + 0x1f]
mov qword [rsi + 0x18], rax
mov qword [rbp + 0x1f], rcx
mov dword [rbx + 0x10], 0x13
cmp edi, 0xd698
ja 0x140070226
je 0x14007021d
sub edi, 0x3a8
je 0x140070214
sub edi, 0xe
je 0x14007020b
sub edi, 0xfa
je 0x140070202
dec edi
jne 0x140070263
mov dword [rbx + 0x10], 8
jmp 0x140070263
mov dword [rbx + 0x10], 9
jmp 0x140070263
mov dword [rbx + 0x10], 4
jmp 0x140070263
mov dword [rbx + 0x10], 2
jmp 0x140070263
mov dword [rbx + 0x10], 3
jmp 0x140070263
sub edi, 0xfde8
je 0x140070256
dec edi
je 0x14007024d
sub edi, 4
je 0x140070244
dec edi
jne 0x140070263
mov dword [rbx + 0x10], 0xb
jmp 0x140070263
mov dword [rbx + 0x10], 0xc
jmp 0x140070263
mov dword [rbx + 0x10], 6
jmp 0x140070263
mov dword [rbx + 0x10], 5
jmp 0x140070263
mov byte [rbx + 0x14], 0
cmp qword [rbp + 0x1f], 8
jb 0x140070273
mov rcx, qword [rbp + 7]
call fcn.1400bd20c
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r12
mov word [rbp + 7], r12w
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], r12
mov word [rbp - 0x31], r12w
mov r8d, 9
lea rdx, str.Ole32.dll
lea rcx, [rbp - 0x31]
call fcn.140006900
nop
call fcn.14007a6e0
mov rcx, rax
lea rdx, [rbp - 0x31]
call fcn.14007a790
mov rdi, rax
cmp qword [rbp - 0x19], 8
jb 0x1400702d8
mov rcx, qword [rbp - 0x31]
call fcn.1400bd20c
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], r12
mov word [rbp - 0x31], r12w
test rdi, rdi
je 0x140070393
lea rdx, str.CoUninitialize
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140070393
call rax
jmp 0x140070393
cmp word [r14], 0
jne 0x14007031e
mov r8, r12
jmp 0x14007032d
or r8, 0xffffffffffffffff
inc r8
cmp word [r14 + r8*2], 0
jne 0x140070322
mov rdx, r14
mov rcx, rsi
call fcn.140006900
mov eax, dword [rbx]
sub rdi, rax
shr rdi, 1
cmp qword [rsi + 0x10], rdi
jne 0x14007034c
mov byte [rbx + 0x14], 1
jmp 0x140070393
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], r12
mov word [rbp - 0x31], r12w
lea rdx, [rbp - 0x31]
mov rcx, rsi
call fcn.14006adf0
nop
cmp qword [rbp - 0x19], 8
jb 0x140070382
mov rcx, qword [rbp - 0x31]
call fcn.1400bd20c
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], r12
mov word [rbp - 0x31], r12w
movzx ebx, byte [rbx + 0x14]
jmp 0x14007039b
xor bl, bl
mov rcx, r14
call fcn.1400bd2dc
movzx eax, bl
jmp 0x1400703aa
xor al, al
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400bcae0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret