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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x250], rbx
mov rax, qword [0x14004f018]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r13, rdx
mov qword [rsp + 0x38], rcx
mov rcx, qword [rdx]
test rcx, rcx
je 0x14000aa5c
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x14000aa5c
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14000a41e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000aa5c
mov ebx, dword [rsp + 0x50]
shl rbx, 0x20
add rbx, rdi
mov rcx, r13
call fcn.140014030
test al, al
je 0x14000aa5c
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
xor esi, esi
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], rsi
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rsi
mov dword [rbp + 0x48], 0xffffffff
lea rcx, [rbp]
call fcn.1400095d0
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
lea rdx, [rsp + 0x50]
lea rcx, [rbp]
call fcn.140009fe0
mov r14, qword [rsp + 0x58]
sub r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000a4ee
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a4db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a4db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025dd4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rsi
lea rcx, [rbp]
call fcn.14000ba90
cmp rbx, r14
jb 0x14000aa5c
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rsi
mov byte [rsp + 0x30], al
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov rdx, r14
lea rcx, [rbp - 0x70]
call fcn.14000ce50
mov dword [rsp + 0x48], esi
mov rcx, qword [r13]
test rcx, rcx
je 0x14000aa0c
mov rdx, qword [rbp - 0x70]
test rdx, rdx
je 0x14000aa0c
cmp qword [rcx], 0xffffffffffffffff
je 0x14000aa0c
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
mov r8d, r14d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000aa0c
mov eax, dword [rsp + 0x48]
cmp rax, r14
jne 0x14000aa0c
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rsi
mov dword [rbp - 8], 0xffffffff
mov qword [rsp + 0x50], rsi
lea r8, [rbp - 0x50]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.14000a1a0
test al, al
jne 0x14000a5ed
xor bl, bl
jmp 0x14000aa01
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], rsi
mov qword [rbp + 0x68], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], rsi
mov qword [rbp + 0x88], rsi
mov qword [rbp + 0x90], rsi
mov dword [rbp + 0x98], 0xffffffff
lea rcx, [rbp + 0x50]
call fcn.1400095d0
mov r12, qword [rbp - 0x48]
mov r8, r12
mov r15, qword [rbp - 0x50]
sub r8, r15
mov rax, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
sub rax, rdx
cmp r8, rax
jne 0x14000a65b
mov rcx, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14000a750
mov qword [rbp], rsi
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rsi
mov dword [rbp + 0x48], 0xffffffff
lea rcx, [rbp]
call fcn.1400097b0
mov r8, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
sub r8, rcx
mov rax, qword [rbp + 8]
mov rdx, qword [rbp]
sub rax, rdx
cmp r8, rax
jne 0x14000a6b4
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14000a73f
mov qword [rbp + 0xa0], rsi
mov qword [rbp + 0xa8], rsi
mov qword [rbp + 0xb0], rsi
mov qword [rbp + 0xb8], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xc0], xmm0
movdqa xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], rsi
mov dword [rbp + 0xe8], 0xffffffff
lea rcx, [rbp + 0xa0]
call fcn.140009990
mov r8, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
sub r8, rcx
mov rax, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0xa0]
sub rax, rdx
cmp r8, rax
jne 0x14000a9dd
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000a9dd
lea rcx, [rbp + 0xa0]
call fcn.14000ba90
nop
lea rcx, [rbp]
call fcn.14000ba90
mov r12, qword [rbp - 0x48]
mov r15, qword [rbp - 0x50]
mov r8, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x20]
sub r8, rsi
mov rax, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x80]
sub rax, rdx
cmp r8, rax
jne 0x14000a9f3
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000a9f3
mov eax, dword [rbp + 0x98]
cmp dword [rbp - 8], eax
jne 0x14000a9f3
mov rdi, qword [rsp + 0x38]
add rdi, 0x38
lea rax, [rbp - 0x50]
cmp rdi, rax
je 0x14000a7b8
mov r8, r12
mov rdx, r15
mov rcx, rdi
call fcn.14000d760
mov rsi, qword [rbp - 0x20]
lea rcx, [rdi + 0x18]
lea rax, [rbp - 0x38]
cmp rcx, rax
je 0x14000a7d6
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x38]
call fcn.14000d760
mov rsi, qword [rbp - 0x20]
lea rcx, [rdi + 0x30]
lea rax, [rbp - 0x20]
cmp rcx, rax
je 0x14000a7ef
mov r8, qword [rbp - 0x18]
mov rdx, rsi
call fcn.14000d760
mov eax, dword [rbp - 8]
mov dword [rdi + 0x48], eax
cmp rbx, r14
jne 0x14000a801
mov bl, 1
jmp 0x14000a9f5
xor esi, esi
mov dword [rsp + 0x70], esi
mov rcx, qword [r13]
test rcx, rcx
je 0x14000a854
cmp qword [rcx], 0xffffffffffffffff
je 0x14000a854
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
lea r8d, [rsi + 4]
lea rdx, [rsp + 0x70]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000a854
cmp dword [rsp + 0x48], 4
je 0x14000a848
xor bl, bl
jmp 0x14000a9f7
mov edi, dword [rsp + 0x70]
sub rbx, r14
cmp rdi, rbx
jbe 0x14000a85b
xor bl, bl
jmp 0x14000a9f7
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], rsi
mov byte [rsp + 0x30], al
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.14000ce50
mov rcx, qword [r13]
test rcx, rcx
je 0x14000a98e
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x14000a98e
cmp qword [rcx], 0xffffffffffffffff
je 0x14000a98e
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
mov r8d, edi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000a98e
mov eax, dword [rsp + 0x48]
cmp rax, rdi
jne 0x14000a98e
mov rax, qword [rbp - 0x20]
cmp rax, qword [rbp - 0x18]
je 0x14000a98e
cmp byte [rax], 0
jne 0x14000a98e
mov rcx, qword [rbp - 0x80]
movzx eax, cl
mov r9, qword [rsp + 0x78]
sub al, r9b
test al, 7
jne 0x14000a98e
cmp r9, rcx
je 0x14000a97a
mov rax, qword [rbp - 0x30]
sub rax, qword [rbp - 0x38]
cmp rax, 0x10
jne 0x14000a98e
sub ecx, r9d
lea r8, [rsp + 0x50]
mov edx, ecx
mov rcx, r9
call fcn.140016d10
mov r8, rsi
lea rax, [rsp + 0x50]
mov r9, qword [rbp - 0x38]
sub r9, rax
nop
lea rdx, [rsp + 0x50]
add rdx, r8
movzx eax, byte [rdx]
cmp byte [r9 + rdx], al
jne 0x14000a98e
inc r8
cmp r8, 0x10
jb 0x14000a960
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call fcn.14000aa90
movzx ebx, al
jmp 0x14000a990
xor bl, bl
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000a9f7
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a9c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a9c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025dd4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rsi
jmp 0x14000a9f7
lea rcx, [rbp + 0xa0]
call fcn.14000ba90
nop
lea rcx, [rbp]
call fcn.14000ba90
xor bl, bl
xor esi, esi
lea rcx, [rbp + 0x50]
call fcn.14000ba90
nop
lea rcx, [rbp - 0x50]
call fcn.14000ba90
jmp 0x14000aa0e
xor bl, bl
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14000aa57
mov rdx, qword [rbp - 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000aa46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000aa46
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025dd4
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rsi
movzx eax, bl
jmp 0x14000aa5e
xor al, al
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140025ac0
mov rbx, qword [rsp + 0x250]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret