Function at 0x10039519
Capabilities:
Inspect section memory permissions

Disassembly:
push 0x38
mov eax, 0x10092869
call fcn.1008f84a
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], edi
test cl, 4
je 0x1003953c
or ecx, 3
test cl, 1
je 0x10039548
mov dword [ebp + 0xc], 0x40000000
test cl, 2
je 0x10039554
or dword [ebp + 0xc], 0x80000000
test cl, 8
je 0x10039560
or dword [ebp + 0xc], 0x10000
test cl, 0x10
je 0x10039569
or dword [ebp + 0xc], 0x40
test ecx, 0x400
je 0x10039578
or dword [ebp + 0xc], 0x20000000
test ecx, 0x800
je 0x10039587
or dword [ebp + 0xc], 0x40000
test ecx, 0x1000
je 0x10039596
or dword [ebp + 0xc], 0x80000
neg eax
sbb eax, eax
and eax, 3
lea esi, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], edi
xor ebx, ebx
call fcn.10038b25
test eax, eax
je 0x100395b6
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
cmp dword [ebp - 0x10], edi
jne 0x100395d7
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
call fcn.1008f922
ret 0xc
push 0xffffffffffffffff
push edi
mov ecx, 0x101175b8
call sub.mfc90u.dll_CStringArray::SetSize
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push 4
push 1
mov esi, 0x104
push esi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 0x18], eax
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
cmp dword [ebp - 0x18], edi
je 0x1003962e
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100395bb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x44]
push eax
push 1
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x1003961b
push edi
push dword [ebp - 0x14]
lea ecx, [ebp + 8]
push edi
push edi
push 4
push 1
push esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
push esi
lea ecx, [ebp + 8]
mov ebx, eax
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp ebx, edi
je 0x100396bc
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, edi
jmp 0x100395cf
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
inc edi
jmp 0x100396a3