Function at 0x180057a90
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov r14d, r8d
mov rsi, rdx
mov r13, rcx
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
xor r15d, r15d
mov byte [rsp + 0x40], r15b
mov byte [rsp + 0x42], r15b
mov byte [rsp + 0x43], r15b
mov byte [rsp + 0x41], r15b
mov qword [r11 + 0x20], r15
mov qword [rsp + 0x48], r15
mov rax, qword gs:[0x60]
mov r8, qword [rax + 0x18]
cmp byte [r8 + 0x48], r15b
jne 0x1800b773a
mov edx, r14d
and edx, 0x100
lea rcx, [r11 + 0x20]
call fcn.180058f2c
mov edi, eax
mov dword [rsp + 0x44], eax
test eax, eax
js 0x180057e0e
mov rcx, qword gs:[0x60]
xor edx, edx
lea r8d, [r15 + 0x78]
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlAllocateHeap
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x180057d78
lea rcx, [rax + 0x28]
mov r8, qword [rsp + 0x118]
mov edx, r14d
call fcn.180058ec0
mov edi, eax
mov dword [rsp + 0x44], eax
test eax, eax
js 0x180057e18
lea r12d, [r15 + 1]
mov byte [rsp + 0x43], r12b
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x1720]
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x60], rcx
mov rax, qword gs:[0x30]
movups xmm0, xmmword [rax + 0x1710]
mov rbx, qword [rsp + 0x48]
movdqu xmmword [rbx + 0x68], xmm0
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], 0x10
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
xor edx, edx
mov ecx, r12d
call sym.ntdll.dll_RtlQueryInformationActivationContext
mov edi, eax
mov dword [rsp + 0x44], eax
test eax, eax
js 0x180057d86
test byte [rsp + 0x58], r12b
jne 0x180057da0
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x48], rax
mov byte [rsp + 0x40], r12b
lea r15, [rbx + 0x58]
mov ecx, 2
mov dword [r15], ecx
lea r12, [rbx + 0x38]
mov qword [r12], r13
lea r13, [rbx + 0x40]
mov qword [r13], rsi
lea rsi, [rbx + 0x20]
xor edx, edx
mov qword [rsi], rdx
mov dword [rsp + 0x60], 3
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], rdx
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], rdx
mov dword [rsp + 0x98], edx
mov dword [rsp + 0x9c], 1
mov dword [rsp + 0xa0], 0x48
test r14b, 0xc0
mov eax, edx
cmovne eax, ecx
mov dword [rsp + 0x98], eax
lea rax, [0x1801106b0]
mov qword [rbx], rax
mov dword [rbx + 8], edx
lea r8, [rsp + 0x60]
mov rdx, rbx
mov rcx, qword [rsi]
call fcn.1800591b8
mov edi, eax
mov dword [rsp + 0x44], eax
test eax, eax
js 0x180057e15
mov byte [rsp + 0x41], 1
mov rcx, qword [0x18016f4e8]
cmp qword [r12], rcx
jae 0x180057db5
lea rdx, [rsp + 0xb0]
mov rcx, qword [r12]
call fcn.18000ef10
mov rdx, qword [rsp + 0xb8]
mov qword [rbx + 0x50], rdx
test rdx, rdx
je 0x180057e15
xor ecx, ecx
call sym.ntdll.dll_LdrAddRefDll
mov byte [rsp + 0x42], 1
call sym.ntdll.dll_RtlGetCurrentServiceSessionId
test eax, eax
jne 0x180057ded
mov ecx, 0x7ffe0386
cmp byte [rcx], 0
jne 0x180057d3e
lea r9, [rsp + 0x60]
mov r8d, 1
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.180026138
or eax, 0xffffffff
lock xadd dword [r15], eax
sub eax, 1
je 0x180057d2f
xor r15d, r15d
mov ebx, r15d
mov qword [rsp + 0x48], rbx
mov edi, r15d
mov dword [rsp + 0x44], r15d
jmp 0x180057e18
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x48]
call fcn.180047030
jmp 0x180057d17
mov rax, qword gs:[0x30]
mov qword [rsp + 0xc8], rax
mov rax, qword [rax + 0x1720]
mov qword [rsp + 0x20], rax
mov r9, qword [r13]
mov r8, qword [r12]
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
mov rcx, qword [rsi]
call fcn.180002428
jmp 0x180057cf4
mov edi, 0xc0000017
mov dword [rsp + 0x44], edi
jmp 0x180057e18
cmp eax, 0xc015000b
jne 0x180057e18
or qword [rbx + 0x48], 0xffffffffffffffff
mov dword [rsp + 0x44], r15d
jmp 0x180057bd4
mov rcx, qword [rsp + 0x50]
call sym.ntdll.dll_RtlReleaseActivationContext
or qword [rsp + 0x50], 0xffffffffffffffff
jmp 0x180057bdf
mov eax, dword [0x18016f4f0]
add rax, rcx
cmp qword [r12], rax
jae 0x180057cab
movaps xmm0, xmmword [0x18016f4e0]
movups xmmword [rsp + 0xb0], xmm0
movsd xmm0, qword [0x18016f4f0]
movsd qword [rsp + 0xc0], xmm0
jmp 0x180057cbc
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x90]
add rcx, 0x22c
mov rbx, qword [rsp + 0x48]
jmp 0x180057cef
mov rbx, qword [rsp + 0x48]
jmp 0x180057e18
xor r15d, r15d
test rbx, rbx
jne 0x1800b7744
mov rcx, qword [rsp + 0x118]
call fcn.1800588b4
mov eax, edi
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 0xc0000001
jmp 0x180057e30
cmp byte [rsp + 0x40], r15b
je 0x1800b775a
mov rcx, qword [rbx + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x1800b775a
call sym.ntdll.dll_RtlReleaseActivationContext
cmp byte [rsp + 0x41], r15b
je 0x1800b776f
lea rdx, [rsp + 0x60]
mov rcx, qword [rbx + 0x20]
call fcn.180047138
cmp byte [rsp + 0x42], r15b
je 0x1800b777f
mov rcx, qword [rbx + 0x50]
call sym.ntdll.dll_LdrUnloadDll
cmp byte [rsp + 0x43], r15b
je 0x1800b7794
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1800b7794
call sym.ntdll.dll_NtClose
mov rcx, qword gs:[0x60]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlFreeHeap
mov edi, dword [rsp + 0x44]
jmp 0x180057e21