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

Disassembly:
push ebp
mov ebp, esp
push 0x48
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
fld dword [0x4023b8]
fstp dword [ebp - 8]
mov eax, dword [0x501b64]
sub eax, 1
jo 0x4ec844
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 1
and dword [ebp - 4], 0
jmp 0x4ec674
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x2c]
jo 0x4ec844
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
jg 0x4ec831
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x302
jae 0x4ec695
and dword [ebp - 0x34], 0
jmp 0x4ec69d
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
shl eax, 7
mov ecx, dword [0x501b58]
cmp dword [ecx + eax + 0x48], 4
je 0x4ec82c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x302
jae 0x4ec6c9
and dword [ebp - 0x38], 0
jmp 0x4ec6d1
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x302
jae 0x4ec6e6
and dword [ebp - 0x3c], 0
jmp 0x4ec6ee
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x302
jae 0x4ec703
and dword [ebp - 0x40], 0
jmp 0x4ec70b
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x20]
shl eax, 7
mov ecx, dword [0x501b58]
push dword [ecx + eax + 0x7c]
push 0x43d91c
call sub.MSVBVM60.DLL___vbaStrCmp
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov eax, dword [ebp - 0x24]
shl eax, 7
mov ecx, dword [0x501b58]
push dword [ecx + eax + 0x7c]
push 0x43d92c
call sub.MSVBVM60.DLL___vbaStrCmp
neg eax
sbb eax, eax
neg eax
and esi, eax
neg esi
sbb esi, esi
neg esi
mov eax, dword [ebp - 0x28]
shl eax, 7
mov ecx, dword [0x501b58]
push dword [ecx + eax + 0x7c]
push 0x43d93c
call sub.MSVBVM60.DLL___vbaStrCmp
neg eax
sbb eax, eax
neg eax
and esi, eax
test esi, esi
jne 0x4ec82c
fld qword [0x404208]
fchs
fstp dword [ebp - 0x1c]
fnstsw ax
test al, 0xd
jne 0x4ec83f
fld qword [0x4038c8]
fchs
fstp dword [ebp - 0x18]
fnstsw ax
test al, 0xd
jne 0x4ec83f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x302
jae 0x4ec7be
and dword [ebp - 0x44], 0
jmp 0x4ec7c6
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x302
jae 0x4ec7db
and dword [ebp - 0x48], 0
jmp 0x4ec7e3
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0x10]
push eax
mov eax, dword [ebp - 0x20]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 8]
push eax
call fcn.00481083
fstp dword [ebp - 0x10]
fld dword [ebp - 8]
fcomp dword [ebp - 0x10]
fnstsw ax
sahf
jbe 0x4ec82c
fld dword [ebp - 0x10]
fstp dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
jmp 0x4ec665
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop esi
leave
ret 4
jmp fcn.0040447c
call sub.MSVBVM60.DLL___vbaErrorOverflow