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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x140412700]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r15, rdx
mov qword [rbp - 0x49], rdx
mov r13, rcx
mov rbx, qword [rcx + 0xe8]
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
xor r14d, r14d
mov qword [rbp + 7], r14
mov qword [rbp + 0xf], r14
or rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp word [rdx + r8*2], r14w
jne 0x140118a90
lea rcx, [rbp - 9]
call fcn.140013184
nop
lea rax, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rax, qword [rbp - 9]
mov qword [rbp - 0x19], rax
mov rax, qword [rbp + 7]
mov qword [rbp - 0x11], rax
lea rax, [rbp - 0x19]
mov qword [rbp - 0x29], rax
lea rax, [rbp - 9]
mov qword [rbp - 0x21], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x41]
call fcn.1400ab138
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x59], xmm1
mov r8, rdi
inc r8
cmp word [r15 + r8*2], r14w
jne 0x140118aee
mov rdx, r15
lea rcx, [rbp - 0x69]
call fcn.140013184
nop
lea rdx, [r13 + 0x160]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x69]
lea r8, [rbp - 9]
lea rcx, [rbx + 0x288]
call fcn.14010a084
mov bl, al
lea rcx, [rbp - 0x69]
call fcn.14000dd24
nop
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140118b7f
mov rdx, qword [rbp - 0x31]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140118b6e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140118d10
call fcn.14000e3f0
mov qword [rbp - 0x41], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
test bl, bl
jne 0x140118b8d
mov ebx, 0x80004005
jmp 0x140118cde
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rcx, qword [rbp - 9]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov r8d, 3
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov ecx, r14d
cmp rax, rdi
setne cl
call fcn.1401182f8
mov ebx, eax
cmp r12, rdi
je 0x140118cde
mov qword [rbp + 0x17], r14
lea rdx, [rbp + 0x17]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, eax
call fcn.1401182f8
mov ebx, eax
mov rsi, qword [rbp + 0x17]
test eax, eax
jne 0x140118c91
mov rdx, rsi
mov rcx, r13
call fcn.140118898
test rax, rax
je 0x140118c81
test rsi, rsi
je 0x140118c8e
mov r15, rax
test ebx, ebx
js 0x140118c6a
and dword [rbp - 0x19], 0
mov rcx, rsi
sub rcx, r14
mov eax, esi
sub eax, r14d
mov r8d, 0x10000000
cmp rcx, r8
cmovb r8d, eax
lea rdx, [r14 + r15]
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x19]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
call fcn.1401182f8
mov ebx, eax
mov eax, dword [rbp - 0x19]
test eax, eax
je 0x140118c6a
add r14, rax
cmp r14, rsi
jb 0x140118c1b
xor r14d, r14d
test ebx, ebx
mov r15, qword [rbp - 0x49]
je 0x140118c91
xor edx, edx
mov rcx, r13
call fcn.140118898
jmp 0x140118c91
mov eax, 0x8007000e
test rsi, rsi
cmovne ebx, eax
jmp 0x140118c91
xor r14d, r14d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x59], xmm1
inc rdi
cmp word [r15 + rdi*2], r14w
jne 0x140118ca9
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x69]
call fcn.140013184
nop
lea rdx, [rbp - 0x69]
lea rcx, [r13 + 0x108]
call fcn.1400cf1ac
nop
lea rcx, [rbp - 0x69]
call fcn.14000dd24
nop
lea rcx, [rbp - 9]
call fcn.14000dd24
mov eax, ebx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1402194b0
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140287130
nop
int3