Function at 0x1022b88
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 0x1007920
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 0x10521c5
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 0x1007934
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x10521fe
lea eax, [ebp - 0xb4]
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0xb4]
push ecx
push 0x1007948
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x1052237
lea eax, [ebp - 0xb4]
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0xb4]
push ecx
push 0x100795c
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x1052271
lea eax, [ebp - 0xb4]
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0xb4]
push ecx
push 0x1007970
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x10522ab
lea eax, [ebp - 0xb4]
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0xb4]
push ecx
push 0x10078f8
push esi
call dword [eax + 0x14]
test eax, eax
jl 0x1022d24
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 0x1022d24
lea eax, [ebp - 0x44]
push eax
push 0x20
lea eax, [ebx + 0x1a]
push eax
call fcn.01007d3c
or dword [ebx + 4], 0x20000000
cmp dword [ebp + 0x10], 0
je 0x1022d24
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.01007d3c
lea eax, [ebp - 0xa0]
push eax
mov byte [ebp - 0x89], 1
call fcn.01022e41
mov al, byte [ebp - 0x89]
cmp al, 1
je 0x1022d24
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 0x100790c
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x10522fe
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 0x1007e68
stosd dword es:[edi], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov edi, 0x40000000
test eax, eax
jge 0x1052371
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [esi]
lea ecx, [ebp - 0xcc]
push ecx
push 0x1022e14
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x105239d
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [esi]
lea ecx, [ebp - 0xb4]
push ecx
push 0x1007e7c
push esi
call dword [eax + 0x14]
mov edi, 0x4000000
test eax, eax
jge 0x10523c2
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [esi]
lea ecx, [ebp - 0xcc]
push ecx
push 0x1022e28
push esi
call dword [eax + 0x14]
test eax, eax
jge 0x10523ee
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 0x1022be1
or dword [ebx + 4], 1
xor eax, eax
cmp dword [ebp - 0xa4], 2
sete al
or dword [ebx + 8], eax
jmp 0x1022be1
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 0x1022c0a
push 2
pop eax
or dword [ebx + 4], eax
cmp dword [ebp - 0xa4], eax
je 0x105222f
xor eax, eax
or dword [ebx + 8], eax
jmp 0x1022c0a
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 0x1022c2d
push 4
pop eax
or dword [ebx + 4], eax
cmp dword [ebp - 0xa4], 2
je 0x1052269
xor eax, eax
or dword [ebx + 8], eax
jmp 0x1022c2d
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 0x1022c50
push 8
pop eax
or dword [ebx + 4], eax
cmp dword [ebp - 0xa4], 2
je 0x10522a3
xor eax, eax
or dword [ebx + 8], eax
jmp 0x1022c50
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 0x1022c73
or dword [ebx + 4], 0x30000
cmp dword [ebp - 0xa4], 1
je 0x1022c73
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 0x1022c73
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 0x1052360
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 0x1022d47
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 0x1022d7b
or dword [ebx + 4], edi
or dword [ebx + 8], edi
jmp 0x1022d7b
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 0x1022da2
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 0x1022dce
or dword [ebx + 4], edi
or dword [ebx + 8], edi
jmp 0x1022dce
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 0x1022df5