Function at 0x18005c0b8
Capabilities:
Get file attributes
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor r12d, r12d
mov rbx, rdx
mov r14, rcx
cmp byte [rdx + 0x471], r12b
je 0x18005c0f6
test dword [rdx + 0x474], 0x40000
je 0x18005c3bd
cmp byte [rdx + 0x469], r12b
je 0x18005c1dd
mov eax, dword [rdx + 0x46c]
and eax, 0x4010
cmp eax, 0x4000
je 0x18005c3bd
cmp byte [rdx + 0x468], r12b
jne 0x18005c193
lea rdi, [rdx + 0x458]
mov edx, 0x400
mov rcx, rdi
call fcn.18005e508
test eax, eax
je 0x18005c2c6
mov r9d, dword [rdi]
lea rdx, [rbp - 0x50]
mov r8, qword [rbx + 0x460]
mov rcx, r14
mov dword [rsp + 0x20], 0x16
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x18005c16d
cmp qword [rbp - 0x48], r12
jne 0x18005c185
cmp eax, 0x80000005
je 0x18005c17f
cmp eax, 0xc0000023
jne 0x18005c3bd
mov edx, dword [rdi]
add edx, edx
jmp 0x18005c12e
mov dword [rbx + 0x454], r12d
mov byte [rbx + 0x468], 1
mov edx, dword [rbx + 0x454]
or qword [rbx + 0x430], 0xffffffffffffffff
mov eax, edx
add rax, qword [rbx + 0x460]
mov byte [rbx + 0x469], r12b
cmp dword [rax + 4], 4
jb 0x18005c1d1
cmp word [rax + 0x1a], 0x3a
jne 0x18005c1d1
mov ecx, dword [rax]
test ecx, ecx
je 0x18005c3bd
lea eax, [rcx + rdx]
mov dword [rbx + 0x454], eax
mov dword [rbx + 8], 1
jmp 0x18005c3bd
lea rsi, [rdx + 0x430]
mov rax, qword [rsi]
cmp rax, 0xffffffffffffffff
jne 0x18005c3ae
mov edi, dword [rdx + 0x454]
lea r9, [rbp - 0x40]
add rdi, qword [rdx + 0x460]
lea r8, [rbp - 0x30]
mov qword [rdx + 8], r12
xorps xmm0, xmm0
mov rcx, rsi
movzx eax, word [rdi + 4]
lea r15, [rdi + 0x18]
mov word [rbp - 0x50], ax
mov word [rbp - 0x4e], ax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x20], rax
mov eax, dword [rdx + 0x46c]
mov edx, 0x100081
and eax, 0x400
mov qword [rbp - 0x48], r15
shl eax, 0xb
or eax, 0x4020
mov dword [rbp - 0x30], 0x30
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 7
mov qword [rbp - 0x28], r14
mov dword [rbp - 0x18], 0x40
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
test eax, eax
jns 0x18005c294
mov eax, dword [rdi]
add dword [rbx + 0x454], eax
cmp dword [rdi], r12d
je 0x18005c2b5
mov dword [rbx + 8], 1
mov byte [rbx + 0x46a], 1
jmp 0x18005c2b5
mov rcx, qword [rsi]
or r9d, 0xffffffff
xor r8d, r8d
mov dword [rsp + 0x20], r9d
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_LockFile]
nop dword [rax + rax]
test eax, eax
jne 0x18005c2cd
mov ecx, 0x20
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
nop dword [rax + rax]
xor eax, eax
jmp 0x18005c3d6
mov dword [rbx + 4], r12d
lea rcx, [rbx + 0x14]
mov eax, dword [rdi + 4]
mov rdx, r15
mov dword [rbx + 0x10], eax
mov eax, dword [rdi + 4]
add eax, 0x14
mov dword [rbx + 0x42c], eax
mov r8d, dword [rdi + 4]
call sub.ntdll.dll_memcpy
mov eax, dword [rdi]
test eax, eax
je 0x18005c306
add dword [rbx + 0x454], eax
mov byte [rbx + 0x46a], 1
cmp dword [rdi + 4], 0xc
jbe 0x18005c3bd
mov eax, dword [rdi + 4]
lea rdx, str.:_DATA
sub rax, 0xc
mov r8d, 6
shr rax, 1
add rax, 0xc
lea rcx, [rdi + rax*2]
call qword [sym.imp.ntdll.dll__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x18005c3bd
mov rcx, qword [rsi]
lea edi, [rax + 8]
mov r9d, edi
mov dword [rbx], 4
lea r8, [rbp + 0x38]
mov qword [rbx + 0x448], r12
lea edx, [rax + 9]
mov byte [rbx + 0x450], r12b
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_GetFileInformationByHandleEx]
nop dword [rax + rax]
test eax, eax
mov ecx, r12d
cmovne ecx, dword [rbp + 0x38]
bt ecx, 9
jae 0x18005c396
mov rcx, qword [rsi]
mov rdx, rbx
call fcn.18005bbd0
test eax, eax
je 0x18005c396
mov qword [rbx + 8], r12
mov dword [rbx + 4], edi
jmp 0x18005c3bd
mov rcx, qword [rsi]
lea rdx, [rbx + 0xc]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
nop dword [rax + rax]
mov dword [rbx + 8], eax
jmp 0x18005c3bd
mov ecx, dword [rdx + 0x42c]
cmp qword [rdx + 0x420], rcx
jge 0x18005c3c4
mov eax, 1
jmp 0x18005c3d6
cmp dword [rdx], 4
je 0x18005c3ce
cmp dword [rdx], 9
jne 0x18005c3bd
mov rcx, rax
call fcn.18005ccb4
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret