Function at 0x140007ed0
Capabilities:
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x30078
call fcn.1400417b0
sub rsp, rax
mov rax, qword [0x1400681b8]
xor rax, rsp
mov qword [rsp + 0x30060], rax
mov rdi, rcx
mov esi, edx
mov rcx, r8
mov ebx, r9d
mov r15, r8
call fcn.1400215d0
mov r10, qword [r15]
mov r14d, eax
mov rcx, qword [r10]
mov r9, qword [rcx + 0x10]
mov r8, qword [r9 + 0x58]
cmp r14, 0x7ffffffe
jbe 0x140007f34
xor r12d, r12d
mov word [rsp + 0x10060], r12w
jmp 0x140007f85
lea rax, [rsp + 0x10060]
mov edx, 0x7fff
sub r8, rax
lea rcx, [rsp + 0x10060]
nop dword [rax]
lea rax, [r14 - 0x7fff]
add rax, rdx
je 0x140007f73
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140007f73
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140007f50
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
xor r12d, r12d
mov word [rax], r12w
mov rax, qword [r10]
lea rcx, [rsp + 0x20060]
mov rdx, qword [rax + 0x10]
mov rdx, qword [rdx + 0x68]
add rdx, 0x3c
call fcn.140022f90
mov rcx, qword [rdi]
lea rax, [rsp + 0x20060]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
mov r8d, esi
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x10060]
call fcn.140008e40
test eax, eax
je 0x1400081ee
lea rcx, [0x14008332c]
mov qword [rsp + 0x300c8], rbp
cmp dword [rcx + rsi*4], 0
jne 0x140007ff2
lea eax, [r14 - 4]
test eax, 0xfffffffb
jne 0x140007ff5
mov r14d, r12d
lea rcx, [rsp + 0x60]
call fcn.1400215a0
test eax, eax
je 0x14000800e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x60]
mov ebx, 0x80
call fcn.1400215a0
test eax, eax
je 0x14000802e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14000806a
mov rcx, rax
call fcn.140024dd0
test eax, eax
jne 0x140008075
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400081e6
test esi, esi
jne 0x14000809f
cmp dword [0x1400815dc], esi
je 0x14000809f
mov rcx, rbp
call fcn.140025320
mov ebx, eax
test eax, eax
je 0x14000809f
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1400081e6
cmp dword [0x140081a24], 0
je 0x1400080dd
mov rax, qword [r15]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400080dd
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rbx + 0x10]
mov r8d, r14d
mov rcx, rbp
call fcn.140024e50
mov edi, eax
test eax, eax
jne 0x14000813b
mov rbx, qword [rbx]
cmp rbx, qword [r15]
jne 0x1400080c0
test esi, esi
je 0x1400080e6
cmp esi, 9
jne 0x1400080ec
mov r12d, 1
mov rax, qword [r15]
mov qword [rsp + 0x30070], r13
mov rdi, qword [rax]
cmp rdi, rax
je 0x1400081d3
mov eax, r14d
lea r13, [rax + rax]
nop word [rax + rax]
mov r14, qword [rdi + 0x10]
mov dword [rsp + 0x44], esi
mov rcx, qword [r14 + 0x78]
mov rbx, rcx
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x140008161
nop dword [rax]
cmp dword [rax + 0x20], esi
jge 0x14000814b
mov rax, qword [rax + 0x10]
jmp 0x140008151
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1400081e6
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140008130
cmp rbx, rcx
je 0x140008161
cmp esi, dword [rbx + 0x20]
jge 0x1400081a4
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x48]
lea rdx, [0x14005590a]
lea rcx, [r14 + 0x78]
call fcn.140005a60
mov r8, rbx
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
lea rcx, [r14 + 0x78]
lea r9, [rax + 0x20]
call fcn.140005e20
mov rbx, qword [rsp + 0x50]
mov rax, qword [rdi + 0x10]
mov r9d, r12d
mov r8, qword [rbx + 0xa8]
mov rcx, rbp
mov rdx, qword [rax + 0x58]
add rdx, r13
call fcn.1400250f0
mov ebx, eax
test eax, eax
jne 0x14000820f
mov rdi, qword [rdi]
cmp rdi, qword [r15]
jne 0x140008110
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov r13, qword [rsp + 0x30070]
mov rbp, qword [rsp + 0x300c8]
mov rcx, qword [rsp + 0x30060]
xor rcx, rsp
call fcn.140041820
add rsp, 0x30078
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1400081de