Function at 0x1400d8790
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor r14d, r14d
mov r12, r9
mov qword [rbp - 0x40], r14
mov r13, r8
mov rax, qword gs:[0x60]
mov r15, rdx
mov qword [rbp - 0x30], r14
mov ebx, r14d
mov edi, r14d
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x28], r14
test byte [rax + 3], 2
jne 0x1400d87f5
mov esi, 0x80070005
mov ecx, esi
call fcn.14007ab24
jmp 0x1400d8aaf
mov rsi, qword [rdx + 8]
test rsi, rsi
je 0x1400d8817
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x1403b8660]
mov rcx, rsi
call rbx
mov qword [r15 + 8], r14
mov rbx, qword [r15 + 0x10]
test rbx, rbx
je 0x1400d884b
xor edx, edx
mov rcx, rbx
call fcn.140071ff0
lea rcx, [rbx + 8]
call fcn.14006ab44
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [r15 + 0x10], r14
mov rbx, qword [r15 + 0x40]
mov rsi, qword [rbx + 0x18]
test rsi, rsi
je 0x1400d889e
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400d8886
cmp dword [0x140438460], r14d
je 0x1400d886f
call fcn.1401840bc
lea rdx, [0x140435dc4]
mov qword [rsi + 8], r14
lea rcx, [0x1404179fc]
call fcn.1400ec780
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx + 0x18], r14
mov dword [rbx], r14d
mov dword [rbx + 0x34], 0xc004f07a
mov dword [rbx + 0x38], r14d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor esi, esi
mov r14, rax
test rax, rax
je 0x1400d88d4
mov qword [rax], rsi
mov qword [rax + 8], rsi
jmp 0x1400d88d7
mov r14, rsi
test r14, r14
jne 0x1400d88f0
mov ecx, 0x8007000e
mov esi, ecx
call fcn.14007ab24
mov rbx, r14
jmp 0x1400d8aaf
mov rbx, qword [r15 + 0x18]
test rbx, rbx
je 0x1400d8924
xor edx, edx
mov rcx, rbx
call fcn.140072130
lea rcx, [rbx + 8]
call fcn.14006abf0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [r15 + 0x18], rsi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400d894a
mov qword [rax], rsi
mov qword [rax + 8], rsi
jmp 0x1400d894d
mov rdi, rsi
test rdi, rdi
je 0x1400d88dc
mov rsi, qword [0x1404379e0]
lea rdx, [0x140430028]
lea rcx, [0x14041cc24]
call fcn.1400ec420
mov rax, qword [rsi]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [0x1403b8660]
lea rax, [rbp - 0x40]
xor r9d, r9d
lea r8, [0x1403c1d60]
mov qword [rsp + 0x20], rax
lea rdx, str.msft:spp_stockobjects_plugins_params_named
mov rcx, rsi
call rbx
mov esi, eax
test eax, eax
jns 0x1400d89a8
mov ecx, eax
jmp 0x1400d88e3
lea rdx, [rbp - 0x38]
mov rcx, r13
call fcn.14005349c
mov esi, eax
test eax, eax
js 0x1400d89a1
mov rbx, qword [rbp - 0x40]
lea rax, str.SppBindingAppId
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x18], 2
mov rax, qword [rbx]
mov rsi, qword [rax + 0x48]
mov rcx, rsi
call qword [0x1403b8660]
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov rcx, rbx
call rsi
mov esi, eax
test eax, eax
js 0x1400d89a1
test r12, r12
je 0x1400d8a55
lea rdx, [rbp - 0x28]
mov rcx, r12
call fcn.14005349c
mov esi, eax
test eax, eax
js 0x1400d89a1
mov rbx, qword [rbp - 0x40]
lea rax, str.SppBindingSkuId
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x18], 2
mov rax, qword [rbx]
mov rsi, qword [rax + 0x48]
mov rcx, rsi
call qword [0x1403b8660]
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov rcx, rbx
call rsi
mov esi, eax
test eax, eax
js 0x1400d89a1
mov rax, qword [r15 + 0x40]
lea r9, [rbp - 0x30]
mov rdx, qword [rbp - 0x40]
mov r8, rdi
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call fcn.140087a1c
mov esi, eax
test eax, eax
jns 0x1400d8a9c
mov ecx, eax
call fcn.14007ab24
lea rdx, [0x140434b04]
mov rbx, r14
lea rcx, [0x14041eb08]
call fcn.1400ecad0
jmp 0x1400d8aaf
mov rax, qword [rbp - 0x30]
and qword [rbp - 0x30], 0
xor ebx, ebx
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], r14
lea rdx, [0x140432b90]
mov r14, rdi
lea rcx, [0x140414ae0]
call fcn.1400ece2c
test rdi, rdi
je 0x1400d8b17
mov rax, rdi
xor edi, edi
mov qword [r15 + 0x18], rax
test esi, esi
jns 0x1400d8add
cmp dword [rbp + 0x50], 1
jne 0x1400d8aed
mov rdx, qword [rbp - 0x38]
mov r8, r14
call fcn.1400de1c8
mov rax, qword [r15 + 0x18]
cmp dword [rax + 4], edi
jne 0x1400d8b17
cmp dword [rbp + 0x50], 1
jne 0x1400d8b17
and qword [rsp + 0x28], rdi
mov ecx, 2
and qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, esi
mov edx, 0x80000405
call fcn.140054368
mov ecx, esi
call fcn.14007ab44
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400d8b2d
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1400d8b3c
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400d8b68
xor edx, edx
mov rcx, rdi
call fcn.140072130
lea rcx, [rdi + 8]
call fcn.14006abf0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x1400d8b94
xor edx, edx
mov rcx, rbx
call fcn.140071ff0
lea rcx, [rbx + 8]
call fcn.14006ab44
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x1400d8bb7
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403b8660]
mov rcx, rbx
call rdi
and qword [rbp - 0x40], 0
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x1400d8be8
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403b8660]
mov rcx, rbx
call rdi
lea rdx, [0x1404302fc]
lea rcx, [0x14041ec04]
call fcn.1400ec0c8
lea r11, [rsp + 0x70]
mov eax, esi
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret