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

Disassembly:
push ebp
mov ebp, esp
push 0x40
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push esi
fld dword [0x4023b8]
fstp dword [ebp - 8]
or dword [ebp - 0x10], 0xffffffff
mov eax, dword [0x501b64]
sub eax, 1
jo 0x4ecc6e
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
jmp 0x4ecac2
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x20]
jo 0x4ecc6e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x24]
jg 0x4ecc62
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x302
jae 0x4ecae3
and dword [ebp - 0x28], 0
jmp 0x4ecaeb
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
shl eax, 7
mov ecx, dword [0x501b58]
fld dword [ecx + eax + 0x14]
fcomp dword [0x402f4c]
fnstsw ax
sahf
jae 0x4ecc5d
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x4ecb1f
and dword [ebp - 0x2c], 0
jmp 0x4ecb27
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
shl eax, 7
mov ecx, dword [0x501b58]
cmp dword [ecx + eax + 0x48], 4
je 0x4ecc5d
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x4ecb53
and dword [ebp - 0x30], 0
jmp 0x4ecb5b
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x501b58]
cmp dword [ecx + eax + 4], 6
jne 0x4ecc5d
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x4ecb87
and dword [ebp - 0x34], 0
jmp 0x4ecb8f
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x4ecba4
and dword [ebp - 0x38], 0
jmp 0x4ecbac
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
shl eax, 7
mov ecx, dword [0x501b58]
push dword [ecx + eax + 0x7c]
push 0x428d44
call sub.MSVBVM60.DLL___vbaStrCmp
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0x7c]
push eax
call fcn.004d1a44
movsx eax, ax
neg eax
sbb eax, eax
neg eax
or esi, eax
test esi, esi
jne 0x4ecc5d
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x4ecc07
and dword [ebp - 0x3c], 0
jmp 0x4ecc0f
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
shl eax, 7
mov ecx, dword [0x501b58]
fld dword [ebp - 8]
fcomp dword [ecx + eax + 0x14]
fnstsw ax
sahf
jbe 0x4ecc5d
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x4ecc3c
and dword [ebp - 0x40], 0
jmp 0x4ecc44
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
shl eax, 7
mov ecx, dword [0x501b58]
fld dword [ecx + eax + 0x14]
fstp dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
jmp 0x4ecab3
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow