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

Disassembly:
push 0xffffffffffffffff
push 0x446a20
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45b684]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, edx
mov ebp, dword [esp + 0x64]
lea eax, [esp + 0x2c]
xor esi, esi
push eax
mov dword [esp + 0x68], esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x60], esi
call fcn.00401310
mov byte [esp + 0x5c], 1
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], esi
jne 0x40e300
mov edx, dword [ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [esp + 0x64]
push eax
push esi
push 0x70
push esi
push ebx
mov dword [esp + 0x78], esi
call ecx
test eax, eax
jne 0x40e230
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x24]
push edx
push 1
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x20]
push ecx
push 1
push edx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
mov edi, dword [esp + 0x24]
cmp edi, dword [esp + 0x20]
jg 0x40e230
jmp 0x40e1d0
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
mov ecx, dword [esp + 0x1c]
lea esi, [esp + 0x3c]
call fcn.0040e3b0
lea ecx, [esp + 0x2c]
cmp ecx, eax
mov byte [esp + 0x5c], 2
je 0x40e215
push eax
mov edx, ecx
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jl 0x40e262
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x60], 1
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
add edi, 1
xor esi, esi
cmp edi, dword [esp + 0x20]
jle 0x40e1d0
mov eax, dword [esp + 0x64]
cmp eax, esi
je 0x40e2a8
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
lea ecx, [esp + 0x2c]
push ecx
push ebp
mov word [ebp], si
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, esi
jge 0x40e273
push eax
mov word [ebp], 0xa
mov dword [ebp + 8], eax
call fcn.00401080
push eax
mov word [esp + 0x30], 0xa
mov dword [esp + 0x38], eax
call fcn.00401080
mov byte [esp + 0x5c], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e298
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40e398
lea edx, [esp + 0x2c]
push edx
push ebp
mov word [ebp], si
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, esi
jge 0x40e2cb
push eax
mov word [ebp], 0xa
mov dword [ebp + 8], eax
call fcn.00401080
mov byte [esp + 0x5c], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e2f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40e398
mov ecx, edi
lea esi, [esp + 0x3c]
call fcn.0040e3b0
lea edx, [esp + 0x2c]
cmp edx, eax
mov byte [esp + 0x5c], 3
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
je 0x40e339
push eax
mov eax, edx
push eax
call esi
test eax, eax
jge 0x40e339
push eax
mov word [esp + 0x30], 0xa
mov dword [esp + 0x38], eax
call fcn.00401080
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ecx
call edi
lea edx, [esp + 0x2c]
push edx
push ebp
mov word [ebp], 0
call esi
test eax, eax
jge 0x40e36c
push eax
mov word [ebp], 0xa
mov dword [ebp + 8], eax
call fcn.00401080
mov byte [esp + 0x5c], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e391
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
call edi
mov eax, ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4