Function at 0x452c40
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ef85
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6fb4c0]
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 [0x6fe89c], 0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
jle 0x452f5a
mov eax, dword [0x6fe8d4]
cmp eax, 0xfffffffe
jle 0x452c8d
call fcn.00453f80
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call fcn.0044cc70
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.0040d690
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x452f34
test dword [ebp + 0x10], 0x700
mov edi, dword [sym.imp.ADVAPI32.dll_GetEffectiveRightsFromAclW]
je 0x452e49
mov eax, dword [esi]
or eax, 0x700
cmp dword [0x6fe8d0], 0
mov dword [esi], eax
je 0x452e0b
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 [0x6fe8d0]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
je 0x452d74
cmp dword [ebp - 0x54], 0
je 0x452d74
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 [0x6fe8d0]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
je 0x452dc3
cmp dword [ebp - 0x54], 0
je 0x452dc3
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 [0x6fe8d0]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
je 0x452e49
cmp dword [ebp - 0x54], 0
jmp 0x452e40
lea eax, [ebp - 0x40]
push eax
push 0x6fe8a0
push dword [ebp - 0x3c]
call edi
test eax, eax
je 0x452e25
or eax, 0xffffffff
mov dword [ebp - 0x40], eax
jmp 0x452e28
mov eax, dword [ebp - 0x40]
test al, 1
je 0x452e33
or dword [esi + 4], 0x400
test al, 2
je 0x452e3e
or dword [esi + 4], 0x200
test al, 0x20
je 0x452e49
or dword [esi + 4], 0x100
test dword [ebp + 0x10], 0x7000
mov ebx, dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
je 0x452ea4
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 0x452e80
or eax, 0xffffffff
mov dword [ebp - 0x40], eax
jmp 0x452e83
mov eax, dword [ebp - 0x40]
test al, 1
je 0x452e8e
or dword [esi + 4], 0x4000
test al, 2
je 0x452e99
or dword [esi + 4], 0x2000
test al, 0x20
je 0x452ea4
or dword [esi + 4], 0x1000
test byte [ebp + 0x10], 0x70
je 0x452eea
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 0x452ecf
or eax, 0xffffffff
mov dword [ebp - 0x40], eax
jmp 0x452ed2
mov eax, dword [ebp - 0x40]
test al, 1
je 0x452eda
or dword [esi + 4], 0x40
test al, 2
je 0x452ee2
or dword [esi + 4], 0x20
test al, 0x20
je 0x452eea
or dword [esi + 4], 0x10
test byte [ebp + 0x10], 7
je 0x452f2b
or dword [esi], 7
lea eax, [ebp - 0x40]
push eax
push 0x6fe8b4
push dword [ebp - 0x3c]
call edi
test eax, eax
je 0x452f0d
or eax, 0xffffffff
mov dword [ebp - 0x40], eax
jmp 0x452f10
mov eax, dword [ebp - 0x40]
test al, 1
je 0x452f18
or dword [esi + 4], 4
test al, 2
je 0x452f20
or dword [esi + 4], 2
test al, 0x20
je 0x452f2b
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 0x453177
cmp eax, 0xffffffff
je 0x453186
mov eax, dword [ebp - 0x44]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
jmp 0x453170
mov eax, dword [esi + 4]
or eax, 0x4044
mov dword [esi + 4], eax
test byte [esi + 0x10], 1
jne 0x452f73
or eax, 0x2022
mov dword [esi + 4], eax
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call fcn.0044c7a0
push 4
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x44]
call fcn.0040be10
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
call fcn.0040cb70
add esp, 8
mov eax, dword [ebp - 0x4c]
or edi, 0xffffffff
mov byte [ebp - 4], 4
mov eax, dword [eax]
test eax, eax
je 0x452fc9
cmp eax, edi
je 0x452fd8
mov eax, dword [ebp - 0x4c]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x452fd8
push 4
push 2
push dword [ebp - 0x4c]
call fcn.00403690
add esp, 0xc
test dword [esi + 4], 0x40000
jne 0x453040
push 0x55b548
push 4
lea ecx, [ebp - 0x38]
call fcn.00405fd0
test al, al
jne 0x453040
push 0x5cd330
push 4
lea ecx, [ebp - 0x38]
call fcn.00405fd0
test al, al
jne 0x453040
push 0x5cd338
push 4
lea ecx, [ebp - 0x38]
call fcn.00405fd0
test al, al
jne 0x453040
push str..pif
push 4
lea ecx, [ebp - 0x38]
call fcn.00405fd0
test al, al
jne 0x453040
push 0x5cd348
push 4
lea ecx, [ebp - 0x38]
call fcn.00405fd0
test al, al
je 0x453047
or dword [esi + 4], 0x1111
or dword [esi], 0x7177
mov eax, dword [ebp + 0x10]
test eax, 0x400
je 0x4530c3
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.0044cc70
push 4
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040d690
push eax
call fcn.00532a36
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 0x45309e
cmp ecx, 0xffffffff
je 0x4530ad
mov eax, dword [ebp - 0x3c]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4530ad
push 4
push 2
push dword [ebp - 0x3c]
call fcn.00403690
add esp, 0xc
cmp dword [ebp - 0x48], 0
jne 0x4530ba
or dword [esi + 4], 0x400
or dword [esi], 0x400
mov eax, dword [ebp + 0x10]
test eax, 0x200
je 0x45312c
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.0044cc70
push 2
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0040d690
push eax
call fcn.00532a36
mov ecx, dword [ebp - 0x3c]
add esp, 8
mov ebx, eax
mov ecx, dword [ecx]
test ecx, ecx
je 0x45310c
cmp ecx, 0xffffffff
je 0x45311b
mov eax, dword [ebp - 0x3c]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x45311b
push 4
push 2
push dword [ebp - 0x3c]
call fcn.00403690
add esp, 0xc
test ebx, ebx
jne 0x453126
or dword [esi + 4], 0x200
or dword [esi], 0x200
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
test eax, eax
je 0x45314b
cmp eax, 0xffffffff
je 0x45315a
mov eax, dword [ebp - 0x38]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x45315a
push 4
push 2
push dword [ebp - 0x38]
call fcn.00403690
add esp, 0xc
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
test eax, eax
je 0x453177
cmp eax, 0xffffffff
je 0x453186
mov eax, dword [ebp - 0x44]
lock xadd dword [eax], edi
dec edi
setne al
test al, al
jne 0x453186
push 4
push 2
push dword [ebp - 0x44]
call fcn.00403690
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.00524900
mov esp, ebp
pop ebp
ret