Function at 0x14004e374
Capabilities:
Set current directory

Disassembly:
mov rax, rsp
mov byte [rax + 0x10], dl
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x430
mov qword [rax - 0x3c8], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
cmp byte [rcx], r12b
jne 0x14004eada
test r8b, r8b
je 0x14004e409
call fcn.140047e70
lea rdx, [rsp + 0xb0]
mov rcx, rax
call fcn.14004b9a8
nop
mov dword [rsp + 0x40], 1
lea rdx, [rsp + 0xa0]
mov rcx, qword [rax]
call fcn.14004b5f8
nop
mov dword [rsp + 0x40], 3
mov rcx, qword [rax]
call fcn.140047e78
test al, al
mov r14b, r12b
jne 0x14004e40c
mov r14b, 1
mov ecx, dword [rsp + 0x40]
test cl, 2
je 0x14004e454
and dword [rsp + 0x40], 0xfffffffd
mov rdi, qword [rsp + 0xa8]
test rdi, rdi
je 0x14004e454
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14004e458
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14004e458
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14004e458
or rbx, 0xffffffffffffffff
mov ecx, dword [rsp + 0x40]
test cl, 1
je 0x14004e49a
and dword [rsp + 0x40], 0xfffffffe
mov rdi, qword [rsp + 0xb8]
test rdi, rdi
je 0x14004e49a
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14004e49a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14004e49a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, reloc.Cabinet.dll_FCIDestroy
test r14b, r14b
je 0x14004eac0
lea r9, str.Orchestration::Initialize___Initializing_Orchestration
mov ecx, 0x34d4db
lea r8d, [rdx + 0x24]
call sub.Mso20Win32Client.dll_Ordinal_807
call fcn.140047e70
lea rdx, [rsp + 0xd0]
mov rcx, rax
call fcn.14004b9a8
nop
lea rdx, [rsp + 0xc0]
mov rcx, qword [rax]
call fcn.14004b5f8
nop
mov rcx, qword [rax]
call fcn.140047e78
mov r14b, al
mov rdi, qword [rsp + 0xc8]
test rdi, rdi
je 0x14004e524
mov edx, ebx
lock xadd dword [rdi + 8], edx
add edx, ebx
jne 0x14004e524
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14004e524
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdi, qword [rsp + 0xd8]
test rdi, rdi
je 0x14004e558
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14004e558
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14004e558
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r14b, r14b
je 0x14004e566
lea rcx, [rsi + 0x28]
call fcn.1401201a4
call fcn.140047e70
lea rdx, [rsp + 0xe0]
mov rcx, rax
call fcn.14001a340
nop
lea rdx, [rsp + 0x1b0]
mov rcx, qword [rax]
call fcn.1400fa6a0
cmp qword [rax + 0x18], 8
jb 0x14004e596
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1b0]
call fcn.140007a08
nop
mov rdi, qword [rsp + 0xe8]
test rdi, rdi
je 0x14004e5e6
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14004e5e6
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14004e5e6
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov r15d, eax
test eax, eax
jne 0x14004e83f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
lea r8, [rsp + 0x48]
lea rdx, str.Failed_to_acquire_Crypto_context._Last_error:__d
lea rcx, [rsp + 0x1d0]
call fcn.14001ac4c
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x14004e643
mov rdi, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c], eax
mov eax, 7
mov qword [rsp + 0x1a8], rax
mov qword [rsp + 0x1a0], r12
mov word [rsp + 0x190], r12w
mov qword [rsp + 0x188], rax
mov qword [rsp + 0x180], r12
mov word [rsp + 0x170], r12w
mov qword [rsp + 0x168], rax
mov qword [rsp + 0x160], r12
mov word [rsp + 0x150], r12w
mov qword [rsp + 0x148], rax
mov qword [rsp + 0x140], r12
mov word [rsp + 0x130], r12w
lea rax, [rsp + 0x190]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x170]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x150]
lea r8, [rsp + 0x130]
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x300]
call fcn.14000edf8
mov r14, rax
lea rcx, [rsp + 0x270]
call fcn.1400f7cb0
lea rcx, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rsp + 0x60], rcx
lea rcx, str.ContextData
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea r9, str.Orchestration::Initialize
mov edx, 0x3ae
mov ecx, 0x645102
mov r8d, 0xa
call fcn.14000b648
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x2e0]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x2c0]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x298]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x278]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x370]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x350]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x330]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x310]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x130]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x150]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x170]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x190]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1d0]
call fcn.140007a08
call fcn.140047e70
lea rdx, [rsp + 0xf0]
mov rcx, rax
call fcn.14001a340
nop
lea rdx, [rsp + 0x1f0]
mov rcx, qword [rax]
call fcn.1400fa76c
nop
lea r14, [rsi + 0x28]
mov rdx, rax
mov rcx, r14
call fcn.140120fd0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1f0]
call fcn.140007a08
nop
mov rdi, qword [rsp + 0xf8]
test rdi, rdi
je 0x14004e8bd
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14004e8bd
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14004e8bd
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r15d, r15d
je 0x14004e8cf
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea rdx, [rsi + 8]
mov rcx, r14
call fcn.1401227d4
call fcn.14009a348
test al, al
jne 0x14004e98c
call fcn.140047e70
lea rdx, [rsp + 0x120]
mov rcx, rax
call fcn.14004b9a8
nop
or dword [rsp + 0x40], 4
lea rdx, [rsp + 0x110]
mov rcx, qword [rax]
call fcn.14004b5f8
nop
or dword [rsp + 0x40], 8
mov rcx, qword [rax]
call fcn.140047e78
test al, al
jne 0x14004e98c
call fcn.140047e70
lea rdx, [rsp + 0x100]
mov rcx, rax
call fcn.14001a340
nop
or dword [rsp + 0x40], 0x10
lea rdx, [rsp + 0x210]
mov rcx, qword [rax]
call fcn.1400fa82c
nop
or dword [rsp + 0x40], 0x20
lea rdx, [0x140260038]
cmp qword [0x140260050], 8
cmovae rdx, qword [0x140260038]
cmp qword [rax + 0x18], 8
jb 0x14004e977
mov rax, qword [rax]
xor r9d, r9d
mov r8, rbx
mov rcx, rax
call fcn.140006a68
test eax, eax
mov r14b, 1
je 0x14004e98f
mov r14b, r12b
mov ecx, dword [rsp + 0x40]
test cl, 0x20
je 0x14004e9b0
and dword [rsp + 0x40], 0xffffffdf
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x210]
call fcn.140007a08
nop
mov ecx, dword [rsp + 0x40]
test cl, 0x10
je 0x14004e9f3
and dword [rsp + 0x40], 0xffffffef
mov rdi, qword [rsp + 0x108]
test rdi, rdi
je 0x14004e9f3
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14004e9f3
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14004e9f3
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov ecx, dword [rsp + 0x40]
test cl, 8
je 0x14004ea36
and dword [rsp + 0x40], 0xfffffff7
mov rdi, qword [rsp + 0x118]
test rdi, rdi
je 0x14004ea36
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14004ea36
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14004ea36
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
test byte [rsp + 0x40], 4
je 0x14004ea71
mov rdi, qword [rsp + 0x128]
test rdi, rdi
je 0x14004ea71
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14004ea71
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14004ea71
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r14b, r14b
je 0x14004eaaa
lea rcx, [rsp + 0x44]
call fcn.140099480
test al, al
je 0x14004eaaa
lea r9, str.Orchestration::Initialize___Initializing_RSOD_during_Orchestration
mov edx, reloc.Cabinet.dll_FCIDestroy
mov ecx, 0x45025d
lea r8d, [rdx + 1]
call sub.Mso20Win32Client.dll_Ordinal_807
xor edx, edx
lea rcx, [rsp + 0x44]
call fcn.14009a170
mov byte [rsi], 1
lea r9, str.Orchestration::Initialize___Done_Initializing_Orchestration
mov edx, reloc.Cabinet.dll_FCIDestroy
mov ecx, 0x34d4dc
jmp 0x14004eacc
lea r9, str.Orchestration::Initialize___Skipping_Orchestration_because_no_Active_Config
mov ecx, 0x60a4d8
mov r8d, 0x64
call sub.Mso20Win32Client.dll_Ordinal_807
nop
jmp 0x14004eaf4
lea r9, str.Orchestration::Initialize___Orchestration_has_already_been_initialized.
mov edx, reloc.Cabinet.dll_FCIDestroy
mov ecx, 0x35410c
lea r8d, [rdx + 0x56]
call sub.Mso20Win32Client.dll_Ordinal_807
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x470]
add rsp, 0x430
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret