Function at 0x140004480
Capabilities:
Create directory
Set current directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x280
mov rax, qword [0x1400491f8]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rax, qword gs:[0x58]
mov rbx, rdx
mov rsi, qword [0x140049860]
mov edx, 8
mov rcx, qword [rax]
lea rax, str.CTieringEngineLib::Initialize
mov qword [rdx + rcx], rax
lea rcx, [rsp + 0x50]
call fcn.140008b4c
mov rcx, qword [0x140049138]
lea r14, [0x140049138]
lea r13, [0x140040e60]
mov r12d, 1
cmp rcx, r14
je 0x140004527
test byte [rcx + 0x1c], r12b
je 0x140004527
cmp byte [rcx + 0x19], 4
jb 0x140004527
mov rcx, qword [rcx + 0x10]
lea edx, [r12 + 9]
mov r9, rsi
mov r8, r13
call fcn.1400041dc
mov r8, qword [0x140049c88]
lea rax, str.Storage_Tiers_Optimization
mov qword [rsi + 0xa0], rax
lea rcx, [0x1400087a0]
mov qword [rsi + 0x98], rbx
lea rax, str.MicrosoftWindowsStorage_Tiers_Management
mov qword [rsi + 0xa8], rax
mov rdx, rsi
movabs rax, 0x1111111111111111
mov qword [0x1400498b0], rax
mov qword [0x1400498b8], rax
movabs rax, 0x2222222222222222
mov qword [0x1400498a0], rax
mov qword [0x1400498a8], rax
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CreateThreadpoolWait]
xor r15d, r15d
mov rdi, rax
test rax, rax
jne 0x1400045f9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
mov dword [rsp + 0x58], esi
mov rcx, qword [0x140049138]
cmp rcx, r14
je 0x140004bf7
test byte [rcx + 0x1c], r12b
je 0x140004bf7
cmp byte [rcx + 0x19], 2
jb 0x140004bf7
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0xb]
mov r9d, esi
mov r8, r13
call fcn.1400014d0
jmp 0x140004bf7
xor r9d, r9d
mov r8d, r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_2_1.dll_CreateSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x14000465c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
mov dword [rsp + 0x58], esi
mov rcx, qword [0x140049138]
cmp rcx, r14
je 0x140004bdb
test byte [rcx + 0x1c], r12b
je 0x140004bdb
cmp byte [rcx + 0x19], 2
jb 0x140004bdb
lea edx, [rbx + 0xc]
jmp 0x1400046c4
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rsi + 0xc8], rax
test rax, rax
jne 0x1400046d8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
mov dword [rsp + 0x58], esi
mov rcx, qword [0x140049138]
cmp rcx, r14
je 0x140004bdb
test byte [rcx + 0x1c], r12b
je 0x140004bdb
cmp byte [rcx + 0x19], 2
jb 0x140004bdb
mov edx, 0xd
mov rcx, qword [rcx + 0x10]
mov r9d, esi
mov r8, r13
call fcn.1400014d0
jmp 0x140004bdb
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemWindowsDirectoryW]
test eax, eax
jne 0x140004748
mov rax, qword [0x140049138]
cmp rax, r14
je 0x1400048e7
test byte [rax + 0x1c], r12b
je 0x1400048e7
cmp byte [rax + 0x19], 3
jb 0x1400048e7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x140049138]
mov edx, 0xe
mov rcx, qword [rcx + 0x10]
mov r8, r13
mov r9d, eax
call fcn.1400014d0
jmp 0x1400048e7
mov rcx, qword [0x140049138]
cmp rcx, r14
je 0x140004776
test byte [rcx + 0x1c], r12b
je 0x140004776
cmp byte [rcx + 0x19], 4
jb 0x140004776
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x60]
mov edx, 0xf
mov r8, r13
call fcn.140003e9c
cmp word [rsp + 0x60], r15w
je 0x1400048e7
cmp word [rsp + 0x62], 0x3a
jne 0x1400048e7
cmp word [rsp + 0x64], 0x5c
jne 0x1400048e7
movaps xmm0, xmmword [str.System_Volume_InformationHeat_]
lea rcx, [rsp + 0x60]
movaps xmm1, xmmword [0x1400406d0]
mov eax, dword [0x1400406f8]
movups xmmword [rsp + 0x66], xmm0
mov dword [rbp - 0x62], eax
movaps xmm0, xmmword [0x1400406e0]
movzx eax, word [0x1400406fc]
movups xmmword [rsp + 0x76], xmm1
mov word [rbp - 0x5e], ax
movsd xmm1, qword [0x1400406f0]
movups xmmword [rbp - 0x7a], xmm0
movsd qword [rbp - 0x6a], xmm1
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x1400048b9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, r12d
jbe 0x14000482d
mov rcx, qword [0x140049138]
cmp rcx, r14
je 0x1400048e7
test byte [rcx + 0x1c], r12b
je 0x1400048e7
cmp byte [rcx + 0x19], 3
jb 0x1400048e7
mov edx, 0x12
jmp 0x140004734
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
je 0x140004874
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetCurrentDirectoryW]
test eax, eax
je 0x140004874
mov rcx, qword [0x140049138]
cmp rcx, r14
je 0x1400048e7
test byte [rcx + 0x1c], r12b
je 0x1400048e7
cmp byte [rcx + 0x19], 5
jb 0x1400048e7
mov edx, 0x11
jmp 0x1400048d6
mov rax, qword [0x140049138]
cmp rax, r14
je 0x1400048e7
test byte [rax + 0x1c], r12b
je 0x1400048e7
cmp byte [rax + 0x19], 3
jb 0x1400048e7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x140049138]
mov edx, 0x10
mov r9d, eax
mov r8, r13
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.140003d90
jmp 0x1400048e7
mov rcx, qword [0x140049138]
cmp rcx, r14
je 0x1400048e7
test byte [rcx + 0x1c], r12b
je 0x1400048e7
cmp byte [rcx + 0x19], 5
jb 0x1400048e7
mov edx, 0x13
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x60]
mov r8, r13
call fcn.140003e9c
mov qword [rsp + 0x40], r15
lea rdx, str.SystemCurrentControlSetServicesTieringEngineServiceParameters
mov rax, rbx
xor r9d, r9d
mov qword [rsi + 0xb8], rax
xor r8d, r8d
mov rax, rdi
mov rcx, 0xffffffff80000002
mov qword [rsi + 0x188], rax
mov rbx, r15
lea rax, [rsi + 0x80]
mov rdi, r15
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
je 0x14000497f
mov rcx, qword [0x140049138]
cmp rcx, r14
je 0x140004bd3
test byte [rcx + 0x1c], r12b
je 0x140004bd3
cmp byte [rcx + 0x19], 3
jb 0x140004bd3
mov edx, 0x14
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.1400014d0
jmp 0x140004bd3
mov rcx, rsi
call fcn.140006f00
test eax, eax
je 0x1400049b7
mov rcx, qword [0x140049138]
cmp rcx, r14
je 0x1400049b7
test byte [rcx + 0x1c], r12b
je 0x1400049b7
cmp byte [rcx + 0x19], 3
jb 0x1400049b7
mov rcx, qword [rcx + 0x10]
mov edx, 0x15
mov r9d, eax
mov r8, r13
call fcn.1400014d0
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rsi + 0x78], rax
test rax, rax
jne 0x140004a0c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.140003cb8
mov rcx, qword [0x140049138]
cmp rcx, r14
je 0x140004bd3
test byte [rcx + 0x1c], r12b
je 0x140004bd3
cmp byte [rcx + 0x19], 3
jb 0x140004bd3
mov edx, 0x16
jmp 0x14000496b
lea r14, [rsi + 0x10]
xor ecx, ecx
mov dword [r14], 3
mov qword [r14 + 8], r15
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], r15
mov qword [r14 + 0x20], r15
mov qword [r14 + 0x28], r15
mov qword [r14 + 0x30], r15
mov dword [r14 + 0x38], r15d
mov dword [r14 + 0x3c], r12d
mov dword [r14 + 0x40], 0x48
mov byte [rsi + 0x58], r12b
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CreateThreadpool]
mov qword [rsi + 0x60], rax
test rax, rax
jne 0x140004a96
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.140003cb8
mov rcx, qword [0x140049138]
lea rdx, [0x140049138]
cmp rcx, rdx
je 0x140004bd3
test byte [rcx + 0x1c], r12b
je 0x140004bd3
cmp byte [rcx + 0x19], 3
jb 0x140004bd3
mov edx, 0x17
jmp 0x14000496b
mov edx, r12d
mov rcx, rax
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_SetThreadpoolThreadMaximum]
mov rcx, qword [rsi + 0x60]
mov edx, r12d
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_SetThreadpoolThreadMinimum]
test eax, eax
jne 0x140004af5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.140003cb8
mov rcx, qword [0x140049138]
lea rdx, [0x140049138]
cmp rcx, rdx
je 0x140004bd3
test byte [rcx + 0x1c], r12b
je 0x140004bd3
cmp byte [rcx + 0x19], 3
jb 0x140004bd3
mov edx, 0x18
jmp 0x14000496b
mov rax, qword [rsi + 0x60]
lea rcx, [0x140006dd0]
mov r8, r14
mov qword [rsi + 0x18], rax
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CreateThreadpoolWait]
mov qword [rsi + 0x70], rax
test rax, rax
jne 0x140004b5b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.140003cb8
mov rcx, qword [0x140049138]
lea rdx, [0x140049138]
cmp rcx, rdx
je 0x140004bd3
test byte [rcx + 0x1c], r12b
je 0x140004bd3
cmp byte [rcx + 0x19], 3
jb 0x140004bd3
mov edx, 0x19
jmp 0x14000496b
mov r8, r14
lea rcx, [0x140006d80]
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CreateThreadpoolWork]
mov qword [rsi + 0x68], rax
test rax, rax
jne 0x140004bad
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.140003cb8
mov rcx, qword [0x140049138]
lea rdx, [0x140049138]
cmp rcx, rdx
je 0x140004bd3
test byte [rcx + 0x1c], r12b
je 0x140004bd3
cmp byte [rcx + 0x19], 3
jb 0x140004bd3
mov edx, 0x1a
jmp 0x14000496b
xor r8d, r8d
lea rcx, [0x140040e70]
mov edx, 0x60c2052
call qword [sym.imp.ntdll.dll_WinSqmStartSession]
mov rcx, qword [rsi + 0x68]
mov qword [rsi + 0x190], rax
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_SubmitThreadpoolWork]
mov dword [rsp + 0x58], r15d
mov esi, r15d
test rbx, rbx
je 0x140004be9
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test rdi, rdi
je 0x140004bf7
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CloseThreadpoolWait]
lea rcx, [rsp + 0x50]
call fcn.1400089a4
mov eax, esi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14003d760
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret