Function at 0x140007870
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov r11, rsp
push rbp
push rbx
push r13
lea rbp, [r11 - 0x48]
sub rsp, 0x130
mov rax, qword [0x140210ef8]
xor rax, rsp
mov qword [rbp], rax
mov rbx, rdx
mov r13, rcx
test rcx, rcx
je 0x140007bae
test rdx, rdx
je 0x140007bae
xorps xmm0, xmm0
mov qword [r11 + 0x18], rsi
xor eax, eax
mov qword [r11 - 0x20], rdi
xor edx, edx
mov qword [r11 - 0x28], r12
mov r8d, 0xc8
mov dword [rbp - 0x40], eax
mov rcx, rbx
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
call fcn.1400a7d00
mov rcx, qword [r13 + 0x108]
call fcn.140010760
mov rsi, qword [r13 + 0x108]
xor edi, edi
mov qword [rsp + 0x20], rax
mov ecx, dword [rsi]
sub ecx, 1
je 0x140007928
cmp ecx, 1
jne 0x1400079a3
mov rax, qword [rsi + 0x18]
mov qword [rbx], rax
jmp 0x1400079a3
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
mov rsi, qword [rsi + 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140007977
bt eax, 0xa
jae 0x140007977
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000796b
test al, 0x10
je 0x14000796b
mov rcx, rsi
call fcn.1400d2fdc
jmp 0x140007973
mov rcx, rsi
call fcn.1400b6b3c
test eax, eax
jne 0x1400079a3
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.1400d2a94
test eax, eax
jne 0x1400079a3
mov eax, 0x4000
test word [rbp - 0x2a], ax
mov eax, dword [rbp - 0x1c]
cmovne eax, edi
cdqe
mov qword [rbx], rax
mov rax, qword [rbp - 0x10]
mov qword [rbx + 8], rax
mov rcx, qword [r13 + 0x108]
xor r8d, r8d
xor edx, edx
call fcn.140010e10
test eax, eax
jne 0x140007b77
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.140008050
mov r12d, eax
test eax, eax
jne 0x140007b7d
mov edx, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x38]
mov dword [rbx + 0x10], edx
shr edx, 0x18
cmp edx, 1
jne 0x140007a03
mov rax, qword [rbx]
cmp rax, 0xc
mov dword [rbx + 0x14], r8d
mov dword [rbx + 0x1c], 0x5359454b
lea ecx, [rax - 0xc]
cmovb ecx, edi
mov dword [rbx + 0x18], ecx
cmp edx, 2
jne 0x140007b7d
mov eax, dword [rbp - 0x44]
lea rcx, [rsp + 0x5c]
mov qword [rsp + 0x118], r14
mov r14d, 0x40
mov dword [rbx + 0x18], eax
mov edx, r14d
mov eax, dword [rbp - 0x40]
mov qword [rsp + 0x110], r15
lea r15, [rbx + 0x61]
mov dword [rbx + 0x14], r8d
mov dword [rbx + 0x1c], eax
call fcn.1400cf7a8
cmp rax, r14
jb 0x140007a4d
mov esi, r14d
jmp 0x140007a62
mov rdx, r14
lea rcx, [rsp + 0x5c]
call fcn.1400cf7a8
mov rsi, rax
test rax, rax
je 0x140007a89
test r15, r15
jne 0x140007a79
call fcn.1400b62a4
mov dword [rax], 0x16
call fcn.1400b60f8
jmp 0x140007a89
mov r8, rsi
lea rdx, [rsp + 0x5c]
mov rcx, r15
call fcn.1400a8030
cmp rsi, r14
jae 0x140007a9f
sub r14, rsi
lea rcx, [rsi + r15]
mov r8, r14
xor edx, edx
call fcn.1400a7d00
mov r14d, 0x20
lea rcx, [rsp + 0x3c]
mov edx, r14d
lea r15, [rbx + 0xa2]
call fcn.1400cf7a8
cmp rax, r14
jb 0x140007ac3
mov esi, r14d
jmp 0x140007ad8
mov rdx, r14
lea rcx, [rsp + 0x3c]
call fcn.1400cf7a8
mov rsi, rax
test rax, rax
je 0x140007aff
test r15, r15
jne 0x140007aef
call fcn.1400b62a4
mov dword [rax], 0x16
call fcn.1400b60f8
jmp 0x140007aff
mov r8, rsi
lea rdx, [rsp + 0x3c]
mov rcx, r15
call fcn.1400a8030
cmp rsi, r14
jae 0x140007b15
sub r14, rsi
lea rcx, [rsi + r15]
mov r8, r14
xor edx, edx
call fcn.1400a7d00
mov r15, qword [rsp + 0x110]
mov r14, qword [rsp + 0x118]
add rbx, 0x20
je 0x140007b7d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
mov byte [rbx + 0x40], al
nop dword [rax]
nop word [rax + rax]
mov r9d, dword [rbp + rdi*4 - 0x64]
lea r8, str._08X
bswap r9d
mov rdx, rbx
mov ecx, 0x41
call fcn.14000ca10
inc rdi
cmp rdi, 8
jb 0x140007b50
jmp 0x140007b7d
mov r12d, 0xbba
mov rdx, qword [rsp + 0x20]
xor r8d, r8d
mov rcx, qword [r13 + 0x108]
call fcn.140010e10
mov rdi, qword [rsp + 0x128]
mov eax, r12d
mov r12, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x160]
jmp 0x140007bb3
mov eax, 0x8fc
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400a6220
add rsp, 0x130
pop r13
pop rbx
pop rbp
ret