Function at 0x18010ff30
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 + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x250], rbx
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r12, rdx
mov r13, rcx
mov rcx, qword [rdx]
test rcx, rcx
je 0x1801105bf
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x1801105bf
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18010ffac
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1801105bf
mov esi, dword [rsp + 0x50]
shl rsi, 0x20
add rsi, rbx
mov rcx, r12
call fcn.1801199d0
test al, al
je 0x1801105bf
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
xor edi, edi
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rdi
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rdi
mov dword [rbp - 8], 0xffffffff
lea rcx, [rbp - 0x50]
call fcn.18010ed30
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x50]
call fcn.18010f8d0
mov r14, qword [rsp + 0x58]
sub r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18011007c
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180110069
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180110069
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180468ddc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
lea rcx, [rbp - 0x20]
call fcn.180086100
nop
lea rcx, [rbp - 0x38]
call fcn.180086100
nop
lea rcx, [rbp - 0x50]
call fcn.180086100
cmp rsi, r14
jb 0x1801105bf
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], rdi
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.180113f90
mov dword [rsp + 0x40], edi
mov rcx, qword [r12]
test rcx, rcx
je 0x1801105af
mov rdx, qword [rbp - 0x70]
test rdx, rdx
je 0x1801105af
cmp qword [rcx], 0xffffffffffffffff
je 0x1801105af
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1801105af
mov eax, dword [rsp + 0x40]
cmp rax, r14
jne 0x1801105af
mov qword [rbp], rdi
mov qword [rbp + 8], rdi
mov qword [rbp + 0x10], rdi
mov qword [rbp + 0x18], rdi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], rdi
mov qword [rbp + 0x40], rdi
mov dword [rbp + 0x48], 0xffffffff
mov qword [rsp + 0x50], rdi
lea r8, [rbp]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.18010fa70
test al, al
jne 0x18011018f
xor bl, bl
jmp 0x180110590
mov qword [rbp + 0x50], rdi
mov qword [rbp + 0x58], rdi
mov qword [rbp + 0x60], rdi
mov qword [rbp + 0x68], rdi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], rdi
mov qword [rbp + 0x88], rdi
mov qword [rbp + 0x90], rdi
mov dword [rbp + 0x98], 0xffffffff
lea rcx, [rbp + 0x50]
call fcn.18010ed30
mov rbx, qword [rbp + 8]
mov r15, qword [rbp]
sub rbx, r15
mov rax, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
sub rax, rdx
cmp rbx, rax
jne 0x1801101fd
mov r8, rbx
mov rcx, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18011030e
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rdi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rdi
mov dword [rbp - 8], 0xffffffff
lea rcx, [rbp - 0x50]
call fcn.18010eee0
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x50]
sub rax, rdx
cmp rbx, rax
jne 0x180110251
mov r8, rbx
mov rcx, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1801102f1
mov qword [rbp + 0xa0], rdi
mov qword [rbp + 0xa8], rdi
mov qword [rbp + 0xb0], rdi
mov qword [rbp + 0xb8], rdi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xc0], xmm0
movdqa xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], rdi
mov dword [rbp + 0xe8], 0xffffffff
lea rcx, [rbp + 0xa0]
call fcn.18010f090
mov rax, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0xa0]
sub rax, rdx
cmp rbx, rax
jne 0x180110529
mov r8, rbx
mov rcx, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x180110529
lea rcx, [rbp + 0xd0]
call fcn.180086100
nop
lea rcx, [rbp + 0xb8]
call fcn.180086100
nop
lea rcx, [rbp + 0xa0]
call fcn.180086100
nop
lea rcx, [rbp - 0x20]
call fcn.180086100
nop
lea rcx, [rbp - 0x38]
call fcn.180086100
nop
lea rcx, [rbp - 0x50]
call fcn.180086100
mov r8, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x30]
sub r8, rcx
mov rax, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x80]
sub rax, rdx
cmp r8, rax
jne 0x18011056d
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18011056d
mov eax, dword [rbp + 0x98]
cmp dword [rbp + 0x48], eax
jne 0x18011056d
lea rbx, [r13 + 0x38]
lea rdx, [rbp]
mov rcx, rbx
call fcn.180113630
lea rcx, [rbx + 0x18]
lea rdx, [rbp + 0x18]
call fcn.180113630
lea rcx, [rbx + 0x30]
lea rdx, [rbp + 0x30]
call fcn.180113630
mov eax, dword [rbp + 0x48]
mov dword [rbx + 0x48], eax
cmp rsi, r14
jne 0x18011038b
mov bl, 1
jmp 0x18011056f
mov dword [rsp + 0x70], edi
mov rcx, qword [r12]
test rcx, rcx
je 0x18011056d
cmp qword [rcx], 0xffffffffffffffff
je 0x18011056d
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x70]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18011056d
cmp dword [rsp + 0x40], 4
jne 0x18011056d
mov ebx, dword [rsp + 0x70]
sub rsi, r14
cmp rbx, rsi
ja 0x18011056d
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
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 edx, ebx
lea rcx, [rsp + 0x78]
call fcn.180113f90
mov rcx, qword [r12]
test rcx, rcx
je 0x18011051b
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x18011051b
cmp qword [rcx], 0xffffffffffffffff
je 0x18011051b
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18011051b
mov eax, dword [rsp + 0x40]
cmp rax, rbx
jne 0x18011051b
mov rax, qword [rbp + 0x30]
cmp rax, qword [rbp + 0x38]
je 0x18011051b
cmp byte [rax], 0
jne 0x18011051b
mov rcx, qword [rbp - 0x80]
movzx eax, cl
mov r9, qword [rsp + 0x78]
sub al, r9b
test al, 7
jne 0x18011051b
cmp r9, rcx
je 0x180110509
mov rax, qword [rbp + 0x20]
mov rbx, qword [rbp + 0x18]
sub rax, rbx
cmp rax, 0x10
jne 0x18011051b
sub ecx, r9d
lea r8, [rsp + 0x50]
mov edx, ecx
mov rcx, r9
call fcn.18011ac40
lea rax, [rsp + 0x50]
sub rbx, rax
nop word [rax + rax]
lea rdx, [rsp + 0x50]
add rdx, rdi
movzx eax, byte [rdx]
cmp byte [rdx + rbx], al
jne 0x18011051b
inc rdi
cmp rdi, 0x10
jb 0x1801104f0
lea rdx, [rsp + 0x78]
mov rcx, r13
call fcn.180110760
movzx ebx, al
jmp 0x18011051d
xor bl, bl
lea rcx, [rsp + 0x78]
call fcn.180086100
jmp 0x18011056f
lea rcx, [rbp + 0xd0]
call fcn.180086100
nop
lea rcx, [rbp + 0xb8]
call fcn.180086100
nop
lea rcx, [rbp + 0xa0]
call fcn.180086100
nop
lea rcx, [rbp - 0x20]
call fcn.180086100
nop
lea rcx, [rbp - 0x38]
call fcn.180086100
nop
lea rcx, [rbp - 0x50]
call fcn.180086100
xor bl, bl
lea rcx, [rbp + 0x80]
call fcn.180086100
nop
lea rcx, [rbp + 0x68]
call fcn.180086100
nop
lea rcx, [rbp + 0x50]
call fcn.180086100
nop
lea rcx, [rbp + 0x30]
call fcn.180086100
nop
lea rcx, [rbp + 0x18]
call fcn.180086100
nop
lea rcx, [rbp]
call fcn.180086100
jmp 0x1801105b1
xor bl, bl
lea rcx, [rbp - 0x70]
call fcn.180086100
movzx eax, bl
jmp 0x1801105c1
xor al, al
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1804688c0
mov rbx, qword [rsp + 0x250]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret