Function at 0x140031180
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xb8]
sub rsp, 0x1b0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400b1030]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rbx, rcx
lea rcx, [rbp + 0x80]
call fcn.14004b540
nop
mov qword [rbp + 0x58], 0xf
xor esi, esi
mov qword [rbp + 0x50], rsi
mov byte [rbp + 0x40], sil
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x80]
call fcn.140042870
test eax, eax
je 0x14003123c
mov qword [rbp - 0x68], 0xf
mov qword [rbp - 0x70], rsi
mov byte [rbp - 0x80], sil
lea r8d, [rsi + 0x3d]
lea rdx, str.Cannot_read_iCLS_Client_installation_directory_from_registry.
lea rcx, [rbp - 0x80]
call fcn.140022930
nop
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call fcn.1400287a0
lea rax, vtable.Exception.0
mov qword [rbp - 0x40], rax
lea rdx, [0x1400acdc0]
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov r8d, 0x1e
lea rdx, str.IntelPTTEkRecertification.exe
lea rcx, [rbp + 0x40]
call fcn.1400296c0
mov qword [rsp + 0x78], 0xf
mov qword [rsp + 0x70], rsi
mov byte [rsp + 0x60], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140022a60
nop
xor edx, edx
lea r8d, [rdx + 0x68]
lea rdi, [0x1400b2b80]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov qword [0x1400b2c08], rax
mov qword [0x1400b2c10], rax
mov qword [0x1400b2c18], rax
mov dword [0x1400b2b80], 0x68
mov qword [rbp - 0x68], 0xf
mov qword [rbp - 0x70], rsi
mov byte [rbp - 0x80], al
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140022a60
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.140023a00
nop
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
lea rax, [0x1400b2c08]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], rsi
mov word [rbp - 0x38], si
mov qword [rbp], 7
mov qword [rbp - 8], rsi
mov word [rbp - 0x18], si
mov dword [rbp + 8], 1
test eax, eax
lea rax, vtable.LogItem.0
mov qword [rbp - 0x40], rax
jne 0x14003142c
mov dword [rbp + 0xc], 3
lea rdx, [0x140097e60]
lea rcx, [rbp - 0x40]
call fcn.140024590
mov dword [rax + 0x48], esi
mov rdx, rbx
mov rcx, rax
call fcn.14002d140
mov dword [rax + 0x48], 1
lea rdx, [0x140097e64]
mov rcx, rax
call fcn.140024590
mov rcx, rax
lea rdx, [0x1400985f4]
call fcn.140024590
mov rcx, rax
lea rdx, str.TPMProvisioningService::TPMProvisioning::RunPTTEKRecertification
call fcn.140024590
mov rcx, rax
lea rdx, [0x140097e64]
call fcn.140024590
mov rcx, rax
lea rdx, str.Cannot_run_IntelPTTEKRecertification.exe_process.
call fcn.140024590
nop
lea rcx, [rbp - 0x40]
call fcn.140024130
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rbp + 0x78], 0xf
mov qword [rbp + 0x70], rsi
mov byte [rbp + 0x60], 0
mov r8d, 0x40
lea rdx, str.TPMProvisioningService::TPMProvisioning::RunPTTEKRecertification
lea rcx, [rbp + 0x60]
call fcn.140022930
nop
mov r8d, ebx
lea rdx, [rbp + 0x60]
lea rcx, [rbp - 0x40]
call fcn.14002e270
lea rdx, [0x1400ace40]
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov dword [rbp + 0xc], 1
lea rdx, [0x140097e60]
lea rcx, [rbp - 0x40]
call fcn.140024590
mov dword [rax + 0x48], esi
mov rdx, rbx
mov rcx, rax
call fcn.14002d140
mov dword [rax + 0x48], 1
lea rdx, [0x140097e64]
mov rcx, rax
call fcn.140024590
mov rcx, rax
lea rdx, [0x1400985f4]
call fcn.140024590
mov rcx, rax
lea rdx, str.TPMProvisioningService::TPMProvisioning::RunPTTEKRecertification
call fcn.140024590
mov rcx, rax
lea rdx, [0x140097e64]
call fcn.140024590
mov rcx, rax
lea rdx, str.IntelPTTEKRecertification_has_been_started.
call fcn.140024590
nop
lea rcx, [rbp - 0x40]
call fcn.140024130
mov rcx, rbx
call fcn.140030a00
nop
mov r8, qword [rbp - 0x48]
cmp r8, 8
jb 0x1400314cc
inc r8
mov rdx, qword [rbp - 0x60]
call fcn.140022c00
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rsi
mov word [rbp - 0x60], si
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x140031538
inc rax
mov rcx, qword [rsp + 0x60]
cmp rax, 0x1000
jb 0x140031533
test cl, 0x1f
je 0x140031503
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140031513
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140031523
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140031530
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140056588
mov qword [rsp + 0x78], 0xf
mov qword [rsp + 0x70], rsi
mov byte [rsp + 0x60], 0
lea rcx, [rbp + 0x40]
call fcn.140022470
nop
lea rcx, [rbp + 0x80]
call fcn.140022470
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140056280
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret