Function at 0x14000a998
Capabilities:
Create directory

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x288]
sub rsp, 0x388
mov rax, qword [0x140036068]
xor rax, rsp
mov qword [rbp + 0x270], rax
xor r12d, r12d
mov qword [rsp + 0x78], r9
mov dword [rsp + 0x44], r8d
mov r15, r9
mov qword [rsp + 0x60], rdx
mov esi, r8d
mov dword [rsp + 0x54], r12d
mov r13, rdx
mov dword [rsp + 0x50], r12d
mov edi, ecx
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x4c], r12d
test cl, 0x10
je 0x14000aa0d
mov eax, ecx
and al, 0x40
neg al
sbb ecx, ecx
not ecx
and ecx, 3
call fcn.14000b0c0
mov ebx, 0x104
lea rcx, [rbp + 0x60]
mov edx, ebx
mov r8, r13
call qword [sym.imp.msvcrt.dll_wcscpy_s]
lea r8, str.Logs_bfsvc_repair.log
mov edx, ebx
lea rcx, [rbp + 0x60]
call qword [sym.imp.msvcrt.dll_wcscat_s]
cmp dword [0x140036780], r12d
mov r14d, 1
jne 0x14000aabb
lea rax, [rbp + 0x60]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x14000aa4b
sub rbx, r14
je 0x14000aabb
mov eax, 0x5c
cmp word [rbp + rbx*2 + 0x60], ax
je 0x14000aa6b
sub rbx, r14
jne 0x14000aa5f
test rbx, rbx
je 0x14000aabb
xor edx, edx
mov word [rbp + rbx*2 + 0x60], r12w
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 0x5c
lea r8, [0x14002b56c]
lea rdx, [rbp + 0x60]
mov word [rbp + rbx*2 + 0x60], ax
lea rcx, [0x140036790]
call qword [sym.imp.msvcrt.dll__wfopen_s]
mov eax, dword [0x140036780]
cmp qword [0x140036790], r12
cmovne eax, r14d
mov dword [0x140036780], eax
test r15, r15
mov dword [rsp + 0x30], r14d
lea rdx, str.True
mov r8d, edi
lea rcx, str.None
mov edi, 2
cmovne rcx, r15
lea rax, str.False
mov qword [rsp + 0x28], rcx
test esi, esi
mov r9, r13
mov ecx, edi
cmovne rax, rdx
lea rdx, str.BfsRepairSystemPartition_flags_0x_08x___system_root:__ws__online:__ws__boot_files:__ws__caller:__d
mov qword [rsp + 0x20], rax
call fcn.14000b134
lea rdx, [rsp + 0x54]
call fcn.14000a654
cmp dword [rsp + 0x54], r12d
lea r8, [rbp - 0x78]
mov r14d, eax
mov dword [rsp + 0x40], eax
mov eax, r12d
mov qword [rbp - 0x78], r12
cmovne eax, r14d
mov qword [rbp - 0x80], r12
mov rbx, r12
mov dword [rsp + 0x5c], eax
xor ecx, ecx
mov qword [rsp + 0x70], rbx
mov edx, edi
mov esi, r12d
call fcn.1400118b4
mov r12, qword [rbp - 0x78]
mov edi, eax
test eax, eax
js 0x14000ac89
lea r8, [rbp - 0x80]
mov rcx, r12
lea rdx, [0x14002c7f0]
call fcn.14000ee38
mov r13, qword [rbp - 0x80]
xor ecx, ecx
mov edi, eax
test eax, eax
js 0x14000ac77
mov r14d, ecx
mov dword [rsp + 0x68], 0x10
lea rax, [rsp + 0x68]
mov rcx, r13
lea r9, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov edx, 0x23000003
call fcn.14000f738
mov edi, eax
test eax, eax
js 0x14000abba
lea rdx, [rbp - 0x60]
mov rcx, r12
call fcn.14000a0d0
mov r14d, eax
test eax, eax
jne 0x14000ac42
lea r9, [rsp + 0x6c]
mov edx, 0x24000001
lea r8, [rsp + 0x70]
mov rcx, r13
call fcn.1400059fc
xor ecx, ecx
mov edi, eax
test eax, eax
js 0x14000ac47
mov ebx, dword [rsp + 0x6c]
test bl, 0xf
jne 0x14000ac47
mov r15, qword [rsp + 0x70]
shr ebx, 4
mov dword [rsp + 0x68], 0x10
test ebx, ebx
je 0x14000ac1a
mov edx, esi
mov rcx, r12
shl rdx, 4
add rdx, r15
call fcn.14000a0d0
mov r14d, eax
test eax, eax
jne 0x14000ac14
inc esi
cmp esi, ebx
jb 0x14000abf6
mov r13, qword [rbp - 0x80]
xor ecx, ecx
test r15, r15
je 0x14000ac35
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
mov r15, qword [rsp + 0x78]
mov rbx, rcx
mov qword [rsp + 0x70], rcx
mov esi, r14d
jmp 0x14000ac4c
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x14000ac72
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
test eax, eax
cmovne rbx, rcx
mov qword [rsp + 0x70], rbx
mov r14d, dword [rsp + 0x40]
test r13, r13
je 0x14000ac84
mov rcx, r13
call fcn.14000f120
mov r13, qword [rsp + 0x60]
test r12, r12
je 0x14000ac96
mov rcx, r12
call fcn.140011b08
mov ebx, 4
test esi, esi
jne 0x14000ad0e
xor esi, esi
test edi, edi
jns 0x14000acb5
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.BfsRepair:_BCD_failed_validation_check_after_file_system_repair.
mov dword [rsp + 0x50], 1
mov ecx, 3
call fcn.14000b134
neg dword [rsp + 0x44]
mov rcx, r13
sbb edx, edx
xor r9d, r9d
and edx, 0x8000
xor r8d, r8d
add edx, 0x5144
call fcn.14000a1a4
test eax, eax
jne 0x14000ad17
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.BfsRepair:_Failed_to_repair_BCD_store._Error:__08x
mov ecx, ebx
mov r8d, eax
mov r12d, eax
call fcn.14000b134
jmp 0x14000ad1a
mov r12d, dword [rsp + 0x48]
xor esi, esi
jmp 0x14000ad1a
mov r12d, esi
test r15, r15
je 0x14000ad52
mov edx, 0x10c
mov rcx, r15
mov r13d, 1
call fcn.140002fac
test eax, eax
jne 0x14000ad5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.BfsRepair:_Failed_to_service_boot_files._Error:__08x
mov ecx, ebx
mov r8d, eax
mov r15d, eax
call fcn.14000b134
jmp 0x14000ad61
mov r15d, dword [rsp + 0x4c]
mov r13d, r15d
jmp 0x14000ad61
mov r15d, dword [rsp + 0x4c]
mov rcx, qword [0x140036028]
lea r9, [0x140036040]
xorps xmm1, xmm1
lea r8, [0x140036020]
lea rdx, [0x140001010]
movups xmm0, xmmword [rcx - 0x10]
lea rcx, [rbp - 0x50]
movdqu xmmword [0x140036048], xmm1
movdqu xmmword [rbp - 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_EventRegister]
mov ebx, eax
test eax, eax
je 0x14000adb1
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000ae28
mov rdi, qword [0x140036028]
lea r8, [rsp + 0x60]
lea rdx, str.api_ms_win_eventing_provider_l1_1_0
xor ecx, ecx
movzx esi, word [rdi]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x14000adeb
lea r8, [rsp + 0x60]
xor ecx, ecx
lea rdx, str.advapi32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x14000ae32
mov rcx, qword [rsp + 0x60]
lea rdx, str.EventSetInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000ae1b
mov rcx, qword [0x140036040]
mov r8, rdi
movzx r9d, si
mov edx, 2
call qword [vtable._SH_.0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test ebx, ebx
js 0x14000afc7
jmp 0x14000ae34
xor esi, esi
cmp dword [0x140036020], 5
jbe 0x14000afad
movabs rdx, 0x800000000000
test qword [0x140036030], rdx
je 0x14000afad
mov rax, qword [0x140036038]
and rax, rdx
cmp rax, qword [0x140036038]
jne 0x14000afad
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x58]
mov qword [rbp - 0x20], rax
lea rax, [rsp + 0x4c]
mov qword [rbp - 0x10], rax
lea rax, [rsp + 0x5c]
mov qword [rbp], rax
lea rax, [rsp + 0x50]
mov qword [rbp + 0x10], rax
lea rax, [rsp + 0x48]
mov qword [rbp + 0x20], rax
lea rax, [rsp + 0x44]
mov qword [rbp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rbp + 0x50], rax
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x44], r13d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x78], r14d
mov qword [rbp - 0x18], 4
mov qword [rbp - 8], 4
mov qword [rbp + 8], 4
mov qword [rbp + 0x18], 4
mov qword [rbp + 0x28], 4
mov qword [rbp + 0x38], 4
mov qword [rbp + 0x48], 4
mov qword [rbp + 0x58], 4
movzx eax, word [0x1400323ea]
lea rcx, str.ETW0
mov dword [rbp - 0x6c], eax
xor r9d, r9d
mov rax, qword [0x140036028]
xor r8d, r8d
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x68], rdx
lea rdx, [rbp - 0x70]
mov dword [rbp - 0x70], 0xb000000
movzx eax, word [rax]
mov dword [rbp - 0x38], eax
lea rax, [0x1400323f4]
mov qword [rbp - 0x30], rax
lea rax, [0x1400324cd]
sub eax, ecx
mov dword [rbp - 0x34], 2
mov rcx, qword [0x140036040]
mov dword [rbp - 0x28], 0x8f
mov dword [rbp - 0x24], 1
mov dword [rsp + 0x6c], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xa
call qword [sym.imp.ADVAPI32.dll_EventWriteTransfer]
mov rcx, qword [0x140036040]
call qword [sym.imp.ADVAPI32.dll_EventUnregister]
mov qword [0x140036040], rsi
mov dword [0x140036020], esi
cmp dword [0x140036780], esi
je 0x14000afe9
mov rcx, qword [0x140036790]
call qword [sym.imp.msvcrt.dll_fclose]
mov qword [0x140036790], rsi
mov dword [0x140036780], esi
call fcn.14000b068
test r14d, r14d
je 0x14000b000
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000b005
mov eax, 1
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.14001fbe0
add rsp, 0x388
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret