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

Disassembly:
push ebp
mov ebp, esp
push 0x64
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push esi
mov eax, dword [ebp + 8]
or dword [eax], 0xffffffff
or dword [ebp - 0xc], 0xffffffff
fld dword [0x4023e8]
fstp dword [ebp - 0x10]
fld dword [0x4023e8]
fstp dword [ebp - 8]
mov eax, dword [0x4d1b68]
sub eax, 1
jo 0x4a2691
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 1
and dword [ebp - 4], 0
jmp 0x4a22f1
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x24]
jo 0x4a2691
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x28]
jg 0x4a2683
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x4a2312
and dword [ebp - 0x2c], 0
jmp 0x4a231a
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x4d1b5c]
push dword [ecx + eax + 0x7c]
push 0x40da04
call sub.MSVBVM60.DLL___vbaStrCmp
test eax, eax
je 0x4a267e
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x302
jae 0x4a2351
and dword [ebp - 0x30], 0
jmp 0x4a2359
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
shl eax, 7
mov ecx, dword [0x4d1b5c]
cmp dword [ecx + eax + 0x48], 4
je 0x4a267e
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x302
jae 0x4a2385
and dword [ebp - 0x34], 0
jmp 0x4a238d
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
shl eax, 7
mov ecx, dword [0x4d1b5c]
cmp dword [ecx + eax + 4], 6
jne 0x4a267e
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x4a23b9
and dword [ebp - 0x38], 0
jmp 0x4a23c1
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x4d1b5c]
lea eax, [ecx + eax + 0x7c]
push eax
call fcn.004a2696
cmp ax, 0xffff
jne 0x4a2489
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x4a23f6
and dword [ebp - 0x3c], 0
jmp 0x4a23fe
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x4d1b5c]
fld dword [ecx + eax + 0x18]
fcomp dword [0x403f58]
fnstsw ax
sahf
jae 0x4a2484
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x4a242e
and dword [ebp - 0x40], 0
jmp 0x4a2436
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x4d1b5c]
fld dword [ebp - 0x10]
fcomp dword [ecx + eax + 0x18]
fnstsw ax
sahf
jbe 0x4a2484
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x4a2463
and dword [ebp - 0x44], 0
jmp 0x4a246b
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x4d1b5c]
fld dword [ecx + eax + 0x18]
fstp dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
jmp 0x4a267e
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x4a249e
and dword [ebp - 0x48], 0
jmp 0x4a24a6
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x4d1b5c]
fld dword [ecx + eax + 0x14]
fcomp dword [0x40236c]
fnstsw ax
sahf
jae 0x4a267e
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x4a24da
and dword [ebp - 0x4c], 0
jmp 0x4a24e2
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x4d1b5c]
lea eax, [ecx + eax + 0x7c]
push eax
call 0x4a285b
cmp ax, 0xffff
jne 0x4a267e
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x4a2517
and dword [ebp - 0x50], 0
jmp 0x4a251f
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x302
jae 0x4a2534
and dword [ebp - 0x54], 0
jmp 0x4a253c
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x4d1b5c]
push dword [ecx + eax + 0x7c]
push 0x4224bc
call sub.MSVBVM60.DLL___vbaStrCmp
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov eax, dword [ebp - 0x1c]
shl eax, 7
mov ecx, dword [0x4d1b5c]
push dword [ecx + eax + 0x7c]
push 0x4224cc
call sub.MSVBVM60.DLL___vbaStrCmp
neg eax
sbb eax, eax
neg eax
and esi, eax
test esi, esi
jne 0x4a2611
movzx ax, byte [0x4d1604]
cmp ax, 1
jne 0x4a260f
cmp dword [0x4d1138], 0x3ec
je 0x4a260f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x4a25b7
and dword [ebp - 0x58], 0
jmp 0x4a25bf
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x4d1b5c]
fld dword [ebp - 8]
fcomp dword [ecx + eax + 0x14]
fnstsw ax
sahf
jbe 0x4a260f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x4a25ec
and dword [ebp - 0x5c], 0
jmp 0x4a25f4
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x4d1b5c]
fld dword [ecx + eax + 0x14]
fstp dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x4a267e
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x4a2626
and dword [ebp - 0x60], 0
jmp 0x4a262e
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x4d1b5c]
fld dword [ebp - 8]
fcomp dword [ecx + eax + 0x14]
fnstsw ax
sahf
jbe 0x4a267e
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x4a265b
and dword [ebp - 0x64], 0
jmp 0x4a2663
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x4d1b5c]
fld dword [ecx + eax + 0x14]
fstp dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x4a22e2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
pop esi
leave
ret 4
call sub.MSVBVM60.DLL___vbaErrorOverflow