Function at 0x10024620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x100a23b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x30]
xor esi, esi
push eax
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x14], esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0x18]
mov ecx, dword [edi + 0x30]
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [edi + 0x2c]
push esi
push eax
push ecx
push edx
mov edx, dword [ebp + 8]
lea eax, [edi + 0xc]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.10032980
test al, al
je 0x10024819
mov ebx, dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
push 4
push esi
push 0xc
call ebx
mov ecx, dword [ebp - 0x18]
push ecx
mov esi, eax
push 0
mov eax, 0x2011
push 0x11
mov dword [ebp - 0x14], 0
mov word [ebp - 0x30], ax
call ebx
lea edx, [ebp + 0x18]
mov ebx, eax
push edx
push ebx
mov dword [ebp + 0x18], 0
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jns 0x100246d3
xor eax, eax
jmp 0x100246fa
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
call fcn.1006ad80
add esp, 0xc
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor ecx, ecx
test eax, eax
sets cl
lea eax, [ecx - 1]
and eax, ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
lea eax, [ebp - 0x14]
push eax
push esi
call ebx
test eax, eax
js 0x10024819
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, 0xd
mov dword [ebp - 0x14], 1
mov word [ebp - 0x40], cx
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1002473a
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x14]
push ecx
push esi
call ebx
lea edx, [ebp - 0x40]
push edx
mov dword [ebp + 0x18], eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0x18], 0
jl 0x10024819
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x14], 2
mov eax, dword [eax + 0x80]
mov ecx, 0xd
mov word [ebp - 0x40], cx
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10024784
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x14]
push edx
push esi
call ebx
mov dword [ebp + 0x18], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0x18], 0
jl 0x10024819
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x14]
push edx
push esi
mov dword [ebp - 0x14], 3
call ebx
test eax, eax
js 0x10024819
mov edi, dword [edi + 0x38]
mov ecx, dword [edi + 0xe8]
test ecx, ecx
jne 0x100247cf
push 0x80004003
call fcn.1007ca30
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx]
mov edi, dword [ecx]
push eax
push esi
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [edx + 4]
mov dword [eax + 4], ebx
mov ebx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov eax, dword [edi + 0x94]
push ecx
call eax
test eax, eax
js 0x10024819
mov ecx, dword [ebp + 0x1c]
mov dx, word [ecx]
mov eax, 0xfff
and dx, ax
cmp dx, 0xd
jne 0x10024819
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10024829
push eax
call fcn.1006a57c
add esp, 4
test esi, esi
je 0x10024834
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18