Function at 0x1400c0c80
Capabilities:
Check if file exists
Get file attributes
Get file size
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xe8
and qword [rbp - 0x61], 0
xor eax, eax
and dword [rsp + 0x48], eax
mov r14, rcx
mov rcx, qword [rcx + 0x68]
xor ebx, ebx
and dword [rbp - 0x7d], eax
xor r13d, r13d
and qword [rbp - 0x79], rax
xor r12d, r12d
or qword [rbp + 0x6f], 0xffffffffffffffff
mov qword [rsp + 0x40], rbx
mov qword [rbp - 0x71], r13
mov qword [rbp - 0x69], r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x1400c0ce7
shr edi, 4
not edi
and edi, 1
jmp 0x1400c0ce9
xor edi, edi
xor ecx, ecx
call fcn.14007ab44
xor ecx, ecx
call fcn.14007ab44
xor esi, esi
mov r15d, 0x8007000d
test edi, edi
je 0x1400c0d8f
and qword [rsp + 0x30], rbx
lea r8d, [rsi + 1]
mov rcx, qword [r14 + 0x68]
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x1400c0d68
or qword [rbp + 0x6f], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c0d56
mov esi, 0x80004005
jmp 0x1400c0d64
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
jmp 0x1400c0d8a
lea rdx, [rbp - 0x39]
mov qword [rbp + 0x6f], rcx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400c0d45
cmp qword [rbp - 0x39], 0x200000
jle 0x1400c0d8f
mov esi, r15d
mov ecx, r15d
call fcn.14007ab24
mov ecx, esi
call fcn.14007ab44
lea rcx, [rbp + 0x6f]
call fcn.1400773f8
test esi, esi
jns 0x1400c0daf
mov ecx, esi
call fcn.14007ab24
jmp 0x1400c10b0
mov rcx, qword [r14 + 0x68]
lea r8, [rbp - 0x61]
lea rdx, [rbp + 0x6f]
call fcn.1400a357c
mov esi, eax
test eax, eax
jns 0x1400c0dca
mov ecx, eax
jmp 0x1400c0da5
lea r8, [rsp + 0x40]
xor edx, edx
lea rcx, [0x1403c1d50]
call fcn.1400f4150
mov esi, eax
test eax, eax
jns 0x1400c0df4
mov ecx, eax
call fcn.14007ab24
mov rbx, qword [rsp + 0x40]
jmp 0x1400c10b0
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [0x1403b8660]
mov r8d, dword [rbp + 0x6f]
xor r9d, r9d
mov rdx, qword [rbp - 0x61]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x1400c0dc6
mov rax, qword [rbx]
mov rdi, qword [rax + 0x30]
mov rcx, rdi
call qword [0x1403b8660]
lea rdx, [rbp - 0x59]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x1400c0dc6
cmp dword [rbp - 0x51], 1
je 0x1400c0e4f
mov esi, r15d
mov ecx, r15d
jmp 0x1400c0da5
cmp dword [rbp - 0x49], 1
jb 0x1400c0e44
mov rax, qword [rbx]
mov rdi, qword [rax + 0x30]
mov rcx, rdi
call qword [0x1403b8660]
lea rdx, [rbp - 0x59]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x1400c0dc6
cmp dword [rbp - 0x51], 1
jne 0x1400c0e44
mov r15d, dword [rbp - 0x49]
xor r14d, r14d
test r15d, r15d
je 0x1400c0f1a
test r13, r13
je 0x1400c0eb4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r13 - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.14007ab44
and qword [rbp - 0x71], 0
test r12, r12
je 0x1400c0ed4
mov rax, qword [r12]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403b8660]
mov rcx, r12
call rdi
and qword [rbp - 0x69], 0
mov rdx, rbx
lea rcx, [rbp - 0x71]
call fcn.1400c3ec0
mov esi, eax
test eax, eax
js 0x1400c0dc6
xor r8d, r8d
lea rdx, [rbp - 0x71]
lea rcx, [rsp + 0x48]
call fcn.1400ba66c
mov esi, eax
test eax, eax
js 0x1400c0dc6
inc r14d
cmp r14d, r15d
jae 0x1400c0f1a
mov r12, qword [rbp - 0x69]
mov r13, qword [rbp - 0x71]
jmp 0x1400c0e8e
mov rax, qword [rbx]
mov rdi, qword [rax + 0x28]
mov rcx, rdi
call qword [0x1403b8660]
lea rdx, [rbp + 0x77]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x1400c0dc6
mov rax, qword [rbx]
mov rdi, qword [rax + 0x30]
mov rcx, rdi
call qword [0x1403b8660]
lea rdx, [rbp - 0x59]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x1400c0dc6
cmp dword [rbp - 0x51], 4
je 0x1400c0f70
mov esi, 0x8007000d
jmp 0x1400c0da3
mov r13, qword [rbp + 0x67]
lea r8, [rsp + 0x40]
mov r15, qword [rbp - 0x49]
lea rdx, [rbp + 0x6f]
mov edi, dword [rbp - 0x41]
mov rcx, r13
mov r12d, dword [rbp + 0x77]
and qword [rsp + 0x40], 0
call fcn.1400c5c84
mov esi, eax
test eax, eax
jns 0x1400c0fa5
mov ecx, eax
call fcn.14007ab24
jmp 0x1400c100b
mov r14, qword [rsp + 0x40]
lea rax, [0x140013c78]
mov qword [rbp - 0x29], rax
lea rdx, [rbp - 0x31]
xor r9d, r9d
mov dword [rbp - 0xd], edi
mov edi, dword [rbp + 0x6f]
lea rax, [rbp + 0x7f]
mov qword [rbp - 0x21], rax
mov rax, qword [rbp - 0x61]
lea r8d, [r9 + 0x3c]
mov qword [rbp - 0x15], rax
lea ecx, [r8 + 0x7d]
mov qword [rbp - 5], r14
mov qword [rbp - 0x31], 3
mov dword [rbp - 0x19], r12d
mov dword [rbp - 9], edi
mov qword [rbp + 3], r15
call sub.ntdll.dll_NtQuerySystemInformation
mov esi, dword [rbp + 0x7f]
test esi, esi
jns 0x1400c1001
mov ecx, esi
jmp 0x1400c0f9e
mov rcx, rdi
xor eax, eax
mov rdi, r14
rep stosb byte [rdi], al
mov ecx, esi
call fcn.14007ab44
lea rcx, [rsp + 0x40]
call fcn.14005ba10
cmp esi, 0x8007000d
jne 0x1400c1036
lea rcx, [r13 + 0x98]
xor edx, edx
call fcn.1400ba52c
xor esi, esi
jmp 0x1400c10b0
test esi, esi
js 0x1400c0da3
lea rdi, [r13 + 0x98]
xor edx, edx
mov rcx, rdi
call fcn.1400ba52c
mov r13, qword [rdi + 8]
mov r15d, dword [rdi]
mov r12d, dword [rdi + 4]
and qword [rdi + 8], 0
mov eax, dword [rsp + 0x48]
mov dword [rdi], eax
mov eax, dword [rbp - 0x7d]
mov dword [rdi + 4], eax
mov r14, qword [rdi + 8]
test r14, r14
je 0x1400c108d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 8], 0
mov rax, qword [rbp - 0x79]
lea rcx, [rbp + 0x67]
and qword [rbp + 0x67], 0
mov qword [rdi + 8], rax
mov dword [rsp + 0x48], r15d
mov dword [rbp - 0x7d], r12d
mov qword [rbp - 0x79], r13
call fcn.1400afea8
mov ecx, esi
call fcn.14007ab44
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1400ba52c
lea rcx, [rbp - 0x79]
call fcn.1400afea8
lea rcx, [rbp - 0x71]
call fcn.1400b8d68
test rbx, rbx
je 0x1400c10ef
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403b8660]
mov rcx, rbx
call rdi
lea rcx, [rbp - 0x61]
call fcn.14009cebc
mov eax, esi
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret