Function at 0x1400c2840
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x138]
sub rsp, 0x220
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x140292cc0]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov rdi, rcx
mov qword [rbp + 0x10], 0xffffffffffffffff
mov dword [rbp + 0x18], 0x80000000
movdqa xmm6, xmmword [0x14020b4f0]
movdqu xmmword [rbp + 0x30], xmm6
mov byte [rbp + 0x20], 0
movdqa xmm0, xmm6
movdqu xmmword [rbp], xmm6
mov byte [rbp - 0x10], 0
xor esi, esi
mov qword [rsp + 0x70], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0xc0000000
mov r8, qword [r8]
lea edx, [rsi + 1]
lea rcx, [rbp - 0x20]
call fcn.1400b8510
nop
mov rbx, qword [rbp - 0x20]
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x20], 0xffffffffffffffff
mov qword [rbp + 0x10], rbx
mov eax, dword [rbp - 0x18]
mov dword [rbp - 0x18], 0x80000000
mov dword [rbp + 0x18], eax
movups xmm2, xmmword [rbp - 0x10]
movups xmmword [rbp - 0x40], xmm2
movups xmm1, xmmword [rbp]
movups xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rbp + 0x20]
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm6
movups xmmword [rbp + 0x20], xmm2
movups xmmword [rbp + 0x30], xmm1
lea rcx, [rbp - 0x20]
call fcn.1400b8490
mov qword [rsp + 0x40], rsi
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], rsi
nop dword [rax + rax]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400c2ae3
lea rcx, [rbp - 0x78]
call fcn.1400b7240
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1400c2930
cmp rax, 1
jne 0x1400c2988
lea edx, [rax + 0x12]
lea rcx, [rbp - 0x50]
call fcn.1400b63e0
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.1400b64a0
lea rdx, [0x140253bf8]
lea rcx, [rbp + 0x40]
call fcn.14018a240
int3
mov r8d, 0xc0000000
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x48]
call fcn.1400c34d0
nop
mov rbx, qword [rsp + 0x48]
mov eax, dword [rbx]
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], rsi
nop dword [rax]
cmp eax, 1
ja 0x1400c29c2
lea rcx, [rbp - 0x68]
call fcn.1400b7240
mov eax, dword [rbx]
jmp 0x1400c29b0
cmp eax, 2
je 0x1400c29f8
mov edx, 0x13
lea rcx, [rbp - 0x48]
call fcn.1400b63e0
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.1400b64a0
lea rdx, [0x140253bf8]
lea rcx, [rbp + 0x80]
call fcn.14018a240
int3
mov rdx, qword [rsp + 0x48]
add rdx, 8
xor r9d, r9d
lea rcx, [rbp + 0x178]
call fcn.1400c2f60
mov r8, qword [rdi]
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rsp + 0x48], r8
mov rcx, qword [rdi + 8]
mov rax, qword [rsp + 0x50]
mov qword [rdi + 8], rax
mov qword [rsp + 0x50], rcx
mov r9, qword [rdi + 0x10]
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x10], rax
mov qword [rsp + 0x58], r9
mov edx, dword [rdi + 0x18]
mov eax, dword [rsp + 0x60]
mov dword [rdi + 0x18], eax
mov dword [rsp + 0x60], edx
mov rcx, qword [rdi + 0x20]
mov rax, qword [rsp + 0x68]
mov qword [rdi + 0x20], rax
mov qword [rsp + 0x68], rcx
test r8, r8
je 0x1400c2a7f
sub r8, r9
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x48], rsi
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x1400c2a8c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x1400c2a9d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x28]
cmp rax, 0x10
jb 0x1400c2b17
mov rcx, qword [rbp - 0x40]
inc rax
cmp rax, 0x1000
jb 0x1400c2adc
test cl, 0x1f
jne 0x1400c2ad6
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400c2ad6
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x1400c2ad6
mov rcx, rax
jmp 0x1400c2adc
call fcn.140198e94
int3
call fcn.140155e30
jmp 0x1400c2b17
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.1400b63f0
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xc0]
call fcn.1400b64a0
lea rdx, [0x140253bf8]
lea rcx, [rbp + 0xc0]
call fcn.14018a240
nop
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1401557c0
mov rbx, qword [rsp + 0x248]
movaps xmm6, xmmword [rsp + 0x210]
add rsp, 0x220
pop rdi
pop rsi
pop rbp
ret