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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x404476
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push 0x48
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4015f0
cmp dword [0x5017fc], 4
je 0x470890
cmp dword [0x5017fc], 3
je 0x470890
jmp 0x471001
mov eax, dword [0x502140]
mov ecx, dword [0x501400]
sub ecx, dword [eax + 8]
jo 0x471027
cmp ecx, 0xc8
jl 0x4708b5
cmp dword [0x5018f4], 0
je 0x4708ba
jmp 0x471001
cmp dword [0x5017fc], 4
jne 0x470c8c
mov eax, dword [0x502140]
cmp dword [eax + 0x10], 0
jne 0x470a2a
mov eax, dword [0x502140]
mov dword [eax + 0x10], 0xa
push 0
mov eax, dword [0x502140]
push dword [eax + 0x10]
push 1
push 8
mov eax, dword [0x502140]
add eax, 0xc
push eax
push 4
push 0x180
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
mov esi, 0x42bbec
push 0
mov eax, dword [0x502140]
push dword [eax + 0xc]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov esi, 0x42c304
push 1
mov eax, dword [0x502140]
push dword [eax + 0xc]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov esi, 0x42b8bc
push 2
mov eax, dword [0x502140]
push dword [eax + 0xc]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov esi, 0x42ba18
push 3
mov eax, dword [0x502140]
push dword [eax + 0xc]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov esi, 0x42c4d4
push 4
mov eax, dword [0x502140]
push dword [eax + 0xc]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov esi, 0x42c4e0
push 5
mov eax, dword [0x502140]
push dword [eax + 0xc]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov esi, 0x42c4e0
push 6
mov eax, dword [0x502140]
push dword [eax + 0xc]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov esi, 0x42c4ec
push 7
mov eax, dword [0x502140]
push dword [eax + 0xc]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov esi, 0x42c4f8
push 8
mov eax, dword [0x502140]
push dword [eax + 0xc]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov esi, 0x42c508
push 9
mov eax, dword [0x502140]
push dword [eax + 0xc]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
movzx ax, byte [0x501870]
cmp ax, 1
jne 0x470b61
mov eax, dword [0x502140]
mov eax, dword [eax + 0x10]
sub eax, 1
jo 0x471027
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 1
and dword [ebp - 0x14], 0
jmp 0x470a6c
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x28]
jo 0x471027
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x2c]
jg 0x470a9b
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebp - 0x14]
mov eax, dword [0x502140]
push dword [eax + 0xc]
call sub.MSVBVM60.DLL___vbaDerefAry1
push dword [eax]
call sub.MSVBVM60.DLL___vbaStrCmp
test eax, eax
jne 0x470a99
jmp 0x471001
jmp 0x470a5d
or word [ebp - 0x1c], 0xffff
mov edx, 0x42c4c8
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x20]
push eax
call fcn.0046ed05
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x18], 0
jl 0x470b3e
call fcn.0047db9c
cmp ax, 0xffff
jne 0x470ad7
jmp 0x471001
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x81
jae 0x470aec
and dword [ebp - 0x4c], 0
jmp 0x470af4
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x24]
imul eax, eax, 0xac
mov ecx, dword [0x502100]
lea eax, [ecx + eax + 4]
push eax
call fcn.0046900f
mov edx, 0x42c4a0
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x20]
push eax
call fcn.00480c34
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
mov eax, dword [0x502140]
mov ecx, dword [0x501400]
mov dword [eax + 8], ecx
jmp 0x471001
mov edx, 0x42c4b0
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x20]
push eax
call fcn.00480c34
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
jmp 0x471001
mov eax, dword [0x502140]
mov eax, dword [eax + 0x10]
sub eax, 1
jo 0x471027
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 1
and dword [ebp - 0x14], 0
jmp 0x470b91
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x30]
jo 0x471027
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x34]
jg 0x470c8c
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebp - 0x14]
mov eax, dword [0x502140]
push dword [eax + 0xc]
call sub.MSVBVM60.DLL___vbaDerefAry1
push dword [eax]
call sub.MSVBVM60.DLL___vbaStrCmp
test eax, eax
jne 0x470c87
or word [ebp - 0x1c], 0xffff
mov edx, 0x42c4c8
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x20]
push eax
call fcn.0046ed05
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x18], 0
jl 0x470c64
call fcn.0047db9c
cmp ax, 0xffff
jne 0x470bfd
jmp 0x471001
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x81
jae 0x470c12
and dword [ebp - 0x50], 0
jmp 0x470c1a
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x24]
imul eax, eax, 0xac
mov ecx, dword [0x502100]
lea eax, [ecx + eax + 4]
push eax
call fcn.0046900f
mov edx, 0x42c4a0
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x20]
push eax
call fcn.00480c34
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
mov eax, dword [0x502140]
mov ecx, dword [0x501400]
mov dword [eax + 8], ecx
jmp 0x471001
mov edx, 0x42c4b0
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x20]
push eax
call fcn.00480c34
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
jmp 0x471001
jmp 0x470b82
cmp dword [0x5017fc], 3
jne 0x471001
mov eax, dword [0x502140]
cmp dword [eax + 0x18], 0
jne 0x470da5
mov eax, dword [0x502140]
mov dword [eax + 0x18], 7
push 0
mov eax, dword [0x502140]
push dword [eax + 0x18]
push 1
push 8
mov eax, dword [0x502140]
add eax, 0x14
push eax
push 4
push 0x180
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
mov esi, 0x42c514
push 0
mov eax, dword [0x502140]
push dword [eax + 0x14]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov esi, 0x42c520
push 1
mov eax, dword [0x502140]
push dword [eax + 0x14]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov esi, 0x42c52c
push 2
mov eax, dword [0x502140]
push dword [eax + 0x14]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov esi, 0x42c538
push 3
mov eax, dword [0x502140]
push dword [eax + 0x14]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov esi, 0x42c544
push 4
mov eax, dword [0x502140]
push dword [eax + 0x14]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov esi, 0x42c550
push 5
mov eax, dword [0x502140]
push dword [eax + 0x14]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov esi, 0x42c55c
push 6
mov eax, dword [0x502140]
push dword [eax + 0x14]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
movzx ax, byte [0x501870]
cmp ax, 1
jne 0x470edc
mov eax, dword [0x502140]
mov eax, dword [eax + 0x18]
sub eax, 1
jo 0x471027
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 1
and dword [ebp - 0x14], 0
jmp 0x470de7
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x38]
jo 0x471027
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x3c]
jg 0x470e16
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebp - 0x14]
mov eax, dword [0x502140]
push dword [eax + 0x14]
call sub.MSVBVM60.DLL___vbaDerefAry1
push dword [eax]
call sub.MSVBVM60.DLL___vbaStrCmp
test eax, eax
jne 0x470e14
jmp 0x471001
jmp 0x470dd8
or word [ebp - 0x1c], 0xffff
mov edx, 0x42c494
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x20]
push eax
call fcn.0046ed05
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x18], 0
jl 0x470eb9
call fcn.0047db9c
cmp ax, 0xffff
jne 0x470e52
jmp 0x471001
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x81
jae 0x470e67
and dword [ebp - 0x54], 0
jmp 0x470e6f
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x24]
imul eax, eax, 0xac
mov ecx, dword [0x502100]
lea eax, [ecx + eax + 4]
push eax
call fcn.0046900f
mov edx, 0x42c4a0
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x20]
push eax
call fcn.00480c34
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
mov eax, dword [0x502140]
mov ecx, dword [0x501400]
mov dword [eax + 8], ecx
jmp 0x471001
mov edx, 0x42c4b0
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x20]
push eax
call fcn.00480c34
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
jmp 0x471001
mov eax, dword [0x502140]
mov eax, dword [eax + 0x18]
sub eax, 1
jo 0x471027
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 1
and dword [ebp - 0x14], 0
jmp 0x470f0c
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x40]
jo 0x471027
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x44]
jg 0x471001
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebp - 0x14]
mov eax, dword [0x502140]
push dword [eax + 0x14]
call sub.MSVBVM60.DLL___vbaDerefAry1
push dword [eax]
call sub.MSVBVM60.DLL___vbaStrCmp
test eax, eax
jne 0x470ffc
or word [ebp - 0x1c], 0xffff
mov edx, 0x42c494
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x20]
push eax
call fcn.0046ed05
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x18], 0
jl 0x470fdc
call fcn.0047db9c
cmp ax, 0xffff
jne 0x470f78
jmp 0x471001
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x81
jae 0x470f8d
and dword [ebp - 0x58], 0
jmp 0x470f95
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x24]
imul eax, eax, 0xac
mov ecx, dword [0x502100]
lea eax, [ecx + eax + 4]
push eax
call fcn.0046900f
mov edx, 0x42c4a0
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x20]
push eax
call fcn.00480c34
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
mov eax, dword [0x502140]
mov ecx, dword [0x501400]
mov dword [eax + 8], ecx
jmp 0x471001
mov edx, 0x42c4b0
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x20]
push eax
call fcn.00480c34
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
jmp 0x471001
jmp 0x470efd
push 0x471012
jmp 0x471011
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow