Function at 0x140038b50
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rdi, rdx
mov rsi, rcx
cmp byte [rcx + 0x10], 0
je 0x140038b81
mov al, 1
jmp 0x140038e21
lea rbx, vtable.LogItem.0
mov qword [rbp - 0x79], rbx
call fcn.14002cde0
mov rdx, rax
lea rcx, [rbp - 0x71]
call fcn.14002c510
nop
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 9]
call fcn.14002c510
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.14002ca50
nop
lea rdx, [rbp - 0x71]
lea rcx, [rbp + 0x17]
call fcn.14002c510
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.14002ca50
mov dword [rbp - 0x11], 1
mov dword [rbp - 0xd], 1
xor r12d, r12d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], r12b
lea r8d, [r12 + 0x35]
lea rdx, str.Initialization_of_TPM_communication_channel_procedure
lea rcx, [rsp + 0x28]
call fcn.14002b560
nop
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x79]
call fcn.14002d540
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140038c61
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038c5b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038c5b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058b8c
nop
lea rcx, [rbp - 0x79]
call fcn.14002cfc0
mov rax, qword [rdi]
xor r8d, r8d
lea rdx, [0x1400bfba8]
mov rcx, rdi
mov rax, qword [rax]
call qword [0x140093828]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x140038d88
mov qword [rbp - 0x79], rbx
call fcn.14002cde0
mov rdx, rax
lea rcx, [rbp - 0x71]
call fcn.14002c510
nop
lea rdx, [rbp - 0x71]
lea rcx, [rbp + 0x17]
call fcn.14002c510
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.14002ca50
nop
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 9]
call fcn.14002c510
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.14002ca50
mov dword [rbp - 0x11], 1
mov dword [rbp - 0xd], 1
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], 0
mov r8d, 0xc
lea rdx, str.TSS2_error:
lea rcx, [rsp + 0x28]
call fcn.14002b560
nop
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x79]
call fcn.14002d540
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140038d65
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038d60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038d60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058b8c
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x79]
call fcn.1400385d0
nop
lea rcx, [rbp - 0x79]
call fcn.14002cfc0
mov byte [rsi + 0x10], 0
xor al, al
jmp 0x140038e21
mov r15, qword [0x1400bfba8]
xor ecx, ecx
call fcn.140001790
mov r14, rax
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x140038db4
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdi, rbx
xor eax, eax
mov rcx, r14
rep stosb byte [rdi], al
lea r9, [0x1400b00a0]
mov r8, r15
mov rdx, r14
mov rcx, rbx
call fcn.1400019f0
test eax, eax
jne 0x140038de2
mov qword [0x1400bfbb0], rbx
mov al, 1
jmp 0x140038e1e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [0x1400bfbb0], r12
lea rcx, [rbp - 0x79]
call fcn.14002cf30
nop
mov dword [rax + 0x6c], 3
lea rdx, str.TSS2_initialization_of_SysContext_failed
mov rcx, rax
call fcn.14002d470
nop
lea rcx, [rbp - 0x79]
call fcn.14002cfc0
xor al, al
mov byte [rsi + 0x10], al
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret