Function at 0x14007c800
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x2d0]
sub rsp, 0x3d0
mov rax, qword [0x140106438]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
xor r14d, r14d
movsxd rdi, edx
mov qword [rsp + 0x50], r14
mov rsi, r8
mov dword [0x1401102a8], r14d
test rcx, rcx
je 0x14007cae2
movsx edx, byte [rcx]
movzx eax, dl
or al, 0x20
sub al, 0x61
cmp al, 0x19
ja 0x14007c87d
cmp byte [rcx + 1], 0x3a
jne 0x14007c87d
cmp byte [rcx + 2], r14b
jne 0x14007c87d
mov r8d, edx
lea rcx, [rbp + 0x50]
lea rdx, str.DosDevices_c:
call fcn.140041930
lea rcx, [rbp + 0x50]
jmp 0x14007c908
mov qword [rsp + 0x68], r14
cmp dl, 0x5c
jne 0x14007cae2
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r14b
jne 0x14007c892
cmp rax, 4
jb 0x14007c908
cmp byte [rcx + 3], 0x5c
jne 0x14007c908
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0xc0]
lea rdx, str._s__I64u__I64u
call fcn.140001e20
cmp eax, 1
jl 0x14007cae2
movzx eax, byte [rbp + 0xc1]
cmp al, 0x5c
je 0x14007c8e1
cmp al, 0x2e
jne 0x14007c8e8
mov byte [rbp + 0xc1], 0x3f
movzx eax, byte [rbp + 0xc2]
mov edx, 0x3f
mov ecx, eax
cmp al, 0x2e
cmove ecx, edx
mov byte [rbp + 0xc2], cl
lea rcx, [rbp + 0xc0]
lea r9, [rsp + 0x58]
mov dl, 1
lea r8, [rsp + 0x60]
call fcn.14007c4a0
test eax, eax
jns 0x14007c929
mov ecx, eax
call fcn.14007c3f0
jmp 0x14007caf1
mov qword [rsp + 0x3f8], rbx
cmp qword [rsp + 0x50], r14
jne 0x14007ca8b
mov rax, qword [0x1401102c8]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x50], r14
test rax, rax
jne 0x14007c97e
lea rcx, str.NtDll
call fcn.140009360
mov rcx, rax
lea rdx, str.NtDeviceIoControlFile
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401102c8], rax
test rax, rax
je 0x14007ca8b
xorps xmm0, xmm0
mov dword [rsp + 0x48], 0x90
lea rcx, [rbp - 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov dword [rsp + 0x38], 0x90
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x30], rcx
xor edx, edx
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x28], 0x70048
mov qword [rsp + 0x20], rcx
mov rcx, rbx
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
call rax
test eax, eax
js 0x14007c9f8
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x50], rax
jmp 0x14007ca8b
cmp eax, 0xc0000010
jne 0x14007ca64
xor eax, eax
mov dword [rsp + 0x48], 0x28
mov qword [rbp + 0x40], rax
xorps xmm0, xmm0
lea rax, [rbp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0x28
lea rax, [rbp + 0x20]
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rsp + 0x78]
mov dword [rsp + 0x28], 0x700a0
mov rcx, rbx
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
call qword [0x1401102c8]
test eax, eax
js 0x14007ca8b
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x50], rax
jmp 0x14007ca8b
cmp eax, 0xc000000d
jne 0x14007ca8b
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmovne rcx, qword [rsp + 0x70]
mov qword [rsp + 0x50], rcx
mov rax, qword [0x1401102e0]
mov rbx, qword [rsp + 0x60]
test rax, rax
jne 0x14007cac4
lea rcx, str.Ntdll
call fcn.140009360
mov rcx, rax
lea rdx, str.NtClose
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401102e0], rax
test rax, rax
je 0x14007cac9
mov rcx, rbx
call rax
mov rax, qword [rsp + 0x50]
xor edx, edx
mov rbx, qword [rsp + 0x3f8]
div rdi
mov qword [rsi], rax
xor eax, eax
jmp 0x14007caf1
mov eax, 2
mov dword [0x1401102a8], 0x57
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.140092060
mov rsi, qword [rsp + 0x408]
add rsp, 0x3d0
pop r14
pop rdi
pop rbp
ret