Function at 0x491976
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [0x4b8d54]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
push edi
push 0x74
lea eax, [esp + 0x54]
mov dword [esp + 0x28], ecx
push 0
push eax
mov ebx, edx
call sub.msvcrt.dll_memset
add esp, 0xc
lea esi, [esp + 0x50]
mov edi, ebx
xor eax, eax
push 0x1d
pop ecx
rep movsd dword es:[edi], dword [esi]
and dword [ebx + 4], 0
lea edi, [esp + 0x10]
and dword [ebx + 8], 0
stosd dword es:[edi], eax
mov dword [ebx], 0x74
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov edi, dword [esp + 0x24]
push eax
push 0x4160f8
push edi
mov esi, dword [edi]
mov ecx, dword [esi + 0x14]
call dword [0x4bc1e4]
call dword [esi + 0x14]
test eax, eax
js 0x491a18
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
cmp dword [esp + 0xc], 0
je 0x491a18
or dword [ebx + 4], 1
xor eax, eax
cmp dword [esp + 0xc], 2
sete al
or dword [ebx + 8], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov esi, dword [edi]
lea eax, [esp + 0x10]
push eax
push 0x4160e4
push edi
mov ecx, dword [esi + 0x14]
call dword [0x4bc1e4]
call dword [esi + 0x14]
test eax, eax
js 0x491a6c
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
cmp dword [esp + 0xc], 0
je 0x491a6c
or dword [ebx + 4], 2
cmp dword [esp + 0xc], 2
jne 0x491a67
push 2
pop eax
jmp 0x491a69
xor eax, eax
or dword [ebx + 8], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov esi, dword [edi]
lea eax, [esp + 0x10]
push eax
push 0x4160d0
push edi
mov ecx, dword [esi + 0x14]
call dword [0x4bc1e4]
call dword [esi + 0x14]
test eax, eax
js 0x491abd
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
cmp dword [esp + 0xc], 0
je 0x491abd
push 4
pop eax
or dword [ebx + 4], eax
cmp dword [esp + 0xc], 2
je 0x491aba
xor eax, eax
or dword [ebx + 8], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov esi, dword [edi]
lea eax, [esp + 0x10]
push eax
push 0x4160bc
push edi
mov ecx, dword [esi + 0x14]
call dword [0x4bc1e4]
call dword [esi + 0x14]
test eax, eax
js 0x491b0e
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
cmp dword [esp + 0xc], 0
je 0x491b0e
push 8
pop eax
or dword [ebx + 4], eax
cmp dword [esp + 0xc], 2
je 0x491b0b
xor eax, eax
or dword [ebx + 8], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov esi, dword [edi]
lea eax, [esp + 0x10]
push eax
push 0x4160a8
push edi
mov ecx, dword [esi + 0x14]
call dword [0x4bc1e4]
call dword [esi + 0x14]
test eax, eax
js 0x491b6f
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x491b6f
or dword [ebx + 4], 0x30000
cmp ecx, 1
je 0x491b6f
xor eax, eax
cmp ecx, 2
mov ecx, 0x10000
setne al
dec eax
and eax, ecx
add eax, ecx
or dword [ebx + 8], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov esi, dword [edi]
lea eax, [esp + 0x10]
push eax
push 0x416120
push edi
mov ecx, dword [esi + 0x14]
call dword [0x4bc1e4]
call dword [esi + 0x14]
test eax, eax
js 0x491c50
push 0x20
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToString]
push 0x415fa8
lea eax, [esp + 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x491c50
lea eax, [esp + 0xc8]
push eax
push 0x20
lea ecx, [ebx + 0x1a]
pop edx
call fcn.0043de6c
or dword [ebx + 4], 0x20000000
lea eax, [esp + 0x50]
push 0x5c
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0xc8]
lea ecx, [esp + 0x6c]
push eax
push 0x20
pop edx
call fcn.0043de6c
push 0
mov byte [esp + 0x6b], 1
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x491c3e
push 0
lea eax, [esp + 0x6b]
push eax
push 0x491960
lea eax, [esp + 0x5c]
push eax
push esi
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExW]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov al, byte [esp + 0x67]
cmp al, 1
je 0x491c50
or dword [ebx + 4], 0x8000000
mov byte [ebx + 0x18], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov esi, dword [edi]
lea eax, [esp + 0x10]
push eax
push 0x41610c
push edi
mov ecx, dword [esi + 0x14]
call dword [0x4bc1e4]
call dword [esi + 0x14]
test eax, eax
js 0x491cce
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
lea esi, [esp + 0x10]
lea edi, [esp + 0x40]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x44]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.OLEAUT32.dll_VarDateFromI1]
fldz
fld qword [esp + 0x38]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x491ccc
fmul qword [0x435a58]
or dword [ebx + 4], 0x80000000
call sub.msvcrt.dll__ftol2_sse
mov dword [ebx + 0xc], eax
jmp 0x491cce
fstp st(0)
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
xor eax, eax
lea edi, [esp + 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov edi, dword [esp + 0x24]
push eax
push 0x41606c
push edi
mov esi, dword [edi]
mov ecx, dword [esi + 0x14]
call dword [0x4bc1e4]
call dword [esi + 0x14]
mov esi, 0x40000000
test eax, eax
js 0x491d26
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
cmp dword [esp + 0xc], 1
jne 0x491d26
or dword [ebx + 4], esi
or dword [ebx + 8], esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov esi, dword [edi]
lea eax, [esp + 0x28]
push eax
push 0x416094
push edi
mov ecx, dword [esi + 0x14]
call dword [0x4bc1e4]
call dword [esi + 0x14]
test eax, eax
js 0x491d6c
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
mov eax, dword [esp + 0x20]
or dword [ebx + 4], 0x40000000
mov dword [ebx + 0x14], eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov esi, dword [edi]
lea eax, [esp + 0x10]
push eax
push 0x416058
push edi
mov ecx, dword [esi + 0x14]
call dword [0x4bc1e4]
call dword [esi + 0x14]
mov esi, 0x4000000
test eax, eax
js 0x491db6
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
cmp dword [esp + 0xc], 0
jne 0x491db6
or dword [ebx + 4], esi
or dword [ebx + 8], esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov esi, dword [edi]
lea eax, [esp + 0x28]
push eax
push 0x416080
push edi
mov ecx, dword [esi + 0x14]
call dword [0x4bc1e4]
call dword [esi + 0x14]
test eax, eax
js 0x491dfc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
mov eax, dword [esp + 0x20]
or dword [ebx + 4], 0x4000000
mov dword [ebx + 0x60], eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a79c0
mov esp, ebp
pop ebp
ret 4