Function at 0x5268a0
Capabilities:
Inspect section memory permissions

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xb8
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [0x73e1f0]
test eax, eax
jg 0x526b40
mov eax, dword [ebx + 4]
mov edx, eax
or edx, 0x4044
test byte [ebx + 0x10], 1
mov dword [ebx + 4], edx
je 0x526a40
mov edi, dword [ebp - 0x7c]
lea eax, [ebp - 0x4c]
mov ecx, eax
mov dword [ebp - 0x80], eax
mov dword [esp], edi
lea edi, [ebp - 0x2c]
call fcn.00629a30
mov eax, dword [ebp - 0x80]
sub esp, 4
mov ecx, edi
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.00665750
lea eax, [ebp - 0x48]
sub esp, 8
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0x84], eax
call fcn.005abe90
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
test edx, edx
je 0x526944
cmp edx, 0xffffffff
je 0x52695c
lock sub dword [eax], 1
mov eax, dword [ebp - 0x2c]
jne 0x52695c
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
mov eax, dword [ebx + 4]
test eax, 0x40000
je 0x526e40
or eax, 0x1111
mov dword [ebx + 4], eax
or dword [ebx], 0x7177
test esi, 0x400
jne 0x526dc0
test esi, 0x200
je 0x5269e6
mov eax, dword [ebp - 0x7c]
mov ecx, edi
mov dword [esp], eax
call fcn.00628750
sub esp, 4
mov ecx, edi
call fcn.00665e50
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__waccess]
mov edx, dword [ebp - 0x2c]
mov edi, eax
mov ecx, dword [edx]
test ecx, ecx
je 0x526da0
cmp ecx, 0xffffffff
je 0x5269d5
lock sub dword [edx], 1
mov edx, dword [ebp - 0x2c]
je 0x526da0
test edi, edi
jne 0x5269e0
or dword [ebx + 4], 0x200
or dword [ebx], 0x200
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
test edx, edx
je 0x526d80
cmp edx, 0xffffffff
je 0x526a05
lock sub dword [eax], 1
mov eax, dword [ebp - 0x48]
je 0x526d80
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
test edx, edx
je 0x526b21
cmp edx, 0xffffffff
je 0x526a24
lock sub dword [eax], 1
mov eax, dword [ebp - 0x4c]
je 0x526b21
mov eax, dword [ebx]
and eax, esi
cmp eax, esi
sete al
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
or eax, 0x6066
mov dword [ebx + 4], eax
jmp 0x5268e7
mov dword [ebx], eax
lea eax, [ebp - 0x48]
mov dword [esp + 4], 0x7398a8
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_GetEffectiveRightsFromAclW]
sub esp, 0xc
test eax, eax
je 0x527255
or dword [ebx + 4], 0x400
mov dword [ebp - 0x48], 0xffffffff
or dword [ebx + 4], 0x200
or dword [ebx + 4], 0x100
test esi, 0x7000
jne 0x526fe3
test esi, 0x70
jne 0x526f90
test esi, 7
je 0x526af3
lea eax, [ebp - 0x48]
or dword [ebx], 7
mov dword [esp + 4], 0x73956c
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_GetEffectiveRightsFromAclW]
sub esp, 0xc
test eax, eax
je 0x527042
or dword [ebx + 4], 4
mov dword [ebp - 0x48], 0xffffffff
or dword [ebx + 4], 2
or dword [ebx + 4], 0x1000
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, dword [ebp - 0x6c]
mov edx, dword [eax]
test edx, edx
je 0x526b21
cmp edx, 0xffffffff
je 0x526a24
lock sub dword [eax], 1
mov eax, dword [ebp - 0x6c]
jne 0x526a24
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x526a24
mov eax, dword [0x73ba00]
cmp eax, 0xffffffff
jl 0x526b59
movzx eax, byte [0x739360]
test al, al
je 0x526e70
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x6c]
mov dword [esp], eax
call fcn.00628750
lea ecx, [ebp - 0x6c]
sub esp, 4
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
call fcn.00665e50
lea edx, [ebp - 0x5c]
mov dword [esp + 0x18], 0
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [esp + 0x1c], edx
lea edx, [ebp - 0x60]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x64]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x68]
mov dword [esp + 0xc], edx
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
sub esp, 0x20
test eax, eax
jne 0x526b02
test esi, 0x700
je 0x526a94
mov eax, dword [ebx]
mov edi, dword [0x73b890]
or ah, 7
test edi, edi
je 0x526a50
lea edi, [ebp - 0x50]
mov dword [ebx], eax
lea eax, [ebp - 0x48]
movdqa xmm0, xmmword [0x745ae0]
mov dword [esp], edi
mov edi, dword [sym.imp.ADVAPI32.dll_MapGenericMask]
movaps xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x50], 0x80000000
mov dword [ebp - 0x84], eax
mov dword [esp + 4], eax
mov dword [ebp - 0x7c], edi
call edi
mov eax, dword [ebp - 0x84]
sub esp, 8
lea edi, [ebp - 0x54]
mov dword [ebp - 0x4c], 0x14
mov dword [esp + 0x1c], edi
lea edi, [ebp - 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0x18], edi
lea edi, [ebp - 0x4c]
mov dword [esp + 8], eax
mov eax, dword [0x73b890]
mov dword [ebp - 0x80], edi
mov dword [esp + 0x14], edi
lea edi, [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x10], edi
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_AccessCheck]
mov dword [ebp - 0x88], eax
call eax
sub esp, 0x20
test eax, eax
je 0x526c82
mov ecx, dword [ebp - 0x54]
test ecx, ecx
jne 0x527180
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x4c], 0x14
mov dword [ebp - 0x50], 0x40000000
mov dword [esp], ecx
mov ecx, dword [ebp - 0x7c]
mov dword [esp + 4], eax
call ecx
mov eax, dword [ebp - 0x84]
sub esp, 8
lea ecx, [ebp - 0x54]
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ecx
lea ecx, [ebp - 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x80]
mov dword [esp + 8], eax
mov eax, dword [0x73b890]
mov dword [esp + 0x14], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
mov eax, dword [ebp - 0x88]
call eax
sub esp, 0x20
test eax, eax
je 0x526cfb
mov edx, dword [ebp - 0x54]
test edx, edx
jne 0x527170
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x4c], 0x14
mov dword [ebp - 0x50], 0x20000000
mov dword [esp], ecx
mov ecx, dword [ebp - 0x7c]
mov dword [esp + 4], eax
call ecx
mov eax, dword [ebp - 0x84]
sub esp, 8
lea ecx, [ebp - 0x54]
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ecx
lea ecx, [ebp - 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x80]
mov dword [esp + 8], eax
mov eax, dword [0x73b890]
mov dword [esp + 0x14], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
mov eax, dword [ebp - 0x88]
call eax
sub esp, 0x20
test eax, eax
je 0x526a94
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x526a94
jmp 0x526a8d
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x526a05
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], edx
call fcn.004a4c50
jmp 0x5269d5
mov eax, dword [ebp - 0x7c]
mov ecx, edi
mov dword [esp], eax
call fcn.00628750
sub esp, 4
mov ecx, edi
call fcn.00665e50
mov dword [esp + 4], 4
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__waccess]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx]
test ecx, ecx
je 0x526e15
cmp ecx, 0xffffffff
je 0x526dff
lock sub dword [edx], 1
mov edx, dword [ebp - 0x2c]
je 0x526e15
test eax, eax
jne 0x526e0a
or dword [ebx + 4], 0x400
or dword [ebx], 0x400
jmp 0x526984
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], edx
mov dword [ebp - 0x88], eax
call fcn.004a4c50
mov eax, dword [ebp - 0x88]
jmp 0x526dff
mov ecx, dword [ebp - 0x84]
mov dword [esp], 4
mov dword [esp + 4], 0x745a4e
call fcn.00667b90
sub esp, 8
test al, al
je 0x527070
mov eax, dword [ebx + 4]
jmp 0x52696a
mov dword [esp], 0x739360
call fcn.0070b990
test eax, eax
je 0x526b59
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
mov dword [esp + 4], 8
mov dword [esp], edi
mov dword [ebp - 0x80], eax
mov dword [esp + 8], eax
mov eax, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x88], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x5271e3
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x4c], 0
mov dword [esp + 4], 0x2000e
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x88]
call eax
sub esp, 0xc
test eax, eax
jne 0x5271b0
mov eax, 0x100
mov dword [ebp - 0x2c], 0
mov dword [esp + 0x28], 0x73b8a8
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x2c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
sub esp, 0x2c
test eax, eax
jne 0x527190
mov dword [0x73ba00], 0xffffffff
mov dword [esp], 0x739360
call fcn.0070bac0
mov dword [esp], 0x70cb30
call fcn.004014c0
jmp 0x526b59
mov eax, dword [ebp - 0x64]
lea edi, [ebp - 0x2c]
or dword [ebx], 0x70
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
lea eax, [ebp - 0x48]
sub esp, 8
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_GetEffectiveRightsFromAclW]
sub esp, 0xc
test eax, eax
je 0x527110
or dword [ebx + 4], 0x40
mov dword [ebp - 0x48], 0xffffffff
or dword [ebx + 4], 0x20
or dword [ebx + 4], 0x10
jmp 0x526aac
mov eax, dword [ebp - 0x68]
lea edi, [ebp - 0x2c]
or dword [ebx], 0x7000
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
lea eax, [ebp - 0x48]
sub esp, 8
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_GetEffectiveRightsFromAclW]
sub esp, 0xc
test eax, eax
je 0x527140
or dword [ebx + 4], 0x4000
mov dword [ebp - 0x48], 0xffffffff
or dword [ebx + 4], 0x2000
or dword [ebx + 4], 0x1000
jmp 0x526aa0
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, eax
and ecx, 2
and edx, 0x20
test al, 1
jne 0x5273a6
test ecx, ecx
jne 0x5273af
test edx, edx
je 0x526af3
jmp 0x526aec
mov ecx, dword [ebp - 0x84]
mov dword [esp], 4
mov dword [esp + 4], 0x745a53
call fcn.00667b90
sub esp, 8
test al, al
jne 0x526e65
mov ecx, dword [ebp - 0x84]
mov dword [esp], 4
mov dword [esp + 4], 0x745a58
call fcn.00667b90
sub esp, 8
test al, al
jne 0x526e65
mov ecx, dword [ebp - 0x84]
mov dword [esp], 4
mov dword [esp + 4], str..pif
call fcn.00667b90
sub esp, 8
test al, al
jne 0x526e65
mov ecx, dword [ebp - 0x84]
mov dword [esp], 4
mov dword [esp + 4], 0x745a62
call fcn.00667b90
sub esp, 8
test al, al
je 0x526972
jmp 0x526e65
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, eax
and ecx, 2
and edx, 0x20
test al, 1
jne 0x527380
test ecx, ecx
jne 0x52724c
test edx, edx
je 0x526aac
jmp 0x526fda
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, eax
and ecx, 2
and edx, 0x20
test al, 1
jne 0x527368
test ecx, ecx
jne 0x527240
test edx, edx
je 0x526aa0
jmp 0x527036
or dword [ebx + 4], 0x200
jmp 0x526cfb
or dword [ebx + 4], 0x400
jmp 0x526c82
mov eax, dword [0x73b8a8]
mov dword [esp], 0x73956c
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
sub esp, 8
jmp 0x526f63
mov eax, dword [ebp - 0x4c]
mov dword [esp + 8], 0x73b890
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
mov eax, dword [ebp - 0x4c]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x526eec
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [ebp - 0x84], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x8c], eax
call eax
mov edx, dword [ebp - 0x48]
sub esp, 0x14
test edx, edx
jne 0x52727f
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x526ec0
or dword [ebx + 4], 0x2000
jmp 0x52715d
or dword [ebx + 4], 0x20
jmp 0x52712d
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, eax
and ecx, 2
and edx, 0x20
test al, 1
jne 0x52741c
test ecx, ecx
jne 0x527410
test edx, edx
je 0x526a94
jmp 0x526a8d
mov dword [esp], edx
mov dword [ebp - 0x94], edx
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x94]
je 0x52735b
mov eax, dword [ebp - 0x84]
mov dword [esp + 0xc], edx
mov dword [esp + 4], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x90]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
mov eax, dword [ebp - 0x8c]
call eax
sub esp, 0x14
test eax, eax
jne 0x5272e9
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x52722c
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
mov dword [ebp - 0x84], eax
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
sub esp, 4
mov dword [ebp - 0x8c], eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [0x739580], eax
je 0x527374
mov ecx, dword [ebp - 0x84]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
sub esp, 0xc
test eax, eax
je 0x5272d6
mov eax, dword [0x739580]
mov dword [esp], 0x7398a8
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
push eax
push eax
jmp 0x5272d6
call fcn.0071fff4
mov edx, dword [ebp - 0x48]
jmp 0x5272a1
or dword [ebx + 4], 0x4000
jmp 0x527155
call fcn.0071fff4
mov eax, dword [0x739580]
jmp 0x52731a
or dword [ebx + 4], 0x40
jmp 0x527125
or dword [ebx + 4], 4
jmp 0x527057
or dword [ebx + 4], 2
jmp 0x52705f
or dword [ebx + 4], 0x200
jmp 0x527272
or dword [ebx + 4], 0x400
jmp 0x52726a