Function at 0x10021f70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10081a30
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x100a23b0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov byte [esp + 0x17], 0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], 0x1009283c
mov dword [esp + 0x38], eax
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x78], ebx
mov eax, dword [ecx]
cmp eax, ebx
jne 0x10021fcd
push 0x80004003
call fcn.1007ca30
mov edx, dword [eax]
mov edx, dword [edx + 0x68]
lea ecx, [esp + 0x20]
push ecx
push eax
call edx
test eax, eax
js 0x10022312
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x10022321
lea ecx, [esp + 0x28]
push ecx
push 1
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push edx
push 1
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x28]
jl 0x10022312
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
cmp eax, ebx
jl 0x10022312
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 0xc]
mov byte [esp + 0x78], 1
mov eax, dword [ecx]
cmp eax, ebx
je 0x10021fc3
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x58]
push ecx
push eax
call edx
cmp eax, ebx
mov eax, dword [esp + 0x18]
jl 0x1002235a
cmp eax, ebx
je 0x1002235a
mov dword [esp + 0x1c], ebx
push eax
lea edi, [esp + 0x20]
mov byte [esp + 0x7c], 2
call fcn.1002bef0
cmp eax, ebx
jl 0x10022258
mov eax, 9
mov word [esp + 0x3c], ax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], eax
cmp eax, ebx
je 0x100220b6
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x78], 4
mov edx, dword [esp + 0x1c]
cmp edx, ebx
je 0x10021fc3
mov ecx, dword [0x100ad688]
mov eax, dword [ecx + 0xc8]
cmp eax, 0x200
jl 0x100220e9
xor eax, eax
jmp 0x100220ee
mov ecx, dword [ecx]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax]
cmp eax, ebx
je 0x100220f8
mov ecx, dword [eax]
jmp 0x100220fa
xor ecx, ecx
mov edi, dword [esp + 0x3c]
mov esi, dword [edx]
lea eax, [esp + 0x5c]
push eax
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x58]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x5c]
push ebx
push 0x1014
mov dword [eax + 8], edi
mov edi, dword [esp + 0x68]
push ecx
mov ecx, dword [esi + 0xe4]
push edx
mov dword [eax + 0xc], edi
call ecx
cmp eax, ebx
jl 0x1002228b
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x78], 5
mov edx, dword [esp + 0x1c]
cmp edx, ebx
je 0x10021fc3
mov ecx, dword [0x100ad688]
mov eax, dword [ecx + 0x9c]
cmp eax, 0x200
jl 0x1002216d
xor eax, eax
jmp 0x10022172
mov ecx, dword [ecx]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax]
cmp eax, ebx
je 0x1002217c
mov ecx, dword [eax]
jmp 0x1002217e
xor ecx, ecx
mov edi, dword [esp + 0x3c]
mov esi, dword [edx]
lea eax, [esp + 0x4c]
push eax
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x58]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x5c]
push ebx
push 0x1014
mov dword [eax + 8], edi
mov edi, dword [esp + 0x68]
push ecx
mov ecx, dword [esi + 0xe4]
push edx
mov dword [eax + 0xc], edi
call ecx
cmp eax, ebx
jl 0x1002233a
mov edx, dword [esp + 0x4c]
and edx, 0xfff
cmp edx, 0x14
jne 0x1002233a
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
mov edi, dword [esp + 0x54]
lea edx, [esp + 0x5c]
push edx
call eax
mov ebx, eax
push edi
push ebx
lea esi, [esp + 0x3c]
call fcn.100332c0
test al, al
jne 0x100222b6
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x4c]
push ecx
call esi
lea edx, [esp + 0x5c]
push edx
call esi
lea eax, [esp + 0x3c]
push eax
call esi
mov byte [esp + 0x78], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10022229
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x78], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1002223e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
dec eax
xor ebx, ebx
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x28]
jge 0x10022020
jmp 0x10022312
mov byte [esp + 0x78], 1
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1002226d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x78], 0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10022312
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x10022312
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x5c]
push eax
call esi
lea ecx, [esp + 0x3c]
push ecx
call esi
mov byte [esp + 0x78], 1
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1002226d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x1002226d
mov eax, dword [ebp + 0x18]
push eax
push edi
lea ecx, [esp + 0x3c]
push ebx
push ecx
call dword [ebp + 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
add esp, 0x10
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0x1b], al
call esi
lea eax, [esp + 0x5c]
push eax
call esi
lea ecx, [esp + 0x3c]
push ecx
call esi
mov byte [esp + 0x78], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100222fb
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [esp + 0x78], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10022310
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor ebx, ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x10022321
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x4c]
push eax
call esi
lea ecx, [esp + 0x5c]
push ecx
call esi
lea edx, [esp + 0x3c]
push edx
call esi
jmp 0x10022258
mov byte [esp + 0x78], 0
jmp 0x10022276