Function at 0x140012464
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x190
mov rax, qword [0x14004ba88]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x4c], esi
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x54], esi
mov dword [rsp + 0x48], esi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
mov rcx, rax
mov edx, 0x10000
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadPriority]
nop dword [rax + rax]
test eax, eax
jne 0x14001250c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov dword [rsp + 0x20], 0x32
lea r9, str.OctBrokerSvc::ServiceManager::StartupOctagon
xor r8d, r8d
lea rdx, str.StartupOctagon:_SetThreadPriority_Begin_failed
mov ecx, ebx
call fcn.140013c08
mov eax, ebx
jmp 0x140012b8f
call fcn.140012fb8
or dword [rsp + 0x48], 0xc
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
mov r12d, 4
mov r9d, r12d
lea r8, [rsp + 0x48]
lea edx, [r12 + 0x5c]
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
nop dword [rax + rax]
lea ebx, [r12 - 3]
test eax, eax
jns 0x140012571
bts eax, 0x1c
mov dword [rsp + 0x20], 0x46
lea r9, str.OctBrokerSvc::ServiceManager::StartupOctagon
mov r8d, ebx
lea rdx, str.StartupOctagon:_ProcessEnableLogging_failed
mov ecx, eax
call fcn.140013c08
or dword [rsp + 0x4c], ebx
mov r8, r12
lea rdx, [rsp + 0x4c]
mov ecx, 2
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
or dword [rsp + 0x50], 3
mov r8, r12
lea rdx, [rsp + 0x50]
mov ecx, 3
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
or dword [rsp + 0x54], ebx
mov r8, r12
lea rdx, [rsp + 0x54]
mov ecx, 9
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
nop dword [rax + rax]
test eax, eax
jne 0x14001261b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x20], 0x66
lea r9, str.OctBrokerSvc::ServiceManager::StartupOctagon
mov r8d, ebx
lea rdx, str.StartupOctagon:_HeapEnableTerminationOnCorruption_failed
call fcn.140013c08
lea rcx, [r15 + 0x28]
call fcn.140018da4
mov edi, eax
test eax, eax
jns 0x140012651
mov dword [rsp + 0x20], 0x71
lea r9, str.OctBrokerSvc::ServiceManager::StartupOctagon
xor r8d, r8d
lea rdx, str.StartupOctagon:_CreateAgent_failed
mov ecx, eax
call fcn.140013c08
mov eax, edi
jmp 0x140012b8f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x80], xmm0
mov rcx, qword [r15 + 0x30]
test rcx, rcx
je 0x14001266e
lock add dword [rcx + 8], ebx
mov rcx, qword [r15 + 0x30]
mov rax, qword [r15 + 0x28]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rcx
lea rdi, [r15 + 0x18]
mov rdx, rdi
lea rcx, [rsp + 0x80]
call fcn.140018f40
mov r14d, eax
test eax, eax
jns 0x1400126c5
mov dword [rsp + 0x20], 0x7f
lea r9, str.OctBrokerSvc::ServiceManager::StartupOctagon
xor r8d, r8d
lea rdx, str.StartupOctagon:_CreateEngine_failed
mov ecx, eax
call fcn.140013c08
mov eax, r14d
jmp 0x140012b8f
mov r8d, dword [0x14004c9d8]
test r8b, 2
jne 0x1400126f1
lea rdx, [rsp + 0xc0]
lea rcx, [0x14004c9d8]
call fcn.1400134b8
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov r8d, eax
mov dword [rsp + 0x40], esi
mov byte [rsp + 0x44], 3
mov eax, esi
mov dword [rsp + 0x68], eax
movzx eax, word [rsp + 0x44]
mov word [rsp + 0x6c], ax
mov r9d, r8d
shr r9d, 8
and r9d, ebx
shr r8d, 7
and r8d, ebx
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov edx, 0xd9b0fd
lea rcx, [0x14004c9e0]
call fcn.1400070b8
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x90], xmm0
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14001276c
lock add dword [rcx + 8], ebx
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rcx
call fcn.140014eb8
nop
lea rdx, [rsp + 0x90]
mov rcx, rax
call fcn.140014f68
mov r14d, eax
test eax, eax
jns 0x1400127c4
mov dword [rsp + 0x20], 0x88
lea r9, str.OctBrokerSvc::ServiceManager::StartupOctagon
xor r8d, r8d
lea rdx, str.StartupOctagon:_SgrmSessionManager_Initialize_failed
mov ecx, eax
call fcn.140013c08
mov eax, r14d
jmp 0x140012b8f
mov r8d, dword [0x14004c9c8]
test r8b, 2
jne 0x1400127f0
lea rdx, [rsp + 0xb0]
lea rcx, [0x14004c9c8]
call fcn.140013370
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov r8d, eax
mov dword [rsp + 0x40], esi
mov r14d, 3
mov byte [rsp + 0x44], r14b
mov eax, esi
mov dword [rsp + 0x70], eax
movzx eax, word [rsp + 0x44]
mov word [rsp + 0x74], ax
mov r9d, r8d
shr r9d, 8
and r9d, ebx
shr r8d, 7
and r8d, ebx
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov edx, 0xefefcc
lea rcx, [0x14004c9d0]
call fcn.1400070b8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xa0], xmm0
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140012861
lock add dword [rcx + 8], ebx
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rcx
lea rdx, [r15 + 0x38]
lea rcx, [rsp + 0xa0]
call fcn.140019190
mov edi, eax
test eax, eax
jns 0x140012921
call fcn.14000d794
mov rcx, qword [rax + 8]
cmp dword [rcx], 5
jbe 0x140012921
movabs rdx, 0x400000000000
test qword [rcx + 0x10], rdx
je 0x140012921
mov rax, qword [rcx + 0x18]
and rax, rdx
cmp rax, qword [rcx + 0x18]
jne 0x140012921
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x60], 0x1000000
lea rax, [rsp + 0x58]
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x178], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], 8
lea rax, [rsp + 0x140]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400412d0]
call fcn.140001a58
mov r8d, dword [0x14004c9b8]
test r8b, 2
jne 0x14001294d
lea rdx, [rsp + 0xb8]
lea rcx, [0x14004c9b8]
call fcn.140013228
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov r8d, eax
mov dword [rsp + 0x40], esi
mov byte [rsp + 0x44], r14b
mov eax, esi
mov dword [rsp + 0x78], eax
movzx eax, word [rsp + 0x44]
mov word [rsp + 0x7c], ax
mov r9d, r8d
shr r9d, 8
and r9d, ebx
shr r8d, 7
and r8d, ebx
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov edx, 0x121ab43
lea rcx, [0x14004c9c0]
call fcn.1400070b8
nop
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
mov edi, eax
mov eax, 2
mul rdi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140034b74
mov rbx, rax
mov qword [rsp + 0xc8], rax
mov edx, edi
mov rcx, rax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
inc eax
cmp eax, edi
je 0x140012a21
mov rcx, qword [rsp + 0x1a8]
mov edi, 0x8000ffff
mov r9d, edi
lea r8, str.onecore_amcoreoctagon_broker_source_svc_servicemanager.cpp
mov edx, 0xaa
call fcn.140005170
nop
test rbx, rbx
je 0x140012a1a
mov rcx, rbx
call fcn.1400346e0
mov eax, edi
jmp 0x140012b8f
mov rdx, rbx
lea rcx, [rsp + 0x118]
call fcn.140006490
nop
lea rdx, str.Sgrm
lea rcx, [rsp + 0x118]
call fcn.140013194
mov r12d, 0xe0
mov ecx, r12d
call fcn.1400343e0
mov qword [rsp + 0xb8], rax
lea rcx, [0x140039408]
mov qword [rsp + 0xd8], rcx
lea rcx, [0x1400123f0]
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0xe8], r15
lea rcx, [rsp + 0xd8]
mov qword [rsp + 0x110], rcx
lea r9, [rsp + 0xd8]
mov r8, r15
lea rdx, [rsp + 0x118]
mov rcx, rax
call fcn.140013dc8
mov rdi, rax
lea rcx, [r15 + 0x48]
lea rdx, [rsp + 0xd0]
cmp rcx, rdx
je 0x140012ae5
mov rdi, rsi
mov r14, qword [rcx]
mov qword [rcx], rax
test r14, r14
je 0x140012afe
mov rcx, r14
call fcn.140014398
mov edx, r12d
mov rcx, r14
call fcn.1400346e0
mov rax, rsi
test rax, rax
je 0x140012afe
mov rcx, rdi
call fcn.140014398
mov rdx, r12
mov rcx, rdi
call fcn.1400346e0
nop
lea rcx, [rsp + 0x118]
call fcn.140006420
nop
test rbx, rbx
je 0x140012b1a
mov rcx, rbx
call fcn.1400346e0
nop
call fcn.14000e2a0
mov ebx, eax
test eax, eax
js 0x140012b8f
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
mov rcx, rax
mov edx, 0x20000
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadPriority]
nop dword [rax + rax]
test eax, eax
jne 0x140012b87
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov dword [rsp + 0x20], 0xc5
lea r9, str.OctBrokerSvc::ServiceManager::StartupOctagon
xor r8d, r8d
lea rdx, str.StartupOctagon:_SetThreadPriority_End_failed
mov ecx, ebx
call fcn.140013c08
mov eax, ebx
jmp 0x140012b8f
mov eax, ebx
jmp 0x140012b8f
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140034200
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret