Function at 0x10476ac
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x10aa090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
and dword [ebx + 4], eax
and dword [ebx + 8], eax
lea edi, [ebp - 0xb4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 0xb4]
push ecx
push 0x1007494
mov dword [ebx], 0x74
stosd dword es:[edi], eax
mov eax, dword [esi]
push esi
mov dword [ebp - 0xbc], esi
call dword [eax + 0x14]
test eax, eax
jge 0x105175d
mov edi, dword [sym.imp.ole32.dll_PropVariantClear]
lea eax, [ebp - 0xb4]
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0xb4]
push ecx
push 0x10074a8
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x1051796
lea eax, [ebp - 0xb4]
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0xb4]
push ecx
push 0x10074bc
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x10517cf
lea eax, [ebp - 0xb4]
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0xb4]
push ecx
push 0x10074d0
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x1051809
lea eax, [ebp - 0xb4]
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0xb4]
push ecx
push 0x10074e4
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x1051843
lea eax, [ebp - 0xb4]
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0xb4]
push ecx
push 0x100746c
push esi
call dword [eax + 0x14]
test eax, eax
jl 0x1047848
push 0x20
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToString]
push 0x1004fe8
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1047848
lea eax, [ebp - 0x44]
push eax
push 0x20
lea eax, [ebx + 0x1a]
push eax
call fcn.01005055
or dword [ebx + 4], 0x20000000
cmp dword [ebp + 0x10], 0
je 0x1047848
push 0x5c
lea eax, [ebp - 0xa0]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push 0x20
lea eax, [ebp - 0x84]
push eax
call fcn.01005055
lea eax, [ebp - 0xa0]
push eax
mov byte [ebp - 0x89], 1
call fcn.01047965
mov al, byte [ebp - 0x89]
cmp al, 1
je 0x1047848
or dword [ebx + 4], 0x8000000
mov byte [ebx + 0x18], al
lea eax, [ebp - 0xb4]
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0xb4]
push ecx
push 0x1007480
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x1051896
lea eax, [ebp - 0xb4]
push eax
call edi
xor eax, eax
lea edi, [ebp - 0xcc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 0xb4]
push ecx
push 0x100510c
stosd dword es:[edi], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov edi, 0x40000000
test eax, eax
jge 0x1051909
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [esi]
lea ecx, [ebp - 0xcc]
push ecx
push 0x1047938
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x1051935
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [esi]
lea ecx, [ebp - 0xb4]
push ecx
push 0x1005120
push esi
call dword [eax + 0x14]
mov edi, 0x4000000
test eax, eax
jge 0x105195a
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [esi]
lea ecx, [ebp - 0xcc]
push ecx
push 0x104794c
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x1051986
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010044ba
leave
ret 0xc
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
cmp dword [ebp - 0xa4], 0
je 0x1047705
or dword [ebx + 4], 1
xor eax, eax
cmp dword [ebp - 0xa4], 2
sete al
or dword [ebx + 8], eax
jmp 0x1047705
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
cmp dword [ebp - 0xa4], 0
je 0x104772e
push 2
pop eax
or dword [ebx + 4], eax
cmp dword [ebp - 0xa4], eax
je 0x10517c7
xor eax, eax
or dword [ebx + 8], eax
jmp 0x104772e
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
cmp dword [ebp - 0xa4], 0
je 0x1047751
push 4
pop eax
or dword [ebx + 4], eax
cmp dword [ebp - 0xa4], 2
je 0x1051801
xor eax, eax
or dword [ebx + 8], eax
jmp 0x1047751
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
cmp dword [ebp - 0xa4], 0
je 0x1047774
push 8
pop eax
or dword [ebx + 4], eax
cmp dword [ebp - 0xa4], 2
je 0x105183b
xor eax, eax
or dword [ebx + 8], eax
jmp 0x1047774
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
cmp dword [ebp - 0xa4], 0
je 0x1047797
or dword [ebx + 4], 0x30000
cmp dword [ebp - 0xa4], 1
je 0x1047797
xor ecx, ecx
cmp dword [ebp - 0xa4], 2
mov eax, 0x10000
setne cl
dec ecx
and ecx, eax
add ecx, eax
or dword [ebx + 8], ecx
jmp 0x1047797
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
lea esi, [ebp - 0xb4]
lea edi, [ebp - 0xe4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xd4]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0xe4]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.OLEAUT32.dll_VarDateFromI1]
fldz
fcomp qword [ebp - 0xd4]
fnstsw ax
test ah, 5
jp 0x10518f8
fld qword [ebp - 0xd4]
or dword [ebx + 4], 0x80000000
fmul qword [0x1004578]
call sub.msvcrt.dll__ftol2_sse
mov dword [ebx + 0xc], eax
mov edi, dword [sym.imp.ole32.dll_PropVariantClear]
mov esi, dword [ebp - 0xbc]
jmp 0x104786b
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
cmp dword [ebp - 0xa4], 1
jne 0x104789f
or dword [ebx + 4], edi
or dword [ebx + 8], edi
jmp 0x104789f
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
mov eax, dword [ebp - 0xb8]
or dword [ebx + 4], edi
mov dword [ebx + 0x14], eax
jmp 0x10478c6
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
cmp dword [ebp - 0xa4], 0
jne 0x10478f2
or dword [ebx + 4], edi
or dword [ebx + 8], edi
jmp 0x10478f2
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToUInt32]
mov eax, dword [ebp - 0xb8]
or dword [ebx + 4], edi
mov dword [ebx + 0x60], eax
jmp 0x1047919