Function at 0x47109d
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
mov eax, 0xe0
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401600
push 3
push 0x42b950
lea eax, [ebp - 0x58]
push eax
call sub.MSVBVM60.DLL___vbaAryConstruct2
and dword [0x501b64], 0
mov eax, dword [0x50104c]
add eax, 0x1c
jo 0x471ba7
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [ebp - 0x60], eax
and dword [ebp - 0x70], 0
cmp dword [ebp - 0x70], 0x302
jae 0x471116
and dword [ebp - 0x84], 0
jmp 0x471121
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x4c]
lea eax, [ecx + eax*4]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x6c], eax
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x68]
push eax
push 0xc04
push dword [ebp - 0x6c]
push dword [ebp - 0x60]
push dword [0x501404]
call fcn.004295a8
call sub.MSVBVM60.DLL___vbaSetSystemError
and dword [0x501908], 0
or dword [0x501910], 0xffffffff
fld dword [0x401570]
fstp dword [ebp - 0x1c]
mov dword [ebp - 0x7c], 0x300
mov dword [ebp - 0x78], 1
and dword [ebp - 0x14], 0
jmp 0x471190
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x78]
jo 0x471ba7
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x7c]
jg 0x471b75
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x4711b4
and dword [ebp - 0x88], 0
jmp 0x4711bf
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x10000
jl 0x471b62
cmp dword [ebp - 0x40], 0x7fffffff
jg 0x471b62
cmp dword [0x501b64], 0x301
jge 0x471b62
lea eax, [ebp - 0x3c]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x6c], eax
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x68]
push eax
push 0xc
push dword [ebp - 0x6c]
push dword [ebp - 0x40]
push dword [0x501404]
call fcn.004295a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x47123b
and dword [ebp - 0x8c], 0
jmp 0x471246
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x70]
shl eax, 7
mov ecx, dword [0x501b58]
mov edx, dword [ebp - 0x38]
mov dword [ecx + eax], edx
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x471272
and dword [ebp - 0x90], 0
jmp 0x47127d
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x70]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 8]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x6c], eax
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x68]
push eax
push 0xc
push dword [ebp - 0x6c]
mov eax, dword [ebp - 0x38]
add eax, 0x3c
jo 0x471ba7
push eax
push dword [0x501404]
call fcn.004295a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x4712da
and dword [ebp - 0x94], 0
jmp 0x4712e5
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x70]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0x20]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x6c], eax
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x68]
push eax
push 0x10
push dword [ebp - 0x6c]
mov eax, dword [ebp - 0x38]
add eax, 0x120
jo 0x471ba7
push eax
push dword [0x501404]
call fcn.004295a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [ebp - 0x38]
add eax, 0xb4
jo 0x471ba7
mov dword [ebp - 0x68], eax
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x471355
and dword [ebp - 0x98], 0
jmp 0x471360
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov ecx, dword [ebp - 0x70]
shl ecx, 7
mov edx, dword [0x501b58]
mov dword [edx + ecx + 4], eax
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x471393
and dword [ebp - 0x9c], 0
jmp 0x47139e
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x70]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0x38]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x6c], eax
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x68]
push eax
push 8
push dword [ebp - 0x6c]
mov eax, dword [ebp - 0x38]
add eax, 0x128
jo 0x471ba7
push eax
push dword [0x501404]
call fcn.004295a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [ebp - 0x38]
add eax, 0x130
jo 0x471ba7
mov dword [ebp - 0x68], eax
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x47140e
and dword [ebp - 0xa0], 0
jmp 0x471419
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov ecx, dword [ebp - 0x70]
shl ecx, 7
mov edx, dword [0x501b58]
mov dword [edx + ecx + 0x3c], eax
mov eax, dword [ebp - 0x38]
add eax, 0x16c
jo 0x471ba7
mov dword [ebp - 0x68], eax
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x47145d
and dword [ebp - 0xa4], 0
jmp 0x471468
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov ecx, dword [ebp - 0x70]
shl ecx, 7
mov edx, dword [0x501b58]
mov dword [edx + ecx + 0x40], eax
mov eax, dword [ebp - 0x38]
add eax, 0x248
jo 0x471ba7
mov dword [ebp - 0x68], eax
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x4714ac
and dword [ebp - 0xa8], 0
jmp 0x4714b7
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov ecx, dword [ebp - 0x70]
shl ecx, 7
mov edx, dword [0x501b58]
mov dword [edx + ecx + 0x34], eax
mov eax, dword [ebp - 0x38]
add eax, 0x250
jo 0x471ba7
mov dword [ebp - 0x68], eax
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x4714fb
and dword [ebp - 0xac], 0
jmp 0x471506
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov ecx, dword [ebp - 0x70]
shl ecx, 7
mov edx, dword [0x501b58]
mov dword [edx + ecx + 0x2c], eax
mov eax, dword [ebp - 0x38]
add eax, 0x254
jo 0x471ba7
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x6c], 0xd
and dword [ebp - 0x68], 0
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x471561
and dword [ebp - 0xb0], 0
jmp 0x47156c
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004651f1
mov edx, eax
lea ecx, [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaStrMove
mov edx, eax
mov eax, dword [ebp - 0x70]
shl eax, 7
mov ecx, dword [0x501b58]
lea ecx, [ecx + eax + 0x7c]
call sub.MSVBVM60.DLL___vbaStrCopy
lea ecx, [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaFreeStr
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x4715c0
and dword [ebp - 0xb4], 0
jmp 0x4715cb
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x70]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0x14]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x6c], eax
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x68]
push eax
push 0xc
push dword [ebp - 0x6c]
mov eax, dword [ebp - 0x38]
add eax, 0x278
jo 0x471ba7
push eax
push dword [0x501404]
call fcn.004295a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [ebp - 0x38]
add eax, 0x2ac
jo 0x471ba7
mov dword [ebp - 0x68], eax
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x47163b
and dword [ebp - 0xb8], 0
jmp 0x471646
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov ecx, dword [ebp - 0x70]
shl ecx, 7
mov edx, dword [0x501b58]
mov dword [edx + ecx + 0x4c], eax
mov eax, dword [ebp - 0x38]
add eax, 0x2bc
jo 0x471ba7
mov dword [ebp - 0x68], eax
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x47168a
and dword [ebp - 0xbc], 0
jmp 0x471695
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov ecx, dword [ebp - 0x70]
shl ecx, 7
mov edx, dword [0x501b58]
mov dword [edx + ecx + 0x48], eax
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x4716c8
and dword [ebp - 0xc0], 0
jmp 0x4716d3
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x70]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0x54]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x6c], eax
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x68]
push eax
push 0x10
push dword [ebp - 0x6c]
mov eax, dword [ebp - 0x38]
add eax, 0x318
jo 0x471ba7
push eax
push dword [0x501404]
call fcn.004295a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [ebp - 0x38]
add eax, 0x380
jo 0x471ba7
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
add eax, 0x48
jo 0x471ba7
mov dword [ebp - 0x68], eax
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x47175e
and dword [ebp - 0xc4], 0
jmp 0x471769
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov ecx, dword [ebp - 0x70]
shl ecx, 7
mov edx, dword [0x501b58]
mov dword [edx + ecx + 0x30], eax
mov eax, dword [ebp - 0x38]
add eax, 0x390
jo 0x471ba7
mov dword [ebp - 0x68], eax
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x4717ad
and dword [ebp - 0xc8], 0
jmp 0x4717b8
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov ecx, dword [ebp - 0x70]
shl ecx, 7
mov edx, dword [0x501b58]
mov dword [edx + ecx + 0x44], eax
mov eax, dword [ebp - 0x38]
add eax, 0x390
jo 0x471ba7
mov dword [ebp - 0x68], eax
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x4717fc
and dword [ebp - 0xcc], 0
jmp 0x471807
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046562f
mov ecx, dword [ebp - 0x70]
shl ecx, 7
mov edx, dword [0x501b58]
mov byte [edx + ecx + 0x50], al
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x47183a
and dword [ebp - 0xd0], 0
jmp 0x471845
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x70]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0x6c]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x6c], eax
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x68]
push eax
push 8
push dword [ebp - 0x6c]
mov eax, dword [ebp - 0x38]
add eax, 0x2e0
jo 0x471ba7
push eax
push dword [0x501404]
call fcn.004295a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x4718a4
and dword [ebp - 0xd4], 0
jmp 0x4718af
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x70]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0x64]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x6c], eax
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x68]
push eax
push 8
push dword [ebp - 0x6c]
mov eax, dword [ebp - 0x38]
add eax, 0x2d0
jo 0x471ba7
push eax
push dword [0x501404]
call fcn.004295a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x47190e
and dword [ebp - 0xd8], 0
jmp 0x471919
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x70]
shl eax, 7
mov ecx, dword [0x501b58]
mov eax, dword [ecx + eax + 0x64]
add eax, 4
jo 0x471ba7
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
add eax, 4
jo 0x471ba7
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
add eax, 4
jo 0x471ba7
mov dword [ebp - 0x68], eax
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x471985
and dword [ebp - 0xdc], 0
jmp 0x471990
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov ecx, dword [ebp - 0x70]
shl ecx, 7
mov edx, dword [0x501b58]
mov dword [edx + ecx + 0x74], eax
mov eax, dword [ebp - 0x60]
add eax, 0xc
jo 0x471ba7
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x6c], 0xe
and dword [ebp - 0x68], 0
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x4719e9
and dword [ebp - 0xe0], 0
jmp 0x4719f4
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004651f1
mov edx, eax
lea ecx, [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaStrMove
mov edx, eax
mov eax, dword [ebp - 0x70]
shl eax, 7
mov ecx, dword [0x501b58]
lea ecx, [ecx + eax + 0x78]
call sub.MSVBVM60.DLL___vbaStrCopy
lea ecx, [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaFreeStr
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x471a48
and dword [ebp - 0xe4], 0
jmp 0x471a53
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x70]
shl eax, 7
mov ecx, dword [0x501b58]
mov eax, dword [ecx + eax + 0x6c]
cmp eax, dword [0x50111c]
je 0x471aa8
mov eax, dword [0x501b64]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0x302
jae 0x471a85
and dword [ebp - 0xe8], 0
jmp 0x471a90
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x74]
shl eax, 7
mov ecx, dword [0x501b58]
mov eax, dword [ecx + eax + 0x70]
cmp eax, dword [0x50111c]
jne 0x471abb
mov eax, dword [0x501908]
add eax, 1
jo 0x471ba7
mov dword [0x501908], eax
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x471ad5
and dword [ebp - 0xec], 0
jmp 0x471ae0
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x70]
shl eax, 7
mov ecx, dword [0x501b58]
fld dword [ecx + eax + 0x14]
fcomp dword [ebp - 0x1c]
fnstsw ax
sahf
jae 0x471b3a
mov eax, dword [0x501b64]
mov dword [0x501910], eax
mov eax, dword [0x501b64]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x302
jae 0x471b1c
and dword [ebp - 0xf0], 0
jmp 0x471b27
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x70]
shl eax, 7
mov ecx, dword [0x501b58]
fld dword [ecx + eax + 0x14]
fstp dword [ebp - 0x1c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [0x501b64]
add eax, 1
jo 0x471ba7
mov dword [0x501b64], eax
cmp dword [0x501b64], 0x300
jl 0x471b5d
jmp 0x471b75
jmp 0x4711cb
cmp dword [0x501b64], 0x300
jle 0x471b70
jmp 0x471b75
jmp 0x471181
wait
push 0x471b98
jmp 0x471b86
lea eax, [ebp - 0x58]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
push 0
call sub.MSVBVM60.DLL___vbaAryDestruct
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow