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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rsi, rcx
xor r15b, r15b
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
xor r12d, r12d
mov qword [rbp - 0x21], r12
add rcx, 0x28
cmp qword [rcx + 0x18], 8
jb 0x14002b551
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14002b628
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test eax, eax
je 0x14002b628
mov ecx, edi
mov r9, qword [rbp - 0x29]
mov r8, r9
mov rdx, qword [rbp - 0x31]
sub r8, rdx
cmp rdi, r8
jae 0x14002b5b6
lea rax, [rdx + rdi]
mov qword [rbp - 0x29], rax
jmp 0x14002b5f2
jbe 0x14002b5f2
mov rax, qword [rbp - 0x21]
sub rax, rdx
cmp rcx, rax
jbe 0x14002b5d6
lea r8, [rbp + 0x67]
mov rdx, rcx
lea rcx, [rbp - 0x31]
call fcn.14000ef10
jmp 0x14002b5ee
sub rcx, r8
lea rbx, [r9 + rcx]
mov r8, rcx
xor edx, edx
mov rcx, r9
call fcn.140137f50
mov qword [rbp - 0x29], rbx
mov rdx, qword [rbp - 0x31]
mov dword [rbp + 0x6f], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x6f]
mov r8d, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14002b61f
cmp dword [rbp + 0x6f], edi
je 0x14002b628
mov rdi, qword [rbp - 0x31]
mov rcx, rdi
jmp 0x14002b630
mov rdi, qword [rbp - 0x31]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rbp - 0x21]
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x41], rcx
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], r12
cmp rdi, rcx
je 0x14002b7c0
cmp byte [rsi + 9], 0
je 0x14002b7c0
sub rcx, rdi
cmp rcx, 0x10
jbe 0x14002b7c0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], r12
mov ecx, reloc.WS2_32.dll_recv
call fcn.140133e2c
mov rbx, rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
add rax, 0x10
mov qword [rbp - 9], rax
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rdi
mov rcx, rbx
call fcn.1401378a0
lea rax, [rbx + 0x10]
mov qword [rbp - 0x11], rax
mov rdi, qword [rbp - 0x49]
lea rdx, [rdi + 0x10]
cmp rdi, rdx
je 0x14002b6d5
mov rbx, qword [rbp - 0x41]
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call fcn.1401378a0
lea rax, [rbx + rdi]
mov qword [rbp - 0x41], rax
lea rdx, [rsi + 0x10]
mov r9b, 1
lea r8, [rbp - 0x19]
lea rcx, [rbp - 1]
call fcn.14000eb50
nop
mov r8, qword [rbp - 0x41]
mov rdx, qword [rbp - 0x49]
sub r8, rdx
lea rcx, [rbp - 1]
call fcn.14000ed60
mov rcx, rax
mov r9, qword [rbp - 0x41]
mov r8, r9
mov rdx, qword [rbp - 0x49]
sub r8, rdx
cmp rax, r8
jae 0x14002b71e
lea r9, [rdx + rax]
mov qword [rbp - 0x41], r9
jmp 0x14002b761
jbe 0x14002b761
mov rax, qword [rbp - 0x39]
sub rax, rdx
cmp rcx, rax
jbe 0x14002b742
lea r8, [rbp + 0x67]
mov rdx, rcx
lea rcx, [rbp - 0x49]
call fcn.14000ef10
mov r9, qword [rbp - 0x41]
jmp 0x14002b75d
sub rcx, r8
lea rbx, [r9 + rcx]
mov r8, rcx
xor edx, edx
mov rcx, r9
call fcn.140137f50
mov r9, rbx
mov qword [rbp - 0x41], rbx
mov rdx, qword [rbp - 0x49]
cmp rdx, r9
setne bl
lea rcx, [rbp - 1]
call fcn.14002aed0
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14002b7ab
mov rdx, qword [rbp - 9]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b7a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b834
call fcn.140133e68
test bl, bl
je 0x14002b7bc
mov rcx, qword [rbp - 0x49]
call fcn.14000f550
mov qword [rsi + 0x50], rax
mov rdi, qword [rbp - 0x49]
cmp qword [rsi + 0x50], 0
jne 0x14002b7d6
call fcn.14000fff0
mov qword [rsi + 0x50], rax
mov rdi, qword [rbp - 0x49]
jmp 0x14002b7d9
mov r15b, 1
test rdi, rdi
je 0x14002b80e
mov rdx, qword [rbp - 0x39]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14002b806
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b82e
mov rcx, rdi
call fcn.140133e68
movzx eax, r15b
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1401462a8
nop
call fcn.1401462a8
nop
int3