Function at 0x1001f740
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006fbe8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x1008d200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x30]
xor edi, edi
push eax
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x14], edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
push edi
push eax
push ecx
push edx
mov edx, dword [ebp + 8]
lea eax, [esi + 0xc]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
xor ebx, ebx
call fcn.10029180
test al, al
je 0x1001f8f6
push 4
push edi
push 0xc
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov ecx, dword [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x1c]
mov eax, 0x2011
push ecx
mov word [ebp - 0x30], ax
call fcn.10029fb0
mov edi, dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
add esp, 4
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
lea eax, [ebp - 0x14]
push eax
push ebx
call edi
test eax, eax
js 0x1001f8f4
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 0x1001f818
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 ebx
call edi
lea edx, [ebp - 0x40]
push edx
mov dword [ebp + 0x18], eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0x18], 0
jl 0x1001f8f4
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x14], 2
mov eax, dword [eax + 0x48]
mov ecx, 0xd
mov word [ebp - 0x40], cx
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1001f85f
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 ebx
call edi
mov dword [ebp + 0x18], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0x18], 0
jl 0x1001f8f4
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x14]
push edx
push ebx
mov dword [ebp - 0x14], 3
call edi
test eax, eax
js 0x1001f8f4
mov esi, dword [esi + 0x38]
mov edx, dword [esi + 0xa0]
test edx, edx
jne 0x1001f8aa
push 0x80004003
call fcn.10069d90
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx]
mov esi, dword [edx]
push eax
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [ecx + 4]
mov dword [eax + 4], edi
mov edi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edx
mov edx, dword [esi + 0x94]
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
call edx
test eax, eax
js 0x1001f8f4
mov eax, dword [ebp + 0x1c]
mov cx, word [eax]
mov edx, 0xfff
and cx, dx
cmp cx, 0xd
jne 0x1001f8f4
mov byte [ebp - 0xd], 1
xor edi, edi
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x1001f906
push eax
call fcn.1005cffc
add esp, 4
cmp ebx, edi
je 0x1001f911
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
lea eax, [ebp - 0x30]
push eax
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