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

Disassembly:
push ebp
mov ebp, esp
push 0x50
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push esi
mov dword [ebp - 8], 1
mov eax, dword [0x501b64]
sub eax, 1
jo 0x471e08
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 1
and dword [ebp - 4], 0
jmp 0x471bec
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x24]
jo 0x471e08
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x28]
jg 0x471e00
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x302
jae 0x471c0d
and dword [ebp - 0x2c], 0
jmp 0x471c15
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x302
jae 0x471c2c
and dword [ebp - 0x30], 0
jmp 0x471c34
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
shl eax, 7
mov ecx, dword [ebp - 0x10]
shl ecx, 7
mov edx, dword [0x501b58]
mov esi, dword [0x501b58]
mov eax, dword [edx + eax + 0x20]
cmp eax, dword [esi + ecx + 0x20]
je 0x471dfb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x471c6f
and dword [ebp - 0x34], 0
jmp 0x471c77
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
shl eax, 7
mov ecx, dword [0x501b58]
cmp dword [ecx + eax + 4], 6
jne 0x471dfb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x471ca3
and dword [ebp - 0x38], 0
jmp 0x471cab
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x501b58]
cmp dword [ecx + eax + 0x48], 4
je 0x471dfb
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x302
jae 0x471cd9
and dword [ebp - 0x3c], 0
jmp 0x471ce1
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x302
jae 0x471cf8
and dword [ebp - 0x40], 0
jmp 0x471d00
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x471d17
and dword [ebp - 0x44], 0
jmp 0x471d1f
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x471d34
and dword [ebp - 0x48], 0
jmp 0x471d3c
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x302
jae 0x471d51
and dword [ebp - 0x4c], 0
jmp 0x471d59
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x302
jae 0x471d6e
and dword [ebp - 0x50], 0
jmp 0x471d76
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x20]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0xc]
push eax
mov eax, dword [ebp - 0x1c]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0x10]
push eax
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 8]
push eax
mov eax, dword [ebp - 0x14]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0xc]
push eax
mov eax, dword [ebp - 0x10]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 8]
push eax
call fcn.00481195
call sub.MSVBVM60.DLL___vbaFpR4
mov eax, dword [ebp + 0xc]
fcomp dword [eax]
fnstsw ax
sahf
ja 0x471dfb
mov eax, dword [ebp - 8]
add eax, 1
jo 0x471e08
mov dword [ebp - 8], eax
jmp 0x471bdd
mov eax, dword [ebp - 8]
pop esi
leave
ret 8
call sub.MSVBVM60.DLL___vbaErrorOverflow