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

Disassembly:
push ebp
mov ebp, esp
push 0x44
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 0x4eca77
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
jmp 0x4ec88f
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x20]
jo 0x4eca77
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x24]
jg 0x4eca6b
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x302
jae 0x4ec8b0
and dword [ebp - 0x28], 0
jmp 0x4ec8b8
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 [0x402e40]
fnstsw ax
sahf
jae 0x4eca66
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x4ec8ec
and dword [ebp - 0x2c], 0
jmp 0x4ec8f4
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 0x4eca66
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x4ec920
and dword [ebp - 0x30], 0
jmp 0x4ec928
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 0x4eca66
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x4ec954
and dword [ebp - 0x34], 0
jmp 0x4ec95c
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 0x4ec971
and dword [ebp - 0x38], 0
jmp 0x4ec979
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 0x4eca66
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x4ec9d8
and dword [ebp - 0x3c], 0
jmp 0x4ec9e0
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
shl eax, 7
mov ecx, dword [0x501b58]
fld dword [ecx + eax + 8]
fcomp dword [0x404210]
fnstsw ax
sahf
jbe 0x4eca66
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x4eca10
and dword [ebp - 0x40], 0
jmp 0x4eca18
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x40], 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 0x4eca66
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x4eca45
and dword [ebp - 0x44], 0
jmp 0x4eca4d
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x44], 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 0x4ec880
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow