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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x9c8
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x9b0], rax
mov r12, r9
mov qword [rsp + 0x60], r8
mov rbp, rdx
mov qword [rsp + 0x58], rcx
mov r13, qword [rsp + 0xa30]
mov word [rsp + reloc.MFC80U.DLL_Ordinal_1952], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_1954]
call sub.ntdll.dll_memset
call fcn.140049400
mov r14, rax
call fcn.1400494c0
mov r15, rax
test r14, r14
jne 0x1400c33b5
xor eax, eax
jmp 0x1400c392a
mov word [rsp + Ordinal_1701], 0
xor edx, edx
mov r8d, 0xfe
lea rcx, [rsp + 0x6a2]
call sub.ntdll.dll_memset
mov r11, qword [r12]
mov rcx, r12
call qword [r11 + 0x28]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x40]
mov rdi, rax
mov rsi, qword [r14]
mov rdx, qword [r12]
mov rcx, r12
call qword [rdx + 0x38]
mov rbx, rax
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x50]
mov r9d, eax
mov qword [rsp + 0x20], rbx
mov r8d, 0x80
lea rdx, [rsp + 0x6a0]
mov rcx, r14
call qword [rsi + 0x58]
test eax, eax
je 0x1400c392a
lea r8, [rsp + 0x6a0]
lea rdx, str._Volume_sEFIMicrosoftBootBCD
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_1952]
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_1952]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
jne 0x1400c34a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_1952]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1400c349c
xor eax, eax
jmp 0x1400c392a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_512
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_672]
call sub.ntdll.dll_memset
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_512
lea rcx, [rsp + 0xa0]
call sub.ntdll.dll_memset
test rbp, rbp
je 0x1400c3575
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x28]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x40]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x50]
mov ebx, eax
mov esi, 1
mov byte [rsp + Ordinal_1189], dil
xor edx, edx
mov r8d, Ordinal_512
lea rcx, [rsp + 0x4a1]
call sub.ntdll.dll_memset
mov ecx, ebx
call fcn.140114fb0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400c356e
mov r9, rsi
mov r8, rsi
lea rdx, [rsp + 0x4a0]
mov rcx, rax
call fcn.1400bca90
test eax, eax
jne 0x1400c3546
mov esi, edi
jmp 0x1400c3561
mov r8d, reloc.MFC80U.DLL_Ordinal_512
lea rdx, [rsp + 0x4a0]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_672]
call sub.ntdll.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x1400c3575
xor eax, eax
jmp 0x1400c392a
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x28]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x40]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x50]
mov ebx, eax
mov esi, 1
mov byte [rsp + Ordinal_1189], dil
xor edx, edx
mov r8d, Ordinal_512
lea rcx, [rsp + 0x4a1]
call sub.ntdll.dll_memset
mov ecx, ebx
call fcn.140114fb0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400c3928
mov r9, rsi
mov r8, rsi
lea rdx, [rsp + 0x4a0]
mov rcx, rax
call fcn.1400bca90
test eax, eax
jne 0x1400c35e7
mov esi, edi
jmp 0x1400c3602
mov r8d, reloc.MFC80U.DLL_Ordinal_512
lea rdx, [rsp + 0x4a0]
lea rcx, [rsp + 0xa0]
call sub.ntdll.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1400c3928
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x20]
test eax, eax
cmovne rdi, r13
lea rcx, [rsp + 0x50]
call fcn.14005b260
nop
test rbp, rbp
je 0x1400c379d
mov rdx, rdi
mov rcx, qword [rsp + 0x58]
call fcn.1400a1730
test eax, eax
je 0x1400c3701
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x30]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x50]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.14009e6c0
nop
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x30]
mov rbp, rax
mov rdx, qword [r13]
mov rcx, r13
call qword [rdx + 0xb0]
lea rsi, [rax + 0x78]
mov rdx, qword [r12]
mov rcx, r12
call qword [rdx + 0xb0]
lea rdi, [rax + 0x78]
mov rdx, qword [r12]
mov rcx, r12
call qword [rdx + 0x38]
mov rbx, rax
mov rdx, qword [rbp]
mov rcx, rbp
call qword [rdx + 0x50]
mov edx, eax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xd8]
mov r8, rbx
lea rcx, [rsp + 0x68]
call fcn.14009dfe0
test eax, eax
jne 0x1400c36f2
lea rcx, [rsp + 0x68]
call fcn.140050540
nop
lea rcx, [rsp + 0x50]
call fcn.140050540
xor eax, eax
jmp 0x1400c392a
lea rcx, [rsp + 0x68]
call fcn.140050540
jmp 0x1400c3917
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0xb0]
mov rsi, rax
mov rdx, qword [r12]
mov rcx, r12
call qword [rdx + 0xb0]
mov rdi, rax
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xb0]
mov rbx, rax
mov rdx, qword [rbp]
mov rcx, rbp
call qword [rdx + 0xb0]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0xd8]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2d8]
lea r8, str.AomeiRegNk
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_1952]
lea rcx, [rsp + 0x50]
call fcn.14005cdb0
test eax, eax
jne 0x1400c3917
lea rcx, [rsp + 0x50]
call fcn.140050540
xor eax, eax
jmp 0x1400c392a
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x30]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x50]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.14009e6c0
nop
mov word [rsp + Ordinal_1193], 0
xor edx, edx
mov r8d, 0xfe
lea rcx, [rsp + 0x4a2]
call sub.ntdll.dll_memset
lea r8, [rsp + 0x6a0]
lea rdx, str.__Volume_s
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.MSVCR80.dll__swprintf]
mov rdx, rdi
mov rcx, qword [rsp + 0x58]
call fcn.1400a1730
test eax, eax
je 0x1400c38ad
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x30]
mov rbp, rax
mov rdx, qword [r13]
mov rcx, r13
call qword [rdx + 0xb0]
lea rsi, [rax + 0x78]
mov rdx, qword [r12]
mov rcx, r12
call qword [rdx + 0xb0]
lea rdi, [rax + 0x78]
mov rdx, qword [r12]
mov rcx, r12
call qword [rdx + 0x38]
mov rbx, rax
mov rdx, qword [rbp]
mov rcx, rbp
call qword [rdx + 0x50]
mov edx, eax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xd8]
mov r8, rbx
lea rcx, [rsp + 0x68]
call fcn.14009dfe0
test eax, eax
jne 0x1400c390c
call fcn.140049470
mov r8, qword [rax]
lea rdx, str._s:_UpdateBcd2GptForWin8_failed._n
mov rcx, rax
call qword [r8 + 0x10]
nop
lea rcx, [rsp + 0x68]
call fcn.140050540
nop
lea rcx, [rsp + 0x50]
call fcn.140050540
xor eax, eax
jmp 0x1400c392a
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0xb0]
mov rbx, rax
mov rdx, qword [r12]
mov rcx, r12
call qword [rdx + 0xb0]
lea rcx, [rsp + 0xd8]
mov qword [rsp + 0x20], rcx
lea r9, [rbx + 0x78]
lea r8, [rax + 0x78]
lea rdx, [rsp + 0x4a0]
lea rcx, [rsp + 0x68]
call fcn.14009f9f0
test eax, eax
jne 0x1400c390c
call fcn.140049470
mov r8, qword [rax]
lea rdx, str.update_bcd_failed._n
mov rcx, rax
call qword [r8 + 0x10]
nop
lea rcx, [rsp + 0x68]
call fcn.140050540
nop
lea rcx, [rsp + 0x50]
call fcn.140050540
mov eax, 1
jmp 0x1400c392a
xor eax, eax
mov rcx, qword [rsp + 0x9b0]
xor rcx, rsp
call fcn.140161080
add rsp, 0x9c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret