Function at 0x140070400
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1d80
call fcn.1400dc9d0
sub rsp, rax
mov rax, qword [0x14019cfa0]
xor rax, rsp
mov qword [rsp + 0x1d70], rax
call fcn.140005250
movzx eax, al
test eax, eax
jne 0x14007043d
xor al, al
jmp 0x1400707bb
lea rcx, str.Rstrtmgr.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14007045e
xor al, al
jmp 0x1400707bb
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14007048a
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x1400707bb
lea rdx, str.RmStartSession
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
lea rdx, str.RmRegisterResources
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x88], rax
lea rdx, str.RmGetList
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x98], rax
lea rdx, str.RmEndSession
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xc0], rax
lea rdx, str.QueryFullProcessImageNameW
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xb0], rax
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x1b10]
mov rdi, rax
xor eax, eax
mov ecx, 0x42
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
lea r8, [rsp + 0x1b10]
xor edx, edx
lea rcx, [rsp + 0x4c]
call qword [rsp + 0x80]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x1400707a0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x1d90]
mov edx, 1
mov ecx, dword [rsp + 0x4c]
call qword [rsp + 0x90]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x140070785
mov dword [rsp + 0x58], 0xa
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xf0]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x74]
mov ecx, dword [rsp + 0x4c]
call qword [rsp + 0xa0]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x140070785
mov dword [rsp + 0x44], 0
jmp 0x14007060a
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x44], eax
jae 0x140070785
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x140070785
mov eax, dword [rsp + 0x44]
imul rax, rax, 0x29c
mov rcx, qword [rsp + 0x1d98]
mov eax, dword [rsp + rax + 0x37c]
mov dword [rcx + 0x40], eax
mov eax, dword [rsp + 0x44]
imul rax, rax, 0x29c
lea rax, [rsp + rax + 0xfc]
mov rcx, qword [rsp + 0x1d98]
add rcx, 0x20
mov rdx, rax
call fcn.140005bf0
mov eax, dword [rsp + 0x44]
imul rax, rax, 0x29c
mov rcx, qword [rsp + 0x1d98]
mov eax, dword [rsp + rax + 0xf0]
mov dword [rcx + 0x44], eax
mov eax, dword [rsp + 0x44]
imul rax, rax, 0x29c
mov r8d, dword [rsp + rax + 0xf0]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140070780
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x140070775
mov eax, dword [rsp + 0x44]
imul rax, rax, 0x29c
lea rax, [rsp + rax + 0xf4]
lea rdx, [rsp + 0xa8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jne 0x140070775
mov dword [rsp + 0x5c], 0x104
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
lea r9, [rsp + 0x5c]
lea r8, [rsp + 0x1b60]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [rsp + UnRegisterTypeLib]
test eax, eax
je 0x140070775
cmp dword [rsp + 0x5c], 0x104
ja 0x140070775
mov byte [rsp + 0x40], 1
mov rax, qword [rsp + 0x1d98]
lea rdx, [rsp + 0x1b60]
mov rcx, rax
call fcn.140005bf0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140070600
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov ecx, dword [rsp + 0x4c]
call qword [rsp + reloc.OLEAUT32.dll_SetErrorInfo]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [rsp + 0x40]
mov rcx, qword [rsp + 0x1d70]
xor rcx, rsp
call fcn.1400dbfd0
add rsp, 0x1d80
pop rdi
ret