Function at 0x452e80
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f115
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6f9540]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x6fc91c], 0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
jle 0x45319a
mov eax, dword [0x6fc954]
cmp eax, 0xfffffffe
jle 0x452ecd
call fcn.004541c0
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call fcn.0044cea0
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0
push eax
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x5c], 0
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x5c]
push eax
push 7
push 1
lea ecx, [ebp - 0x44]
call fcn.0040dd20
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x453174
test dword [ebp + 0x10], 0x700
mov edi, dword [sym.imp.ADVAPI32.dll_GetEffectiveRightsFromAclW]
je 0x453089
mov eax, dword [esi]
or eax, 0x700
cmp dword [0x6fc950], 0
mov dword [esi], eax
je 0x45304b
mov ebx, dword [sym.imp.ADVAPI32.dll_MapGenericMask]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x20], 0x120089
push eax
mov dword [ebp - 0x1c], 0x120116
mov dword [ebp - 0x18], 0x1200a0
mov dword [ebp - 0x14], 0x1f01ff
mov dword [ebp - 0x38], 0x80000000
call ebx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x50], 0x14
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x38]
push dword [0x6fc950]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
je 0x452fb4
cmp dword [ebp - 0x54], 0
je 0x452fb4
or dword [esi + 4], 0x400
lea eax, [ebp - 0x20]
mov dword [ebp - 0x50], 0x14
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x40000000
push eax
call ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x38]
push dword [0x6fc950]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
je 0x453003
cmp dword [ebp - 0x54], 0
je 0x453003
or dword [esi + 4], 0x200
lea eax, [ebp - 0x20]
mov dword [ebp - 0x50], 0x14
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x20000000
push eax
call ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x38]
push dword [0x6fc950]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
je 0x453089
cmp dword [ebp - 0x54], 0
jmp 0x453080
lea eax, [ebp - 0x40]
push eax
push 0x6fc920
push dword [ebp - 0x3c]
call edi
test eax, eax
je 0x453065
or eax, 0xffffffff
mov dword [ebp - 0x40], eax
jmp 0x453068
mov eax, dword [ebp - 0x40]
test al, 1
je 0x453073
or dword [esi + 4], 0x400
test al, 2
je 0x45307e
or dword [esi + 4], 0x200
test al, 0x20
je 0x453089
or dword [esi + 4], 0x100
test dword [ebp + 0x10], 0x7000
mov ebx, dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
je 0x4530e4
push dword [ebp - 0x5c]
or dword [esi], 0x7000
lea eax, [ebp - 0x70]
push eax
call ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x3c]
call edi
test eax, eax
je 0x4530c0
or eax, 0xffffffff
mov dword [ebp - 0x40], eax
jmp 0x4530c3
mov eax, dword [ebp - 0x40]
test al, 1
je 0x4530ce
or dword [esi + 4], 0x4000
test al, 2
je 0x4530d9
or dword [esi + 4], 0x2000
test al, 0x20
je 0x4530e4
or dword [esi + 4], 0x1000
test byte [ebp + 0x10], 0x70
je 0x45312a
push dword [ebp - 0x48]
or dword [esi], 0x70
lea eax, [ebp - 0x70]
push eax
call ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x3c]
call edi
test eax, eax
je 0x45310f
or eax, 0xffffffff
mov dword [ebp - 0x40], eax
jmp 0x453112
mov eax, dword [ebp - 0x40]
test al, 1
je 0x45311a
or dword [esi + 4], 0x40
test al, 2
je 0x453122
or dword [esi + 4], 0x20
test al, 0x20
je 0x45312a
or dword [esi + 4], 0x10
test byte [ebp + 0x10], 7
je 0x45316b
or dword [esi], 7
lea eax, [ebp - 0x40]
push eax
push 0x6fc934
push dword [ebp - 0x3c]
call edi
test eax, eax
je 0x45314d
or eax, 0xffffffff
mov dword [ebp - 0x40], eax
jmp 0x453150
mov eax, dword [ebp - 0x40]
test al, 1
je 0x453158
or dword [esi + 4], 4
test al, 2
je 0x453160
or dword [esi + 4], 2
test al, 0x20
je 0x45316b
or dword [esi + 4], 0x1000
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
test eax, eax
je 0x4533b7
cmp eax, 0xffffffff
je 0x4533c6
mov eax, dword [ebp - 0x44]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
jmp 0x4533b0
mov eax, dword [esi + 4]
or eax, 0x4044
mov dword [esi + 4], eax
test byte [esi + 0x10], 1
jne 0x4531b3
or eax, 0x2022
mov dword [esi + 4], eax
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call fcn.0044c9d0
push 4
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x44]
call fcn.0040c4a0
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
call fcn.0040d200
add esp, 8
mov eax, dword [ebp - 0x4c]
or edi, 0xffffffff
mov byte [ebp - 4], 4
mov eax, dword [eax]
test eax, eax
je 0x453209
cmp eax, edi
je 0x453218
mov eax, dword [ebp - 0x4c]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x453218
push 4
push 2
push dword [ebp - 0x4c]
call fcn.00403d20
add esp, 0xc
test dword [esi + 4], 0x40000
jne 0x453280
push 0x55b548
push 4
lea ecx, [ebp - 0x38]
call fcn.00406660
test al, al
jne 0x453280
push 0x5cd140
push 4
lea ecx, [ebp - 0x38]
call fcn.00406660
test al, al
jne 0x453280
push 0x5cd148
push 4
lea ecx, [ebp - 0x38]
call fcn.00406660
test al, al
jne 0x453280
push str..pif
push 4
lea ecx, [ebp - 0x38]
call fcn.00406660
test al, al
jne 0x453280
push 0x5cd158
push 4
lea ecx, [ebp - 0x38]
call fcn.00406660
test al, al
je 0x453287
or dword [esi + 4], 0x1111
or dword [esi], 0x7177
mov eax, dword [ebp + 0x10]
test eax, 0x400
je 0x453303
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.0044cea0
push 4
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040dd20
push eax
call fcn.00532c46
mov ecx, dword [ebp - 0x3c]
add esp, 8
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 4
mov ecx, dword [ecx]
test ecx, ecx
je 0x4532de
cmp ecx, 0xffffffff
je 0x4532ed
mov eax, dword [ebp - 0x3c]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4532ed
push 4
push 2
push dword [ebp - 0x3c]
call fcn.00403d20
add esp, 0xc
cmp dword [ebp - 0x48], 0
jne 0x4532fa
or dword [esi + 4], 0x400
or dword [esi], 0x400
mov eax, dword [ebp + 0x10]
test eax, 0x200
je 0x45336c
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.0044cea0
push 2
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0040dd20
push eax
call fcn.00532c46
mov ecx, dword [ebp - 0x3c]
add esp, 8
mov ebx, eax
mov ecx, dword [ecx]
test ecx, ecx
je 0x45334c
cmp ecx, 0xffffffff
je 0x45335b
mov eax, dword [ebp - 0x3c]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x45335b
push 4
push 2
push dword [ebp - 0x3c]
call fcn.00403d20
add esp, 0xc
test ebx, ebx
jne 0x453366
or dword [esi + 4], 0x200
or dword [esi], 0x200
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
test eax, eax
je 0x45338b
cmp eax, 0xffffffff
je 0x45339a
mov eax, dword [ebp - 0x38]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x45339a
push 4
push 2
push dword [ebp - 0x38]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
test eax, eax
je 0x4533b7
cmp eax, 0xffffffff
je 0x4533c6
mov eax, dword [ebp - 0x44]
lock xadd dword [eax], edi
dec edi
setne al
test al, al
jne 0x4533c6
push 4
push 2
push dword [ebp - 0x44]
call fcn.00403d20
add esp, 0xc
mov ecx, dword [esi]
and ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp + 0x10]
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00524b20
mov esp, ebp
pop ebp
ret