Function at 0x1400c8b88
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 - 0x71], 0
xor ebx, ebx
and dword [rsp + 0x48], ebx
mov r14, rcx
mov rcx, qword [rcx + 0x68]
xor r13d, r13d
and dword [rbp - 0x7d], ebx
xor r12d, r12d
and qword [rbp - 0x79], rbx
or qword [rbp + 0x6f], 0xffffffffffffffff
mov qword [rsp + 0x40], rbx
mov qword [rbp - 0x69], r13
mov qword [rbp - 0x61], r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x1400c8bed
shr edi, 4
not edi
and edi, 1
jmp 0x1400c8bef
xor edi, edi
xor ecx, ecx
call fcn.140082b34
xor ecx, ecx
call fcn.140082b34
xor esi, esi
mov r15d, 0x8007000d
test edi, edi
je 0x1400c8c8e
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
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400c8c68
lea rdx, [rbp - 0x39]
mov qword [rbp + 0x6f], rcx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400c8c68
cmp qword [rbp - 0x39], 0x200000
jle 0x1400c8c8e
mov esi, r15d
mov ecx, r15d
jmp 0x1400c8c89
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c8c79
mov esi, 0x80004005
jmp 0x1400c8c87
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.140082a8c
mov ecx, esi
call fcn.140082b34
lea rcx, [rbp + 0x6f]
call fcn.14007f49c
test esi, esi
jns 0x1400c8cae
mov ecx, esi
call fcn.140082a8c
jmp 0x1400c8fcf
mov rcx, qword [r14 + 0x68]
lea r8, [rbp - 0x71]
lea rdx, [rbp + 0x6f]
call fcn.1400ab92c
mov esi, eax
test eax, eax
jns 0x1400c8cc9
mov ecx, eax
jmp 0x1400c8ca4
lea r8, [rsp + 0x40]
xor edx, edx
lea rcx, [0x1403da950]
call fcn.1400fdd38
mov esi, eax
test eax, eax
jns 0x1400c8cf3
mov ecx, eax
call fcn.140082a8c
mov rbx, qword [rsp + 0x40]
jmp 0x1400c8fcf
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x18]
mov rax, qword [0x1403cf6d0]
mov rcx, rdi
call rax
mov r8d, dword [rbp + 0x6f]
mov rax, rdi
mov rdx, qword [rbp - 0x71]
xor r9d, r9d
mov rcx, rbx
call rax
mov esi, eax
test eax, eax
js 0x1400c8cc5
mov rax, qword [rbx]
mov rdi, qword [rax + 0x30]
mov rax, qword [0x1403cf6d0]
mov rcx, rdi
call rax
mov rax, rdi
lea rdx, [rbp - 0x59]
mov rcx, rbx
call rax
mov esi, eax
test eax, eax
js 0x1400c8cc5
cmp dword [rbp - 0x51], 1
je 0x1400c8d5e
mov esi, r15d
mov ecx, r15d
jmp 0x1400c8ca4
cmp dword [rbp - 0x49], 1
jb 0x1400c8d53
mov rax, qword [rbx]
mov rdi, qword [rax + 0x30]
mov rax, qword [0x1403cf6d0]
mov rcx, rdi
call rax
mov rax, rdi
lea rdx, [rbp - 0x59]
mov rcx, rbx
call rax
mov esi, eax
test eax, eax
js 0x1400c8cc5
cmp dword [rbp - 0x51], 1
jne 0x1400c8d53
mov r15d, dword [rbp - 0x49]
xor r14d, r14d
test r15d, r15d
je 0x1400c8e35
test r13, r13
je 0x1400c8dc9
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.140082b34
and qword [rbp - 0x69], 0
test r12, r12
je 0x1400c8def
mov rax, qword [r12]
mov rdi, qword [rax + 0x10]
mov rax, qword [0x1403cf6d0]
mov rcx, rdi
call rax
mov rax, rdi
mov rcx, r12
call rax
and qword [rbp - 0x61], 0
mov rdx, rbx
lea rcx, [rbp - 0x69]
call fcn.1400ce2b0
mov esi, eax
test eax, eax
js 0x1400c8cc5
xor r8d, r8d
lea rdx, [rbp - 0x69]
lea rcx, [rsp + 0x48]
call fcn.1400c80f4
mov esi, eax
test eax, eax
js 0x1400c8cc5
inc r14d
cmp r14d, r15d
jae 0x1400c8e35
mov r12, qword [rbp - 0x61]
mov r13, qword [rbp - 0x69]
jmp 0x1400c8da3
mov rax, qword [rbx]
mov rdi, qword [rax + 0x28]
mov rax, qword [0x1403cf6d0]
mov rcx, rdi
call rax
mov rax, rdi
lea rdx, [rbp + 0x77]
mov rcx, rbx
call rax
mov esi, eax
test eax, eax
js 0x1400c8cc5
mov rax, qword [rbx]
mov rdi, qword [rax + 0x30]
mov rax, qword [0x1403cf6d0]
mov rcx, rdi
call rax
mov rax, rdi
lea rdx, [rbp - 0x59]
mov rcx, rbx
call rax
mov esi, eax
test eax, eax
js 0x1400c8cc5
cmp dword [rbp - 0x51], 4
je 0x1400c8e97
mov esi, 0x8007000d
jmp 0x1400c8ca2
mov rdi, qword [rbp + 0x67]
lea r8, [rsp + 0x40]
mov r15d, dword [rbp + 0x77]
lea rdx, [rbp + 0x6f]
mov r12, qword [rbp - 0x49]
mov rcx, rdi
mov r13d, dword [rbp - 0x41]
and qword [rsp + 0x40], 0
call fcn.1400ce4ec
mov esi, eax
test eax, eax
jns 0x1400c8ecd
mov ecx, eax
call fcn.140082a8c
jmp 0x1400c8f3d
mov r14, qword [rsp + 0x40]
lea rax, [0x140020e1c]
mov edi, dword [rbp + 0x6f]
lea rdx, [rbp - 0x31]
mov qword [rbp - 0x29], rax
xor r9d, r9d
lea rax, [rbp + 0x7f]
mov qword [rbp - 5], r14
mov qword [rbp - 0x21], rax
mov rax, qword [rbp - 0x71]
lea r8d, [r9 + 0x3c]
mov qword [rbp - 0x15], rax
lea ecx, [r8 + 0x7d]
mov dword [rbp - 9], edi
mov qword [rbp - 0x31], 3
mov dword [rbp - 0x19], r15d
mov dword [rbp - 0xd], r13d
mov qword [rbp + 3], r12
call sub.ntdll.dll_NtQuerySystemInformation
mov esi, dword [rbp + 0x7f]
test esi, esi
jns 0x1400c8f2f
mov ecx, esi
call fcn.140082a8c
jmp 0x1400c8f39
mov rcx, rdi
xor eax, eax
mov rdi, r14
rep stosb byte [rdi], al
mov rdi, qword [rbp + 0x67]
mov ecx, esi
call fcn.140082b34
lea rcx, [rsp + 0x40]
call fcn.140061a14
cmp esi, 0x8007000d
jne 0x1400c8f68
lea rcx, [rdi + 0x98]
xor edx, edx
call fcn.1400c8504
xor esi, esi
jmp 0x1400c8fcf
test esi, esi
js 0x1400c8ca2
add rdi, 0x98
xor edx, edx
mov rcx, rdi
call fcn.1400c8504
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 0x1400c8fba
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rbp - 0x79]
mov qword [rdi + 8], rax
mov dword [rsp + 0x48], r15d
mov dword [rbp - 0x7d], r12d
mov qword [rbp - 0x79], r13
mov ecx, esi
call fcn.140082b34
lea rcx, [rsp + 0x48]
call fcn.1400ac04c
lea rcx, [rbp - 0x69]
call fcn.1400c190c
test rbx, rbx
je 0x1400c9009
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rax, qword [0x1403cf6d0]
mov rcx, rdi
call rax
mov rax, rdi
mov rcx, rbx
call rax
lea rcx, [rbp - 0x71]
call fcn.1400a4bf0
mov eax, esi
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret