Function at 0x140007080
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rsi, r8
mov rax, rdx
mov r14, rcx
mov qword [rsp + 0x60], rcx
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x140007110
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbp - 0x80]
cmp eax, 2
je 0x1400076cd
jmp 0x140007717
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140007734
mov rcx, qword [rsp + 0x58]
call fcn.14000c370
mov r13, rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x58]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140007755
mov r15, r13
mov rax, qword [rsp + 0x58]
lea r12, [rax + r13]
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
cmp rax, 3
jl 0x140007191
cmp byte [r13], 0xef
jne 0x140007191
cmp byte [r13 + 1], 0xbb
jne 0x140007191
cmp byte [r13 + 2], 0xbf
jne 0x140007191
lea r15, [r13 + 3]
mov ecx, dword [rsp + 0x50]
dec rcx
add rcx, r13
cmp rcx, r13
jb 0x1400071bb
movzx eax, byte [rcx]
cmp al, 0xd
je 0x14000727f
cmp al, 0xa
je 0x14000727f
dec rcx
cmp rcx, r13
jae 0x1400071a0
mov rbx, r13
lea rax, [rbx + 0x82]
cmp rax, r12
jb 0x140007288
lea rax, [rbx + 0x80]
cmp rax, r12
ja 0x140007288
lea rcx, [rbp - 0x50]
call fcn.14000bb20
mov r8, rbx
sub r8, r13
mov rdx, r13
lea rcx, [rbp - 0x50]
call fcn.14000bbb0
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x90]
call fcn.14000b310
xor r13d, r13d
mov r8d, r13d
nop
movzx eax, byte [rbx + r8*2]
lea rdx, [0x14003add0]
movzx ecx, byte [rax + rdx]
movzx eax, byte [rbx + r8*2 + 1]
movzx edx, byte [rax + rdx]
cmp cl, 0xff
je 0x140007776
cmp dl, 0xff
je 0x140007776
shl cl, 4
or cl, dl
mov byte [rbp + r8 + 0xd0], cl
inc r8
cmp r8, 0x40
jl 0x140007210
mov r8d, 0x40
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0xd0]
call fcn.14002f190
test eax, eax
je 0x140007299
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax + 0x20]
jmp 0x140007299
lea rbx, [rcx + 1]
jmp 0x1400071be
mov rax, qword [rsi]
mov edx, 2
mov rcx, rsi
call qword [rax + 0x20]
xor r13d, r13d
mov rax, qword [r14]
cmp rax, qword [r14 + 8]
je 0x1400072a6
mov qword [r14 + 8], rax
lea rbx, [r14 + 0x18]
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
sar rax, 3
mov rsi, r13
movsxd r14, eax
test eax, eax
jle 0x1400072db
nop
mov rax, qword [rbx]
mov rcx, qword [rax + rsi*8]
call fcn.14001bb98
mov rax, qword [rbx]
mov qword [rax + rsi*8], r13
inc rsi
cmp rsi, r14
jl 0x1400072c0
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
je 0x1400072e8
mov qword [rbx + 8], rax
mov ecx, 0xfffe
call fcn.14000c370
mov r13, rax
cmp r15, r12
jae 0x14000751c
nop
lea rax, [r15 + 0x82]
cmp rax, r12
jae 0x1400075ba
xor edx, edx
movzx eax, byte [r15 + rdx*2]
lea r8, [0x14003add0]
movzx ecx, byte [rax + r8]
movzx eax, byte [r15 + rdx*2 + 1]
movzx r8d, byte [rax + r8]
cmp cl, 0xff
je 0x1400076a6
cmp r8b, 0xff
je 0x1400076a6
shl cl, 4
or cl, r8b
mov byte [rbp + rdx + 0xd0], cl
inc rdx
cmp rdx, 0x40
jl 0x140007312
mov rcx, qword [rbx + 0x30]
lea rax, [rcx + 0x40]
cmp rax, qword [rbx + 0x28]
jb 0x1400073c7
mov rsi, qword [rbx + 0x20]
cmp rsi, 0x40
mov eax, 0x40
cmovb rsi, rax
mov rcx, rsi
call fcn.14001be58
lea r14, [rbx + 0x18]
mov qword [r14], rax
test rax, rax
je 0x140007797
mov qword [rbx + 0x28], rsi
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x1400073b0
mov qword [rdx], rax
add qword [rbx + 8], 8
mov qword [rbx + 0x30], 0
xor ecx, ecx
jmp 0x1400073cb
mov r8, r14
mov rcx, rbx
call fcn.14000aac0
mov qword [rbx + 0x30], 0
xor ecx, ecx
jmp 0x1400073cb
lea r14, [rbx + 0x18]
add rcx, qword [r14]
movaps xmm0, xmmword [rbp + 0xd0]
movups xmmword [rcx], xmm0
movaps xmm1, xmmword [rbp + 0xe0]
movups xmmword [rcx + 0x10], xmm1
movaps xmm0, xmmword [rbp + 0xf0]
movups xmmword [rcx + 0x20], xmm0
movaps xmm1, xmmword [rbp + 0x100]
movups xmmword [rcx + 0x30], xmm1
add qword [rbx + 0x30], 0x40
mov qword [rbp - 0x80], rcx
lea r11, [r15 + 0x82]
mov rax, r11
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, 0xd
je 0x14000742d
cmp cl, 0xa
je 0x14000742d
inc rax
cmp rax, r12
jb 0x140007410
mov rsi, r12
mov r15, r12
jmp 0x140007444
mov rsi, rax
lea rcx, [rax + 1]
cmp rcx, r12
jae 0x140007440
cmp byte [rcx], 0xa
cmove rax, rcx
lea r15, [rax + 1]
sub rsi, r11
mov r10d, 0
mov r8d, r10d
je 0x1400074c9
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + r11]
inc r8
mov rdx, r8
lea r9, [r10 + r10]
test cl, cl
jns 0x1400074b9
inc r8
movzx edx, byte [r11 + rdx]
mov eax, ecx
and eax, 0xe0
and dl, 0x3f
cmp al, 0xc0
jne 0x140007499
movzx eax, dl
and cx, 0x1f
shl cx, 6
or cx, ax
jmp 0x1400074b9
lea rax, [r8 + r11]
inc r8
movzx edx, dl
shl cx, 6
or dx, cx
shl dx, 6
movzx eax, byte [rax]
and al, 0x3f
movzx ecx, al
or cx, dx
mov rax, r13
mov word [r9 + rax], cx
inc r10
cmp r8, rsi
jb 0x140007460
mov dword [rbp - 0x68], r10d
movsxd r8, r10d
add r8, r8
mov rdx, r13
mov rcx, rbx
call fcn.14000a180
mov qword [rbp - 0x70], rax
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 8]
cmp rdx, qword [rax + 0x10]
je 0x140007507
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 0x70]
movups xmmword [rdx + 0x10], xmm1
add qword [rax + 8], 0x20
jmp 0x140007513
lea r8, [rbp - 0x80]
mov rcx, rax
call fcn.14000ad30
cmp r15, r12
jb 0x140007300
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov r15d, 0x40
mov ecx, r15d
call fcn.14000c334
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0x60]
mov rbx, qword [r14 + 8]
cmp rbx, qword [r14]
je 0x140007634
lea rsi, [rbx - 0x10]
nop dword [rax + rax]
mov rdx, qword [rsi]
movsxd rax, dword [rsi + 8]
lea r8, [rdx + rax*2]
lea rcx, [rbp - 0x80]
call fcn.14000a260
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.14000a790
cmp rax, qword [rsp + 0x40]
je 0x1400075cf
mov byte [rsi + 0xc], 1
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rdx, qword [rbp - 0x80]
lea rcx, [0x14003a150]
call fcn.140006800
jmp 0x1400075e3
lea rax, [r15 + 0x80]
cmp rax, r12
ja 0x1400076ea
jmp 0x14000751c
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14000a8b0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140007623
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000761e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007711
call fcn.14000c090
sub rbx, 0x20
sub rsi, 0x20
cmp rbx, qword [r14]
jne 0x140007570
mov rcx, r13
call fcn.14000c090
nop
mov r8, qword [rsp + 0x40]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.14000ac60
mov rdx, r15
mov rcx, qword [rsp + 0x40]
call fcn.14000c090
nop
mov rcx, qword [rsp + 0x70]
call fcn.14000c090
nop
test rdi, rdi
je 0x14000767c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.14000c070
mov rbx, qword [rsp + 0x278]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, [0x14003a250]
lea rcx, [rbp + 0x90]
call fcn.14000a050
lea rdx, [0x14003df60]
lea rcx, [rbp + 0x90]
call fcn.14000de30
nop
lea rdx, [0x14003a0a0]
call fcn.14000a050
lea rdx, [0x14003df60]
lea rcx, [rbp - 0x80]
call fcn.14000de30
nop
lea rdx, [0x14003a130]
lea rcx, [rbp + 0x90]
call fcn.14000a050
lea rdx, [0x14003df60]
lea rcx, [rbp + 0x90]
call fcn.14000de30
nop
call fcn.14001bde0
nop
lea rdx, [0x14003a0c8]
call fcn.14000a050
lea rdx, [0x14003df60]
lea rcx, [rbp - 0x80]
call fcn.14000de30
int3
lea rdx, [0x14003a0f0]
lea rcx, [rbp - 0x80]
call fcn.14000a050
lea rdx, [0x14003df60]
lea rcx, [rbp - 0x80]
call fcn.14000de30
nop
lea rdx, [0x14003a110]
lea rcx, [rbp - 0x80]
call fcn.14000a050
lea rdx, [0x14003df60]
lea rcx, [rbp - 0x80]
call fcn.14000de30
int3
lea rdx, [0x14003a250]
lea rcx, [rbp - 0x80]
call fcn.14000a050
lea rdx, [0x14003df60]
lea rcx, [rbp - 0x80]
call fcn.14000de30
int3
lea rdx, [0x14003a170]
lea rcx, [rbp + 0x90]
call fcn.140006b00
lea rdx, [0x14003dfc8]
lea rcx, [rbp + 0x90]
call fcn.14000de30
int3