Function at 0x4bdae6
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 [0x4023e8]
fstp dword [ebp - 8]
or dword [ebp - 0x10], 0xffffffff
mov eax, dword [0x4d1b68]
sub eax, 1
jo 0x4bdcd8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
jmp 0x4bdb2c
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x20]
jo 0x4bdcd8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x24]
jg 0x4bdccc
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x302
jae 0x4bdb4d
and dword [ebp - 0x28], 0
jmp 0x4bdb55
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
shl eax, 7
mov ecx, dword [0x4d1b5c]
fld dword [ecx + eax + 0x14]
fcomp dword [0x402f7c]
fnstsw ax
sahf
jae 0x4bdcc7
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x4bdb89
and dword [ebp - 0x2c], 0
jmp 0x4bdb91
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
shl eax, 7
mov ecx, dword [0x4d1b5c]
cmp dword [ecx + eax + 0x48], 4
je 0x4bdcc7
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x4bdbbd
and dword [ebp - 0x30], 0
jmp 0x4bdbc5
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x4d1b5c]
cmp dword [ecx + eax + 4], 6
jne 0x4bdcc7
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x4bdbf1
and dword [ebp - 0x34], 0
jmp 0x4bdbf9
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 0x4bdc0e
and dword [ebp - 0x38], 0
jmp 0x4bdc16
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
shl eax, 7
mov ecx, dword [0x4d1b5c]
push dword [ecx + eax + 0x7c]
push 0x40da04
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 [0x4d1b5c]
lea eax, [ecx + eax + 0x7c]
push eax
call fcn.004a2696
movsx eax, ax
neg eax
sbb eax, eax
neg eax
or esi, eax
test esi, esi
jne 0x4bdcc7
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x4bdc71
and dword [ebp - 0x3c], 0
jmp 0x4bdc79
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
shl eax, 7
mov ecx, dword [0x4d1b5c]
fld dword [ebp - 8]
fcomp dword [ecx + eax + 0x14]
fnstsw ax
sahf
jbe 0x4bdcc7
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x4bdca6
and dword [ebp - 0x40], 0
jmp 0x4bdcae
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
shl eax, 7
mov ecx, dword [0x4d1b5c]
fld dword [ecx + eax + 0x14]
fstp dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
jmp 0x4bdb1d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow