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

Disassembly:
push ebp
mov ebp, esp
push 0x4c
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
mov eax, dword [0x501b64]
sub eax, 1
jo 0x47203c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
and dword [ebp - 8], 0
jmp 0x471e45
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
jo 0x47203c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x24]
jg 0x47202f
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x302
jae 0x471e66
and dword [ebp - 0x28], 0
jmp 0x471e6e
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
shl eax, 7
mov ecx, dword [0x501b58]
cmp dword [ecx + eax + 4], 6
jne 0x47202a
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x471e9a
and dword [ebp - 0x2c], 0
jmp 0x471ea2
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 0x47202a
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x471ece
and dword [ebp - 0x30], 0
jmp 0x471ed6
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x302
jae 0x471eeb
and dword [ebp - 0x34], 0
jmp 0x471ef3
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0x10]
push eax
mov eax, dword [ebp - 0x10]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00481083
call sub.MSVBVM60.DLL___vbaFpR4
mov eax, dword [ebp + 0x14]
fcomp dword [eax]
fnstsw ax
sahf
ja 0x47202a
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x302
jae 0x471f48
and dword [ebp - 0x38], 0
jmp 0x471f50
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
shl eax, 7
mov ecx, dword [0x501b58]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + eax + 0x6c]
cmp eax, dword [edx]
jne 0x471f9d
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x302
jae 0x471f7c
and dword [ebp - 0x3c], 0
jmp 0x471f84
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
shl eax, 7
mov ecx, dword [0x501b58]
cmp dword [ecx + eax + 0x48], 2
jne 0x471f9d
and dword [ebp - 0x40], 0
jmp 0x471fa4
mov dword [ebp - 0x40], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x302
jae 0x471fb9
and dword [ebp - 0x44], 0
jmp 0x471fc1
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
shl eax, 7
mov ecx, dword [0x501b58]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + eax + 0x70]
cmp eax, dword [edx]
jne 0x47200e
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x302
jae 0x471fed
and dword [ebp - 0x48], 0
jmp 0x471ff5
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x18]
shl eax, 7
mov ecx, dword [0x501b58]
cmp dword [ecx + eax + 0x48], 3
jne 0x47200e
and dword [ebp - 0x4c], 0
jmp 0x472015
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x40]
and eax, dword [ebp - 0x4c]
test eax, eax
jne 0x47202a
mov eax, dword [ebp - 4]
add eax, 1
jo 0x47203c
mov dword [ebp - 4], eax
jmp 0x471e36
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
leave
ret 0x10
call sub.MSVBVM60.DLL___vbaErrorOverflow