Function at 0x405a51
Capabilities:
Resolve function by hash
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x401236
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4011b0
mov edx, dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x70], ebx
call sub.MSVBVM60.DLL___vbaStrCopy
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call sub.MSVBVM60.DLL___vbaStrCopy
cmp word [0x409084], bx
jne 0x405dd2
mov eax, dword [0x409098]
mov dword [eax], 0x80e9
mov eax, dword [0x409098]
mov dword [eax + 4], 0x64c03100
mov eax, dword [0x409098]
mov dword [eax + 8], 0x8b30408b
mov eax, dword [0x409098]
mov dword [eax + 0xc], 0x408b0c40
mov eax, dword [0x409098]
mov dword [eax + 0x10], 0x8b008b0c
mov eax, dword [0x409098]
mov dword [eax + 0x14], 0x18408b00
mov eax, dword [0x409098]
mov dword [eax + 0x18], 0x4d388166
mov eax, dword [0x409098]
mov dword [eax + 0x1c], 0x3102745a
mov eax, dword [0x409098]
mov dword [eax + 0x20], 0x8b60c3c0
mov eax, dword [0x409098]
mov dword [eax + 0x24], 0x8b24246c
mov eax, dword [0x409098]
mov dword [eax + 0x28], 0x548b3c45
mov eax, dword [0x409098]
mov dword [eax + 0x2c], 0xea017805
mov eax, dword [0x409098]
mov dword [eax + 0x30], 0x8b184a8b
mov eax, dword [0x409098]
mov dword [eax + 0x34], 0xeb01205a
mov eax, dword [0x409098]
mov dword [eax + 0x38], 0x8b4934e3
mov eax, dword [0x409098]
mov dword [eax + 0x3c], 0xee018b34
mov eax, dword [0x409098]
mov dword [eax + 0x40], 0xc031ff31
mov eax, dword [0x409098]
mov dword [eax + 0x44], 0xc084acfc
mov eax, dword [0x409098]
mov dword [eax + 0x48], 0xcfc10774
mov eax, dword [0x409098]
mov dword [eax + 0x4c], 0xebc7010d
mov eax, dword [0x409098]
mov dword [eax + 0x50], 0x247c3bf4
mov eax, dword [0x409098]
mov dword [eax + 0x54], 0x8be17528
mov eax, dword [0x409098]
mov dword [eax + 0x58], 0xeb01245a
mov eax, dword [0x409098]
mov dword [eax + 0x5c], 0x4b0c8b66
mov eax, dword [0x409098]
mov dword [eax + 0x60], 0x11c5a8b
mov eax, dword [0x409098]
mov dword [eax + 0x64], 0x8b048beb
mov eax, dword [0x409098]
mov dword [eax + 0x68], 0x4489e801
mov eax, dword [0x409098]
mov dword [eax + 0x6c], 0xc3611c24
mov eax, dword [0x409098]
mov dword [eax + 0x70], 0xe85250ad
mov eax, dword [0x409098]
mov dword [eax + 0x74], 0xffffffaa
mov eax, dword [0x409098]
mov dword [eax + 0x78], 0xc4830789
mov eax, dword [0x409098]
mov dword [eax + 0x7c], 0x4c78308
mov eax, dword [0x409098]
mov dword [eax + 0x80], 0xec75ce39
mov eax, dword [0x409098]
mov dword [eax + 0x84], 0xe58955c3
mov eax, dword [0x409098]
mov dword [eax + 0x88], 0xe810ec83
mov eax, dword [0x409098]
mov dword [eax + 0x8c], 0xffffff75
mov eax, dword [0x409098]
mov dword [eax + 0x90], 0x7400f883
mov eax, dword [0x409098]
mov dword [eax + 0x94], 0xfc458942
mov eax, dword [0x409098]
mov dword [eax + 0x98], 0x3febc289
mov eax, dword [0x409098]
mov dword [eax + 0x9c], 0xf47d8d5e
mov eax, dword [0x409098]
mov dword [eax + 0xa0], 0xc183f189
mov eax, dword [0x409098]
mov dword [eax + 0xa4], 0xffc6e808
mov eax, dword [0x409098]
mov dword [eax + 0xa8], 0x75ffffff
mov eax, dword [0x409098]
mov dword [eax + 0xac], 0xf855ff08
mov eax, dword [0x409098]
mov dword [eax + 0xb0], 0xfffc4589
mov eax, dword [0x409098]
mov dword [eax + 0xb4], 0x75ff0c75
mov eax, dword [0x409098]
mov dword [eax + 0xb8], 0xf455fffc
mov eax, dword [0x409098]
mov dword [eax + 0xbc], 0x8bf04589
mov eax, dword [0x409098]
mov dword [eax + 0xc0], 0x5d8b1445
mov eax, dword [0x409098]
mov dword [eax + 0xc4], 0xfb8310
mov eax, dword [0x409098]
mov dword [eax + 0xc8], 0xd9890a74
mov eax, dword [0x409098]
mov dword [eax + 0xcc], 0x98148b4b
mov eax, dword [0x409098]
mov dword [eax + 0xd0], 0xf9e24b52
mov eax, dword [0x409098]
mov dword [eax + 0xd4], 0x89f055ff
mov eax, dword [0x409098]
mov dword [eax + 0xd8], 0xe8c35dec
mov eax, dword [0x409098]
mov dword [eax + 0xdc], 0xffffffbc
mov eax, dword [0x409098]
mov dword [eax + 0xe0], 0x7c0dfcaa
mov eax, dword [0x409098]
mov dword [eax + 0xe4], 0xec0e4e8e
or word [0x409084], 0xffff
push dword [ebp - 0x20]
mov edi, 0x40328c
push edi
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0x44], eax
mov esi, 0x80
push ebx
lea eax, [ebp - 0x4c]
push esi
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x4c], 8
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push eax
call sub.MSVBVM60.DLL___vbaVar2Vec
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.MSVBVM60.DLL___vbaAryMove
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
push dword [ebp - 0x18]
push edi
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0x44], eax
push ebx
lea eax, [ebp - 0x4c]
push esi
push eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x4c], 8
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push eax
call sub.MSVBVM60.DLL___vbaVar2Vec
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MSVBVM60.DLL___vbaAryMove
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
mov eax, dword [ebp + 0x10]
add esp, 0xc
push dword [eax]
push 1
call sub.MSVBVM60.DLL___vbaUbound
mov edi, eax
push ebx
push edi
push 1
lea eax, [ebp - 0x30]
push 3
push eax
push 4
push esi
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], edi
jg 0x405ee0
push dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
push dword [eax]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov edx, eax
lea ecx, [ebp - 0x70]
call sub.MSVBVM60.DLL___vbaVarVargNofree
push eax
call sub.MSVBVM60.DLL___vbaI4ErrVar
push dword [ebp - 0x14]
mov esi, eax
push dword [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaDerefAry1
push 1
mov dword [eax], esi
pop eax
add eax, dword [ebp - 0x14]
jo 0x405ffc
mov dword [ebp - 0x14], eax
jmp 0x405e9e
push dword [ebp - 0x2c]
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push ebx
push dword [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaDerefAry1
push eax
call sub.MSVBVM60.DLL_VarPtr
mov esi, eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
push dword [ebp - 0x24]
lea eax, [ebp - 0x38]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push ebx
push dword [ebp - 0x38]
call sub.MSVBVM60.DLL___vbaDerefAry1
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x38]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
push dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push ebx
push dword [ebp - 0x3c]
call sub.MSVBVM60.DLL___vbaDerefAry1
push eax
call sub.MSVBVM60.DLL_VarPtr
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
add edi, 1
push ebx
jo 0x405ffc
push edi
push dword [ebp - 0x78]
push esi
push dword [0x409098]
call fcn.0040303c
mov esi, eax
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 0x1c], esi
push 0x405fe8
jmp 0x405fb7
lea ecx, [ebp - 0x18]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
push ebx
call sub.MSVBVM60.DLL___vbaAryDestruct
lea eax, [ebp - 0x2c]
push eax
push ebx
call sub.MSVBVM60.DLL___vbaAryDestruct
lea eax, [ebp - 0x30]
push eax
push ebx
call sub.MSVBVM60.DLL___vbaAryDestruct
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow