Function at 0x1400132b0
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, 0x180
mov rax, qword [0x140059b08]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r15, rcx
xor edi, edi
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x4c], edi
mov dword [rsp + 0x40], edi
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 0x140013358
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.140014e28
mov eax, ebx
jmp 0x1400139d1
call fcn.140013e24
or dword [rsp + 0x40], 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 + 0x40]
lea edx, [r12 + 0x5c]
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
nop dword [rax + rax]
lea ebx, [r12 - 3]
test eax, eax
jns 0x1400133bd
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.140014e28
or dword [rsp + 0x44], ebx
mov r8, r12
lea rdx, [rsp + 0x44]
mov ecx, 2
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
or dword [rsp + 0x48], 3
mov r8, r12
lea rdx, [rsp + 0x48]
mov ecx, 3
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
or dword [rsp + 0x4c], ebx
mov r8, r12
lea rdx, [rsp + 0x4c]
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 0x140013467
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.140014e28
lea rcx, [r15 + 0x28]
call fcn.1400197bc
mov esi, eax
test eax, eax
jns 0x14001349d
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.140014e28
mov eax, esi
jmp 0x1400139d1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x88], xmm0
mov rcx, qword [r15 + 0x30]
test rcx, rcx
je 0x1400134ba
lock add dword [rcx + 8], ebx
mov rcx, qword [r15 + 0x30]
mov rax, qword [r15 + 0x28]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rcx
lea r14, [r15 + 0x18]
mov rdx, r14
lea rcx, [rsp + 0x88]
call fcn.1400198e0
mov esi, eax
test eax, eax
jns 0x14001350f
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.140014e28
mov eax, esi
jmp 0x1400139d1
mov r8d, dword [0x14005ab58]
test r8b, 2
jne 0x14001353b
lea rdx, [rsp + 0xb8]
lea rcx, [0x14005ab58]
call fcn.14001407c
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov r8d, eax
mov dword [rsp + 0x60], edi
mov byte [rsp + 0x64], 3
mov r9d, r8d
shr r9d, 9
and r9d, ebx
shr r8d, 8
and r8d, ebx
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov edx, 0xd9b0fd
lea rcx, [0x14005ab60]
call fcn.1400081f4
call fcn.140016584
mov r8, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x98], xmm0
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x1400135a1
lock add dword [rcx + 8], ebx
mov rcx, qword [r14 + 8]
mov rax, qword [r14]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rcx
lea rdx, [rsp + 0x98]
mov rcx, r8
call fcn.1400166b8
mov esi, eax
test eax, eax
jns 0x1400135f1
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.140014e28
mov eax, esi
jmp 0x1400139d1
mov r8d, dword [0x14005ab48]
test r8b, 2
jne 0x14001361d
lea rdx, [rsp + 0xc0]
lea rcx, [0x14005ab48]
call fcn.140014168
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov r8d, eax
mov dword [rsp + 0x68], edi
mov byte [rsp + 0x6c], 3
mov r9d, r8d
shr r9d, 9
and r9d, ebx
shr r8d, 8
and r8d, ebx
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov edx, 0xefefcc
lea rcx, [0x14005ab50]
call fcn.1400081f4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xa8], xmm0
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x14001367b
lock add dword [rcx + 8], ebx
mov rcx, qword [r14 + 8]
mov rax, qword [r14]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rcx
lea rdx, [r15 + 0x38]
lea rcx, [rsp + 0xa8]
call fcn.140019ca4
mov esi, eax
test eax, eax
jns 0x140013733
call fcn.14000dfec
mov rcx, qword [rax + 8]
cmp dword [rcx], 5
jbe 0x140013733
movabs rdx, 0x400000000000
test qword [rcx + 0x10], rdx
je 0x140013733
mov rax, qword [rcx + 0x18]
and rax, rdx
cmp rax, qword [rcx + 0x18]
jne 0x140013733
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x78], 0x1000000
lea rax, [rsp + 0x50]
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], r12
lea rax, [rsp + 0x78]
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x158], 8
lea rax, [rsp + 0x130]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14004da6b]
call fcn.1400019e4
mov r8d, dword [0x14005ab38]
test r8b, 2
jne 0x14001375f
lea rdx, [rsp + 0x80]
lea rcx, [0x14005ab38]
call fcn.1400142e8
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
mov r8d, eax
mov dword [rsp + 0x70], edi
mov byte [rsp + 0x74], 3
mov r9d, r8d
shr r9d, 9
and r9d, ebx
shr r8d, 8
and r8d, ebx
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov edx, 0x121ab43
lea rcx, [0x14005ab40]
call fcn.1400081f4
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 esi, eax
mov eax, 2
mul rsi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14003ffa8
mov rbx, rax
mov qword [rsp + 0x80], rax
mov edx, esi
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, esi
je 0x140013821
mov rcx, qword [rsp + 0x198]
mov edi, 0x8000ffff
mov r9d, edi
lea r8, str.onecore_amcoreoctagon_broker_source_svc_servicemanager.cpp
mov edx, 0xaa
call fcn.140005930
nop
mov rcx, rbx
call fcn.14003ffb4
mov eax, edi
jmp 0x1400139d1
mov qword [rsp + 0x118], rdi
mov qword [rsp + 0x120], 7
mov word [rsp + 0x108], di
mov rdx, rbx
lea rcx, [rsp + 0x108]
call fcn.1400070e8
nop
mov r8d, 5
lea rdx, str.Sgrm
lea rcx, [rsp + 0x108]
call fcn.140014004
mov r12d, 0xe0
mov ecx, r12d
call fcn.14003f8c0
mov qword [rsp + 0xc0], rax
lea rcx, [0x140044408]
mov qword [rsp + 0xc8], rcx
lea rcx, [0x140013230]
mov qword [rsp + 0xd0], rcx
mov qword [rsp + 0xd8], r15
lea rcx, [rsp + 0xc8]
mov qword [rsp + 0x100], rcx
lea r9, [rsp + 0xc8]
mov r8, r15
lea rdx, [rsp + 0x108]
mov rcx, rax
call fcn.140014fe8
mov rsi, rax
lea rax, [r15 + 0x48]
lea rcx, [rsp + 0x80]
cmp rax, rcx
je 0x1400138fb
mov r14, qword [rax]
mov qword [rax], rsi
test r14, r14
je 0x140013914
mov rcx, r14
call fcn.140015608
mov rcx, r14
jmp 0x14001390b
test rsi, rsi
je 0x140013914
mov rcx, rsi
call fcn.140015608
mov rcx, rsi
mov rdx, r12
call fcn.14003fb84
nop
mov rdx, qword [rsp + 0x120]
cmp rdx, 8
jb 0x140013937
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x108]
call fcn.140007850
mov qword [rsp + 0x118], rdi
mov qword [rsp + 0x120], 7
mov word [rsp + 0x108], di
mov rcx, rbx
call fcn.14003ffb4
nop
call fcn.14000eaf0
mov ebx, eax
test eax, eax
js 0x1400139d1
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 0x1400139c9
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.140014e28
mov eax, ebx
jmp 0x1400139d1
mov eax, ebx
jmp 0x1400139d1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14003f700
lea r11, [rsp + 0x180]
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