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 [0x14003e008]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rsi, r8
mov rax, rdx
mov r15, 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 0x1400076c8
jmp 0x1400076eb
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140007708
mov rcx, qword [rsp + 0x58]
call fcn.14000c380
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 0x140007729
mov r14, 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 r14, [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.14000bb30
mov r8, rbx
sub r8, r13
mov rdx, r13
lea rcx, [rbp - 0x50]
call fcn.14000bbc0
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x90]
call fcn.14000b320
xor r13d, r13d
mov r8d, r13d
nop
movzx eax, byte [rbx + r8*2]
lea rdx, [0x140039dd0]
movzx ecx, byte [rax + rdx]
movzx eax, byte [rbx + r8*2 + 1]
movzx edx, byte [rax + rdx]
cmp cl, 0xff
je 0x14000774a
cmp dl, 0xff
je 0x14000774a
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.14002df10
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 [r15]
cmp rax, qword [r15 + 8]
je 0x1400072a6
mov qword [r15 + 8], rax
lea rbx, [r15 + 0x18]
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
sar rax, 3
mov rsi, r13
movsxd r15, eax
test eax, eax
jle 0x1400072db
nop
mov rax, qword [rbx]
mov rcx, qword [rax + rsi*8]
call fcn.14001b578
mov rax, qword [rbx]
mov qword [rax + rsi*8], r13
inc rsi
cmp rsi, r15
jl 0x1400072c0
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
je 0x1400072e8
mov qword [rbx + 8], rax
mov ecx, 0xfffe
call fcn.14000c380
mov r13, rax
cmp r14, r12
jae 0x14000752b
lea rax, [r14 + 0x82]
cmp rax, r12
jae 0x14000751b
xor edx, edx
movzx eax, byte [r14 + rdx*2]
lea r8, [0x140039dd0]
movzx eax, byte [rax + r8]
movzx ecx, byte [r14 + rdx*2 + 1]
movzx r8d, byte [rcx + r8]
cmp al, 0xff
je 0x140007792
cmp r8b, 0xff
je 0x140007792
shl al, 4
or al, r8b
mov byte [rbp + rdx + 0xd0], al
inc rdx
cmp rdx, 0x40
jl 0x140007310
mov rcx, qword [rbx + 0x30]
lea rax, [rcx + 0x40]
cmp rax, qword [rbx + 0x28]
jb 0x1400073c4
mov rsi, qword [rbx + 0x20]
cmp rsi, 0x40
mov eax, 0x40
cmovb rsi, rax
mov rcx, rsi
call fcn.14001b838
lea r15, [rbx + 0x18]
mov qword [r15], rax
test rax, rax
je 0x14000776b
mov qword [rbx + 0x28], rsi
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x1400073ad
mov qword [rdx], rax
add qword [rbx + 8], 8
mov qword [rbx + 0x30], 0
xor ecx, ecx
jmp 0x1400073c8
mov r8, r15
mov rcx, rbx
call fcn.14000aad0
mov qword [rbx + 0x30], 0
xor ecx, ecx
jmp 0x1400073c8
lea r15, [rbx + 0x18]
add rcx, qword [r15]
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, [r14 + 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 r14, r12
jmp 0x140007444
mov rsi, rax
lea rcx, [rax + 1]
cmp rcx, r12
jae 0x140007440
cmp byte [rcx], 0xa
cmove rax, rcx
lea r14, [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 [rdx + r11]
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.14000a190
mov qword [rbp - 0x70], rax
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 8]
cmp rdx, qword [rax + 0x10]
je 0x14000750a
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 0x1400072f5
lea r8, [rbp - 0x80]
mov rcx, rax
call fcn.14000ad40
jmp 0x1400072f5
lea rax, [r14 + 0x80]
cmp rax, r12
ja 0x1400076a1
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov r15d, 0x40
mov ecx, r15d
call fcn.14000c344
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 0x14000762f
lea rsi, [rbx - 0x10]
nop word [rax + rax]
mov rdx, qword [rsi]
movsxd rax, dword [rsi + 8]
lea r8, [rdx + rax*2]
lea rcx, [rbp - 0x80]
call fcn.14000a270
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.14000a7a0
cmp rax, qword [rsp + 0x40]
je 0x1400075ca
mov byte [rsi + 0xc], 1
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
lea rcx, [0x140039150]
call fcn.140006800
jmp 0x1400075de
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14000a8b0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000761e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007619
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400076e5
call fcn.14000c0a0
sub rbx, 0x20
sub rsi, 0x20
cmp rbx, qword [r14]
jne 0x140007580
mov rcx, r13
call fcn.14000c0a0
nop
mov r8, qword [rsp + 0x40]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.14000ac70
mov rdx, r15
mov rcx, qword [rsp + 0x40]
call fcn.14000c0a0
nop
mov rcx, qword [rsp + 0x70]
call fcn.14000c0a0
nop
test rdi, rdi
je 0x140007677
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.14000c080
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, [0x140039130]
lea rcx, [rbp + 0x90]
call fcn.14000a060
lea rdx, [0x14003cdd8]
lea rcx, [rbp + 0x90]
call fcn.14000e8b8
nop
lea rdx, [0x1400390a0]
call fcn.14000a060
lea rdx, [0x14003cdd8]
lea rcx, [rbp - 0x80]
call fcn.14000e8b8
nop
call fcn.14001b7c0
nop
lea rdx, [0x1400390c8]
call fcn.14000a060
lea rdx, [0x14003cdd8]
lea rcx, [rbp - 0x80]
call fcn.14000e8b8
int3
lea rdx, [0x1400390f0]
lea rcx, [rbp - 0x80]
call fcn.14000a060
lea rdx, [0x14003cdd8]
lea rcx, [rbp - 0x80]
call fcn.14000e8b8
nop
lea rdx, [0x140039110]
lea rcx, [rbp - 0x80]
call fcn.14000a060
lea rdx, [0x14003cdd8]
lea rcx, [rbp - 0x80]
call fcn.14000e8b8
int3
lea rdx, [0x140039250]
lea rcx, [rbp - 0x80]
call fcn.14000a060
lea rdx, [0x14003cdd8]
lea rcx, [rbp - 0x80]
call fcn.14000e8b8
int3
lea rdx, [0x140039170]
lea rcx, [rbp + 0x90]
call fcn.140006b00
lea rdx, [0x14003ce40]
lea rcx, [rbp + 0x90]
call fcn.14000e8b8
int3
lea rdx, [0x140039250]
lea rcx, [rbp + 0x90]
call fcn.14000a060
lea rdx, [0x14003cdd8]
lea rcx, [rbp + 0x90]
call fcn.14000e8b8
int3