Function at 0x140131a40
Capabilities:
Access peb ldr_data

Disassembly:
mov r11, rsp
push r12
sub rsp, 0x1f0
mov rax, qword [0x1402bb040]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
test byte [0x1402c10b8], 1
mov r12d, edx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], rcx
jne 0x140131dff
lock bts qword [0x1402c10b8], 0x1f
setb al
test al, al
jne 0x140131dde
mov qword [r11 - 0x18], rsi
xor ecx, ecx
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x38], r15
mov qword [r11 + 0x20], rbx
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x30], r14
call sym.SystemInformer.exe_Ordinal_1944
mov rcx, rax
mov qword [rsp + 0x20], rax
call sym.SystemInformer.exe_Ordinal_1089
mov rcx, qword gs:[0x30]
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rcx, qword gs:[0x30]
mov rdx, qword [rcx + 0x60]
mov r13, qword [rdx + 0x18]
add r13, 0x10
mov r15, qword [r13]
cmp r15, r13
je 0x140131c2e
nop dword [rax]
cmp word [r15 + 0x58], 0x1c
mov rbx, qword [r15 + 0x60]
jb 0x140131c22
lea r14, str.kernelbase.dll
mov esi, 1
nop dword [rax]
movdqu xmm0, xmmword [rbx]
movdqu xmm1, xmmword [r14]
pcmpeqd xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x140131b4d
add rbx, 0x10
add r14, 0x10
sub rsi, 1
jne 0x140131b20
mov esi, 6
jmp 0x140131b58
shl rsi, 4
add rsi, 0xc
shr rsi, 1
sub r14, rbx
nop dword [rax + rax]
movzx ecx, word [rbx]
movzx ebp, word [r14 + rbx]
cmp cx, bp
je 0x140131b89
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
movzx ecx, bp
movzx edi, ax
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
nop
cmp di, ax
jne 0x140131c22
add rbx, 2
sub rsi, 1
jne 0x140131b60
test r15, r15
je 0x140131c2e
movzx eax, word ds:[r15 + 0x48]
lea rcx, [rsp + 0x38]
mov rdi, qword [r15 + 0x30]
mov esi, dword [r15 + 0x40]
mov qword [rsp + 0x38], rax
mov rax, qword [r15 + 0x50]
mov qword [rsp + 0x40], rax
call sym.SystemInformer.exe_Ordinal_1483
mov rcx, qword gs:[0x30]
mov rbx, rax
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x110]
test rax, rax
je 0x140131c42
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov r9d, esi
mov r8, rdi
mov rsi, qword [rsp + 0x20]
mov rdx, rbx
mov rcx, rsi
call sym.SystemInformer.exe_Ordinal_1949
mov edi, 0xffffffff
lea rcx, [rbx - 0x10]
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140131c52
call fcn.140143da0
nop
jmp 0x140131c52
mov r15, qword [r15]
cmp r15, r13
jne 0x140131b00
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov rsi, qword [rsp + 0x20]
mov edi, 0xffffffff
mov rcx, rsi
call fcn.14015bd60
mov r15, qword ss:[rsp + 0x1c0]
mov r14, qword [rsp + 0x1c8]
mov r13, qword [rsp + 0x1d0]
mov rbp, qword [rsp + 0x1e8]
test al, al
je 0x140131da5
cmp qword [0x1402c61b8], 0
je 0x140131da5
xorps xmm0, xmm0
lea rcx, [0x1402c9418]
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x50], 0x58
mov dword [rsp + 0xa0], 0x80
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
call sym.SystemInformer.exe_Ordinal_1752
mov rcx, qword ds:[rsi + 0x18]
lea r8, [rsp + 0x50]
mov rax, qword [0x1402c61b8]
lea rdx, str.GetAppModelPolicy
call qword [case.0x14013f76a.0]
mov ebx, eax
nop dword [rax + rax]
mov edx, dword [0x1402c9418]
mov eax, edx
cmp edx, 0x400000
jb 0x140131d48
lea ecx, [rdx - 0x3fffff]
lock cmpxchg dword [0x1402c9418], ecx
cmp eax, edx
jne 0x140131d6a
mov rcx, qword [0x1402c9420]
mov edx, 1
jmp 0x140131d7d
mov r9d, edx
mov ecx, edx
shr r9d, 0xc
and r9d, 0x3ff
and ecx, 0xffc00ffe
lock cmpxchg dword [0x1402c9418], ecx
cmp eax, edx
je 0x140131d6e
pause
jmp 0x140131d10
test r9d, r9d
je 0x140131d86
mov rcx, qword [0x1402c9428]
mov edx, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
test ebx, ebx
je 0x140131da5
mov rbx, qword [rsp + 0x88]
mov rdx, rbx
call fcn.140170780
test eax, eax
js 0x140131da5
mov qword [0x1402c90f0], rbx
lea rcx, [rsi - 0x10]
lock xadd dword [rcx + 8], edi
mov rsi, qword [rsp + 0x1e0]
cmp edi, 1
mov rdi, qword [rsp + 0x1d8]
mov rbx, qword [rsp + 0x218]
jne 0x140131dd0
call fcn.140143da0
lea rcx, [0x1402c10b8]
call sym.SystemInformer.exe_Ordinal_1386
jmp 0x140131df5
test byte [0x1402c10b8], 1
jne 0x140131dff
xor edx, edx
lea rcx, [0x1402c10b8]
call sym.SystemInformer.exe_Ordinal_1388
mov r8, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov r9, qword [0x1402c90f0]
test r9, r9
je 0x140131e82
mov eax, dword [0x1402bbf68]
cmp r12d, 0x38
jl 0x140131e1c
cmp eax, 0x72
jb 0x140131e6b
nop dword [rax]
cmp r12d, 0x30
jl 0x140131e2b
cmp eax, 0x6d
jb 0x140131e6b
cmp r12d, 0x2e
jl 0x140131e36
cmp eax, 0x6b
jb 0x140131e6b
cmp r12d, 0x2d
jl 0x140131e45
nop dword [rax]
cmp eax, 0x6a
jb 0x140131e6b
cmp r12d, 0x2a
jl 0x140131e50
cmp eax, 0x69
jb 0x140131e6b
cmp r12d, 0x23
jl 0x140131e5b
cmp eax, 0x68
jb 0x140131e6b
nop dword [rax + rax]
cmp r12d, 0x1f
jl 0x140131e72
cmp eax, 0x67
jae 0x140131e72
mov eax, 0xc0000003
jmp 0x140131e87
mov edx, r12d
mov rax, r9
call qword [case.0x14013f76a.0]
nop
jmp 0x140131e87
mov eax, 0xc000007a
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1401e5e40
add rsp, 0x1f0
pop r12
ret