Function at 0x140016b1c
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov r11, rsp
push r13
push r14
push r15
sub rsp, 0x7a0
mov qword [r11 - 0x6d8], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
mov rax, qword [0x14003c4b8]
xor rax, rsp
mov qword [rsp + 0x790], rax
mov dword [rsp + 0x54], 0x8000ffff
xor esi, esi
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x58], rsi
mov qword [r11 - 0x600], rsi
lea rax, [r11 - 0x608]
mov qword [r11 - 0x5f8], rax
mov qword [r11 - 0x5f0], rsi
mov dword [rsp + 0x1d0], esi
lea rax, [r11 - 0x5a8]
mov qword [r11 - 0x5e0], rax
lea rax, [r11 - 0x5d0]
mov qword [r11 - 0x5d8], rax
mov dword [rsp + 0x1e8], esi
mov byte [rsp + 0x1ec], sil
mov byte [rsp + 0x228], sil
mov dword [rsp + 0x210], esi
lea rax, [0x14002f4f0]
mov qword [r11 - 0x5a0], rax
mov qword [r11 - 0x598], rsi
mov qword [r11 - 0x588], 1
mov qword [r11 - 0x4f0], rsi
xor edx, edx
mov r8d, 0x90
lea rcx, [r11 - 0x580]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor eax, eax
mov qword [rsp + 0x2d0], rax
mov qword [rsp + 0x2d8], rax
mov qword [rsp + 0x2e0], rsi
lea r12, [0x14002c500]
mov qword [rsp + 0x1b0], r12
lea rcx, [rsp + 0x1b0]
call fcn.140018dec
nop
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0xc0], rax
movups xmm0, xmmword [rsp + 0xa8]
movups xmmword [rsp + 0xe8], xmm0
movups xmm1, xmmword [rsp + 0xb8]
movups xmmword [rsp + 0xf8], xmm1
mov byte [rsp + 0x108], 1
cmp qword [0x14003c500], 0xffffffffffffffff
je 0x140016cd1
mov edx, dword [rsp + 0x54]
mov ebx, edx
test edx, edx
jns 0x140016ccf
mov rcx, qword [rsp + 0x7b8]
mov r9d, edx
lea r8, str.onecore_amcoreoctagon_broker_sourceliblpachost.cpp
mov edx, 0xbc
call fcn.140002e14
mov edx, dword [rsp + 0x54]
jmp 0x140016d37
mov qword [rsp + 0x80], rsi
lea r9, [rsp + 0x80]
xor r8d, r8d
lea r14d, [r8 + 4]
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_InitializeProcThreadAttributeList]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test ebx, ebx
jne 0x140016d6b
cmp eax, 0x7a
je 0x140016d6b
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140016d33
mov rcx, qword [rsp + 0x7b8]
mov r9d, ebx
lea r8, str.onecore_amcoreoctagon_broker_sourceliblpachost.cpp
mov edx, 0xc2
call fcn.140002e14
nop
mov edx, dword [rsp + 0x54]
lea rcx, [rsp + 0x1b0]
call fcn.140009c64
cmp qword [rsp + 0x58], rsi
je 0x140016d56
lea rcx, [rsp + 0x58]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
cmp byte [rsp + 0x50], sil
je 0x140017b3a
call fcn.140017c4c
jmp 0x140017b3a
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rsi
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.140018778
nop
mov rdi, qword [rsp + 0x60]
lea r9, [rsp + 0x80]
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_InitializeProcThreadAttributeList]
test eax, eax
setne r9b
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
sub rdx, r8
mov rax, qword [rsp + 0x80]
sub rax, rdx
neg rax
sbb ebx, ebx
and ebx, 0x80004005
mov dword [rsp + 0x54], ebx
cmp qword [rsp + 0x80], rdx
je 0x140016e58
test ebx, ebx
jns 0x140016e04
mov rcx, qword [rsp + 0x7b8]
mov r9d, ebx
lea r8, str.onecore_amcoreoctagon_broker_sourceliblpachost.cpp
mov edx, 0xd3
call fcn.140002e14
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x140016d33
mov rdx, qword [rsp + 0x70]
sub rdx, r8
mov rax, r8
cmp rdx, 0x1000
jb 0x140016e3d
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016e3d
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140028698
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rsi
jmp 0x140016d33
test r9b, r9b
je 0x140017367
mov dword [rsp + 0x54], esi
mov r14d, 0x80070000
xor eax, eax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rax
lea r13d, [rax + 0x70]
mov r8d, r13d
xor edx, edx
lea rcx, [rsp + 0x120]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movdqa xmm0, xmmword [0x140030b50]
movdqu xmmword [rsp + 0x1a0], xmm0
mov word [rsp + 0x190], si
xor eax, eax
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x8c], 1
mov dword [rsp + 0x88], 1
mov dword [rsp + 0x380], 0x201
mov dword [rsp + 0x384], 0xf000000
lea ecx, [rax + 3]
mov dword [rsp + 0x388], ecx
mov qword [rsp + 0x38c], 1
mov qword [rsp + 0x394], rsi
mov qword [rsp + 0x39c], rsi
mov dword [rsp + 0x3a4], esi
mov qword [rsp + 0x3a8], rax
mov dword [rsp + 0x3b0], 0xa01
lea r15d, [r13 - 0x66]
mov dword [rsp + 0x3b4], 0xf000000
mov dword [rsp + 0x3b8], ecx
mov eax, 0x400
mov dword [rsp + 0x3bc], eax
mov dword [rsp + 0x3c0], 0x3f8031b0
mov dword [rsp + 0x3c4], 0x4c63bc6c
mov dword [rsp + 0x3c8], 0xd150e03c
mov dword [rsp + 0x3cc], 0x62a10c97
mov dword [rsp + 0x3d0], 0x19cb010f
mov dword [rsp + 0x3d4], 0xc0a67a7e
mov dword [rsp + 0x3d8], 0xf197e6fa
mov dword [rsp + 0x3dc], 0xce0ca319
mov dword [rsp + 0x3e0], 0xa01
mov dword [rsp + 0x3e4], 0xf000000
mov dword [rsp + 0x3e8], ecx
mov dword [rsp + 0x3ec], eax
mov dword [rsp + 0x3f0], 0x6a94b017
mov dword [rsp + 0x3f4], 0x82211e81
mov dword [rsp + 0x3f8], 0xee632260
mov dword [rsp + 0x3fc], 0xbb98e6f1
mov dword [rsp + 0x400], 0x68be9bd1
mov dword [rsp + 0x404], 0xe36fd262
mov dword [rsp + 0x408], 0x908f5e4
mov dword [rsp + 0x40c], 0x708a2349
mov dword [rsp + 0x410], 0xa01
mov dword [rsp + 0x414], 0xf000000
mov dword [rsp + 0x418], ecx
mov dword [rsp + 0x41c], eax
mov dword [rsp + 0x420], 0x59934ace
mov dword [rsp + 0x424], 0x750bcfb9
mov dword [rsp + 0x428], 0x9bf2c075
mov dword [rsp + 0x42c], 0x98c2b4b2
mov dword [rsp + 0x430], 0xf9dd46d4
mov dword [rsp + 0x434], 0xec877a02
mov dword [rsp + 0x438], 0x77116514
mov dword [rsp + 0x43c], 0x5596e9d6
mov dword [rsp + 0x440], 0xa01
mov dword [rsp + 0x444], 0xf000000
mov dword [rsp + 0x448], ecx
mov dword [rsp + 0x44c], eax
mov dword [rsp + 0x450], 0xbbf6bced
mov dword [rsp + 0x454], 0x39429c8f
mov dword [rsp + 0x458], 0xde010e3f
mov dword [rsp + 0x45c], 0xa2764fb0
mov dword [rsp + 0x460], 0xb9370d
mov dword [rsp + 0x464], 0x206b6953
mov dword [rsp + 0x468], 0x7440f72b
mov dword [rsp + 0x46c], 0xf9c2c10b
mov dword [rsp + 0x470], 0xa01
mov dword [rsp + 0x474], 0xf000000
mov dword [rsp + 0x478], ecx
mov dword [rsp + 0x47c], eax
mov dword [rsp + 0x480], 0x783ce81
mov dword [rsp + 0x484], 0xda132108
mov dword [rsp + 0x488], 0x764eea6a
mov dword [rsp + 0x48c], 0x30f59090
mov dword [rsp + 0x490], 0xdb969958
mov dword [rsp + 0x494], 0x219e8c18
mov dword [rsp + 0x498], 0xcb8aef62
mov dword [rsp + 0x49c], 0xccca8831
mov dword [rsp + 0x4a0], 0xa01
mov dword [rsp + 0x4a4], 0xf000000
mov dword [rsp + 0x4a8], ecx
mov dword [rsp + 0x4ac], eax
mov dword [rsp + 0x4b0], 0x1f7a74b6
mov dword [rsp + 0x4b4], 0xe714689e
mov dword [rsp + 0x4b8], 0x2a4a5163
mov dword [rsp + 0x4bc], 0x71b7d53c
mov dword [rsp + 0x4c0], 0xd67898b2
mov dword [rsp + 0x4c4], 0xdc76244c
mov dword [rsp + 0x4c8], 0x1093215c
mov dword [rsp + 0x4cc], 0xeddbba0d
mov dword [rsp + 0x4d0], 0xa01
mov dword [rsp + 0x4d4], 0xf000000
mov dword [rsp + 0x4d8], ecx
mov dword [rsp + 0x4dc], eax
mov dword [rsp + 0x4e0], 0xd1d47f2
mov dword [rsp + 0x4e4], 0x29cc68a0
mov dword [rsp + 0x4e8], 0xede64c1c
mov dword [rsp + 0x4ec], 0xfadc71ac
mov dword [rsp + 0x4f0], 0xadf19e42
mov dword [rsp + 0x4f4], 0xca713f03
mov dword [rsp + 0x4f8], 0x65622afc
mov dword [rsp + 0x4fc], 0x7be154db
lea rax, [rsp + 0x500]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x380]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x8c]
lea rdx, [rsp + 0x110]
mov rcx, rdi
call fcn.1400184c8
mov ebx, eax
mov dword [rsp + 0x54], eax
test eax, eax
jns 0x1400173ed
mov rcx, qword [rsp + 0x7b8]
mov r9d, eax
lea r8, str.onecore_amcoreoctagon_broker_sourceliblpachost.cpp
mov edx, 0xf1
call fcn.140002e14
nop
lea rcx, [rsp + 0x190]
call fcn.1400106cc
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140016d33
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016e40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016e40
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
mov r14d, 0x80070000
or ebx, r14d
test eax, eax
cmovle ebx, eax
mov dword [rsp + 0x54], ebx
test ebx, ebx
jns 0x140016e6b
mov rcx, qword [rsp + 0x7b8]
mov r9d, ebx
lea r8, str.onecore_amcoreoctagon_broker_sourceliblpachost.cpp
mov edx, 0xd6
call fcn.140002e14
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140016d33
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016e40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016e40
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop
mov dword [rsp + 0x120], r13d
mov qword [rsp + 0x188], rdi
mov edx, 0x104
lea rcx, [rsp + 0x580]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400174c6
mov dword [rsp + 0x54], esi
lea rdx, [rsp + 0x580]
lea rcx, [rsp + 0x190]
call fcn.140011414
lea rdx, [0x14002dfa0]
lea rcx, [rsp + 0x190]
call fcn.140011414
lea rdx, str.SgrmLpac.exe
lea rcx, [rsp + 0x190]
call fcn.140011414
nop
mov rcx, qword [0x14003cf50]
lea rax, [rcx + 1]
test rax, 0xfffffffffffffffe
jne 0x1400177fb
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_job_l2_1_0.dll_CreateJobObjectW]
mov rbx, rax
mov r13, qword [0x14003cf50]
lea rax, [r13 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400174a8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov rcx, r13
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov qword [0x14003cf50], rbx
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140017554
mov dword [rsp + 0x54], esi
jmp 0x1400175e5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
mov dword [rsp + 0x54], ebx
test ebx, ebx
jns 0x14001741c
mov rcx, qword [rsp + 0x7b8]
mov r9d, ebx
lea r8, str.onecore_amcoreoctagon_broker_sourceliblpachost.cpp
mov edx, 0xfe
call fcn.140002e14
nop
lea rcx, [rsp + 0x190]
call fcn.1400106cc
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140016d33
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016e40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016e40
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
mov dword [rsp + 0x54], ebx
test ebx, ebx
jns 0x1400175de
mov rcx, qword [rsp + 0x7b8]
mov r9d, ebx
lea r8, str.onecore_amcoreoctagon_broker_sourceliblpachost.cpp
mov edx, 0x110
call fcn.140002e14
nop
lea rcx, [rsp + 0x190]
call fcn.1400106cc
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140016d33
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016e40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016e40
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop
mov rbx, qword [0x14003cf50]
mov edi, 0x90
mov r8d, edi
xor edx, edx
lea rcx, [rsp + 0x2f0]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x300], 0x2000
mov r9d, edi
lea r8, [rsp + 0x2f0]
mov edx, 9
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_job_l2_1_0.dll_SetInformationJobObject]
test eax, eax
je 0x14001776d
mov dword [rsp + 0x54], esi
lea rdx, [rsp + 0x190]
cmp qword [rsp + 0x1a8], 8
cmovae rdx, qword [rsp + 0x190]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x120]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x9000000
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
je 0x140017899
mov dword [rsp + 0x54], esi
mov rax, qword [rsp + 0x90]
mov qword [0x14003c500], rax
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rsp + 0x98], rsi
mov byte [rsp + 0x50], 1
mov rdx, qword [rsp + 0x90]
mov rcx, qword [0x14003cf50]
call qword [sym.imp.api_ms_win_core_job_l2_1_0.dll_AssignProcessToJobObject]
test eax, eax
je 0x140017927
mov dword [rsp + 0x54], esi
mov dword [rsp + 0x28], 0x18
or dword [rsp + 0x20], 0xffffffff
xor r9d, r9d
lea r8, [0x140016a30]
mov rdx, qword [0x14003c500]
lea rcx, [0x14003c4f0]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x1400179b5
or qword [0x14003c4f0], 0xffffffffffffffff
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
mov dword [rsp + 0x54], ebx
test ebx, ebx
jns 0x1400179b5
mov edx, 0x143
mov rcx, qword [rsp + 0x7b8]
mov r9d, ebx
lea r8, str.onecore_amcoreoctagon_broker_sourceliblpachost.cpp
call fcn.140002e14
nop
lea rcx, [rsp + 0x190]
call fcn.1400106cc
nop
lea rcx, [rsp + 0x60]
call fcn.140016060
jmp 0x140016d33
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
mov dword [rsp + 0x54], ebx
test ebx, ebx
jns 0x14001762c
mov rcx, qword [rsp + 0x7b8]
mov r9d, ebx
lea r8, str.onecore_amcoreoctagon_broker_sourceliblpachost.cpp
mov edx, 0x117
call fcn.140002e14
nop
lea rcx, [rsp + 0x190]
call fcn.1400106cc
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140016d33
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016e40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016e40
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop
xor edx, edx
call qword [sym.imp.api_ms_win_core_job_l2_1_0.dll_TerminateJobObject]
test eax, eax
jne 0x140017628
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
mov dword [rsp + 0x54], ebx
test ebx, ebx
jns 0x14001762c
mov rcx, qword [rsp + 0x7b8]
mov r9d, ebx
lea r8, str.onecore_amcoreoctagon_broker_sourceliblpachost.cpp
mov edx, 0x11f
call fcn.140002e14
nop
lea rcx, [rsp + 0x190]
call fcn.1400106cc
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140016d33
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016e40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016e40
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
mov dword [rsp + 0x54], ebx
test ebx, ebx
jns 0x140017690
mov rcx, qword [rsp + 0x7b8]
mov r9d, ebx
lea r8, str.onecore_amcoreoctagon_broker_sourceliblpachost.cpp
mov edx, 0x12d
call fcn.140002e14
nop
lea rcx, [rsp + 0x190]
call fcn.1400106cc
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140016d33
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016e40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016e40
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
mov dword [rsp + 0x54], ebx
test ebx, ebx
jns 0x1400176db
mov rcx, qword [rsp + 0x7b8]
mov r9d, ebx
lea r8, str.onecore_amcoreoctagon_broker_sourceliblpachost.cpp
mov edx, 0x136
call fcn.140002e14
nop
lea rcx, [rsp + 0x190]
call fcn.1400106cc
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140016d33
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016e40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016e40
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400266d0
mov ebx, eax
mov dword [rsp + 0x54], eax
test eax, eax
jns 0x140017a10
mov edx, 0x3e8
mov rcx, qword [0x14003c500]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test eax, eax
jne 0x140017a02
lea rdx, [rsp + 0x78]
mov rcx, qword [0x14003c500]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetExitCodeProcess]
mov ebx, dword [rsp + 0x78]
mov dword [rsp + 0x54], ebx
test ebx, ebx
jns 0x140017a06
mov edx, 0x15f
jmp 0x140017738
mov ebx, dword [rsp + 0x54]
dec r15d
test r15d, r15d
jle 0x140017a17
jmp 0x1400179b5
mov byte [0x14003d0a8], 1
test ebx, ebx
jns 0x140017a25
mov edx, 0x165
jmp 0x140017738
mov byte [rsp + 0x50], sil
mov dword [rsp + 0x54], esi
lea rcx, [rsp + 0x190]
call fcn.1400106cc
nop
lea rcx, [rsp + 0x60]
call fcn.140016060
nop
mov edx, dword [rsp + 0x54]
lea rcx, [rsp + 0x1b0]
call fcn.140009c64
cmp qword [rsp + 0x58], rsi
je 0x140017a6a
lea rcx, [rsp + 0x58]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
cmp byte [rsp + 0x50], sil
je 0x140017a77
call fcn.140017c4c
nop
mov qword [rsp + 0x1b0], r12
lea rcx, [rsp + 0x1b0]
call fcn.14000b3d8
lea rcx, [rsp + 0x1b0]
call fcn.14000a8b4
xor eax, eax
jmp 0x140017c12
mov qword [rsp + 0x1b0], r12
lea rcx, [rsp + 0x1b0]
call fcn.14000b3d8
lea rcx, [rsp + 0x1b0]
call fcn.14000a8b4
mov eax, ebx
jmp 0x140017c12
mov rcx, qword [rsp + 0x790]
xor rcx, rsp
call fcn.1400281d0
lea r11, [rsp + 0x7a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret