Function at 0x18008f700
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 - 0x138]
sub rsp, 0x210
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r14, rdx
mov r15, rcx
mov rcx, qword [rdx]
test rcx, rcx
je 0x18008fe4a
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x18008fe4a
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18008f77a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18008fe4a
mov edi, dword [rsp + 0x50]
shl rdi, 0x20
add rdi, rbx
mov rcx, r14
call fcn.1800a1f20
test al, al
je 0x18008fe4a
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x10], xmm0
xor r12d, r12d
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], r12
movdqa xmmword [rbp + 0x30], xmm0
movdqa xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], r12
mov dword [rbp + 0x58], 0xffffffff
lea rcx, [rbp + 0x10]
call fcn.18008e390
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x10]
call fcn.18008efd0
mov rsi, qword [rsp + 0x68]
sub rsi, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.180003800
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18008f82d
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
call fcn.180005040
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
lea rcx, [rbp + 0x10]
call fcn.180091a70
cmp rdi, rsi
jb 0x18008fe4a
xor eax, eax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r12
mov byte [rsp + 0x30], al
lea rax, [rbp - 0x60]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r8, [rsp + 0x60]
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.18003b4a0
mov dword [rsp + 0x48], r12d
mov rcx, qword [r14]
test rcx, rcx
je 0x18008fe19
mov rdx, qword [rbp - 0x60]
test rdx, rdx
je 0x18008fe19
cmp qword [rcx], 0xffffffffffffffff
je 0x18008fe19
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x48]
mov r8d, esi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18008fe19
mov eax, dword [rsp + 0x48]
cmp rax, rsi
jne 0x18008fe19
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r12
mov qword [rbp], r12
mov dword [rbp + 8], 0xffffffff
mov qword [rsp + 0x60], r12
lea r8, [rbp - 0x40]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.18008f2c0
test al, al
jne 0x18008f92c
xor bl, bl
jmp 0x18008fe0e
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], r12
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], r12
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r12
mov qword [rbp + 0x98], r12
mov qword [rbp + 0xa0], r12
mov dword [rbp + 0xa8], 0xffffffff
lea rcx, [rbp + 0x60]
call fcn.18008e390
mov rcx, qword [rbp - 0x38]
sub rcx, qword [rbp - 0x40]
mov rax, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
sub rax, rdx
cmp rcx, rax
jne 0x18008f9e7
mov qword [rsp + 0x60], rdx
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.180003810
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x50], rax
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x50]
call fcn.180003810
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x38]
call fcn.180003810
mov r8, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
sub r8, rcx
mov rdx, qword [rsp + 0x60]
call fcn.1800f7a50
test eax, eax
je 0x18008fb77
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], r12
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
movdqa xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], r12
mov dword [rbp + 0x58], 0xffffffff
lea rcx, [rbp + 0x10]
call fcn.18008e5b0
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
sub rcx, rdx
mov rax, qword [rbp - 0x38]
sub rax, qword [rbp - 0x40]
cmp rax, rcx
jne 0x18008fa90
mov qword [rsp + 0x50], rdx
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x50]
call fcn.180003810
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x60], rax
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x60]
call fcn.180003810
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x38]
call fcn.180003810
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
sub r8, rcx
mov rdx, qword [rsp + 0x50]
call fcn.1800f7a50
test eax, eax
je 0x18008fb6e
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], r12
mov qword [rbp + 0xc0], r12
mov qword [rbp + 0xc8], r12
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xd0], xmm0
movdqa xmmword [rbp + 0xe0], xmm0
mov qword [rbp + 0xf0], r12
mov dword [rbp + 0xf8], 0xffffffff
lea rcx, [rbp + 0xb0]
call fcn.18008e7d0
mov rcx, qword [rbp + 0xb8]
mov rdx, qword [rbp + 0xb0]
sub rcx, rdx
mov rax, qword [rbp - 0x38]
sub rax, qword [rbp - 0x40]
cmp rax, rcx
jne 0x18008fdec
mov qword [rsp + 0x50], rdx
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x50]
call fcn.180003810
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x60], rax
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x60]
call fcn.180003810
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x38]
call fcn.180003810
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
sub r8, rcx
mov rdx, qword [rsp + 0x50]
call fcn.1800f7a50
test eax, eax
jne 0x18008fdec
lea rcx, [rbp + 0xb0]
call fcn.180091a70
nop
lea rcx, [rbp + 0x10]
call fcn.180091a70
mov rcx, qword [rbp - 8]
sub rcx, qword [rbp - 0x10]
mov rax, qword [rbp + 0x98]
mov rdx, qword [rbp + 0x90]
sub rax, rdx
cmp rcx, rax
jne 0x18008fe02
mov qword [rsp + 0x50], rdx
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.180003810
mov rax, qword [rbp - 8]
mov qword [rsp + 0x60], rax
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x60]
call fcn.180003810
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x38]
call fcn.180003810
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
sub r8, rcx
mov rdx, qword [rsp + 0x50]
call fcn.1800f7a50
test eax, eax
jne 0x18008fe02
mov eax, dword [rbp + 0xa8]
cmp dword [rbp + 8], eax
jne 0x18008fe02
lea rbx, [r15 + 0x38]
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.180092fd0
lea rcx, [rbx + 0x18]
lea rdx, [rbp - 0x28]
call fcn.180092fd0
lea rcx, [rbx + 0x30]
lea rdx, [rbp - 0x10]
call fcn.180092fd0
mov eax, dword [rbp + 8]
mov dword [rbx + 0x48], eax
cmp rdi, rsi
jne 0x18008fc47
mov bl, 1
jmp 0x18008fe04
mov dword [rbp - 0x80], r12d
mov rcx, qword [r14]
test rcx, rcx
je 0x18008fe02
cmp qword [rcx], 0xffffffffffffffff
je 0x18008fe02
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x48]
mov r8d, 4
lea rdx, [rbp - 0x80]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18008fe02
cmp dword [rsp + 0x48], 4
jne 0x18008fe02
mov ebx, dword [rbp - 0x80]
sub rdi, rsi
cmp rbx, rdi
ja 0x18008fe02
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], r12
mov byte [rsp + 0x30], al
lea rax, [rbp - 0x78]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r8, [rsp + 0x60]
mov edx, ebx
lea rcx, [rbp - 0x78]
call fcn.18003b4a0
mov rcx, qword [r14]
test rcx, rcx
je 0x18008fdbe
mov rdx, qword [rbp - 0x78]
test rdx, rdx
je 0x18008fdbe
cmp qword [rcx], 0xffffffffffffffff
je 0x18008fdbe
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18008fdbe
mov eax, dword [rsp + 0x48]
cmp rax, rbx
jne 0x18008fdbe
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 8]
je 0x18008fdbe
cmp byte [rax], 0
jne 0x18008fdbe
mov rcx, qword [rbp - 0x70]
movzx eax, cl
mov r9, qword [rbp - 0x78]
sub al, r9b
test al, 7
jne 0x18008fdbe
cmp r9, rcx
je 0x18008fdad
mov rax, qword [rbp - 0x20]
sub rax, qword [rbp - 0x28]
cmp rax, 0x10
jne 0x18008fdbe
sub ecx, r9d
lea r8, [rsp + 0x60]
mov edx, ecx
mov rcx, r9
call fcn.180096890
mov rdx, qword [rbp - 0x28]
mov r9, rdx
lea r8, [rsp + 0x60]
sub r8, rdx
movzx eax, byte [r8 + rdx]
cmp byte [rdx], al
jne 0x18008fdbe
inc rdx
mov rax, rdx
sub rax, r9
cmp rax, 0x10
jb 0x18008fd95
lea rdx, [rbp - 0x78]
mov rcx, r15
call fcn.180090020
movzx ebx, al
jmp 0x18008fdc0
xor bl, bl
lea rcx, [rbp - 0x78]
call fcn.180003800
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x18008fe04
mov rdx, qword [rbp - 0x68]
sub rdx, rcx
call fcn.180005040
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
jmp 0x18008fe04
lea rcx, [rbp + 0xb0]
call fcn.180091a70
nop
lea rcx, [rbp + 0x10]
call fcn.180091a70
xor bl, bl
lea rcx, [rbp + 0x60]
call fcn.180091a70
nop
lea rcx, [rbp - 0x40]
call fcn.180091a70
jmp 0x18008fe1b
xor bl, bl
lea rcx, [rbp - 0x60]
call fcn.180003800
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x18008fe45
mov rdx, qword [rbp - 0x50]
sub rdx, rcx
call fcn.180005040
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r12
movzx eax, bl
jmp 0x18008fe4c
xor al, al
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1800d8050
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret