Function at 0x1022830
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 0x1007918
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 0x105207d
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 0x100792c
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x10520b6
lea eax, [ebp - 0xb4]
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0xb4]
push ecx
push 0x1007940
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x10520ef
lea eax, [ebp - 0xb4]
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0xb4]
push ecx
push 0x1007954
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x1052129
lea eax, [ebp - 0xb4]
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0xb4]
push ecx
push 0x1007968
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x1052163
lea eax, [ebp - 0xb4]
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0xb4]
push ecx
push 0x10078f0
push esi
call dword [eax + 0x14]
test eax, eax
jl 0x10229cc
push 0x20
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.PROPSYS.dll_PropVariantToString]
push 0x10046c8
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10229cc
lea eax, [ebp - 0x44]
push eax
push 0x20
lea eax, [ebx + 0x1a]
push eax
call fcn.01007d34
or dword [ebx + 4], 0x20000000
cmp dword [ebp + 0x10], 0
je 0x10229cc
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.01007d34
lea eax, [ebp - 0xa0]
push eax
mov byte [ebp - 0x89], 1
call fcn.01022ae9
mov al, byte [ebp - 0x89]
cmp al, 1
je 0x10229cc
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 0x1007904
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x10521b6
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 0x1007e60
stosd dword es:[edi], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov edi, 0x40000000
test eax, eax
jge 0x1052229
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [esi]
lea ecx, [ebp - 0xcc]
push ecx
push 0x1022abc
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x1052255
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [esi]
lea ecx, [ebp - 0xb4]
push ecx
push 0x1007e74
push esi
call dword [eax + 0x14]
mov edi, 0x4000000
test eax, eax
jge 0x105227a
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [esi]
lea ecx, [ebp - 0xcc]
push ecx
push 0x1022ad0
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x10522a6
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.0100449b
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 0x1022889
or dword [ebx + 4], 1
xor eax, eax
cmp dword [ebp - 0xa4], 2
sete al
or dword [ebx + 8], eax
jmp 0x1022889
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 0x10228b2
push 2
pop eax
or dword [ebx + 4], eax
cmp dword [ebp - 0xa4], eax
je 0x10520e7
xor eax, eax
or dword [ebx + 8], eax
jmp 0x10228b2
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 0x10228d5
push 4
pop eax
or dword [ebx + 4], eax
cmp dword [ebp - 0xa4], 2
je 0x1052121
xor eax, eax
or dword [ebx + 8], eax
jmp 0x10228d5
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 0x10228f8
push 8
pop eax
or dword [ebx + 4], eax
cmp dword [ebp - 0xa4], 2
je 0x105215b
xor eax, eax
or dword [ebx + 8], eax
jmp 0x10228f8
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 0x102291b
or dword [ebx + 4], 0x30000
cmp dword [ebp - 0xa4], 1
je 0x102291b
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 0x102291b
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 0x1052218
fld qword [ebp - 0xd4]
or dword [ebx + 4], 0x80000000
fmul qword [0x10039f0]
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 0x10229ef
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 0x1022a23
or dword [ebx + 4], edi
or dword [ebx + 8], edi
jmp 0x1022a23
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 0x1022a4a
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 0x1022a76
or dword [ebx + 4], edi
or dword [ebx + 8], edi
jmp 0x1022a76
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 0x1022a9d