Function at 0x41ded8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4035b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1ec
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401e00
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 3
movsx eax, word [0x43617c]
test eax, eax
jne 0x41f122
mov dword [ebp - 4], 4
call fcn.004051a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 5
mov dword [ebp - 0xa4], 0xb
mov dword [ebp - 4], 6
push 0x405928
push 0x405e50
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x188]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405e5c
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x18c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x4056ec
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x190]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x4059f8
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1a8], 8
lea edx, [ebp - 0x1a8]
lea ecx, [ebp - 0xb4]
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x188]
push eax
push 3
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x10
mov dword [ebp - 4], 7
mov eax, dword [ebp + 8]
push dword [eax]
call sub.MSVBVM60.DLL_rtcFileLen
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], 8
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebp - 0xa4]
push 0xffffffffffffffff
push 0x120
call sub.MSVBVM60.DLL___vbaFileOpen
mov dword [ebp - 4], 9
mov dword [ebp - 0x1c4], 0x405e68
mov dword [ebp - 0x1cc], 8
lea edx, [ebp - 0x1cc]
lea ecx, [ebp - 0x1a8]
call sub.MSVBVM60.DLL___vbaVarDup
lea eax, [ebp - 0x1a8]
push eax
push dword [ebp - 0x118]
lea eax, [ebp - 0x1b8]
push eax
call sub.MSVBVM60.DLL_rtcStringVar
lea eax, [ebp - 0x1b8]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0xa0]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x1a8]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 0xa
push dword [ebp - 0xa4]
lea eax, [ebp - 0xa0]
push eax
push 0
call sub.MSVBVM60.DLL___vbaGet3
mov dword [ebp - 4], 0xb
push dword [ebp - 0xa4]
call sub.MSVBVM60.DLL___vbaFileClose
mov dword [ebp - 4], 0xc
call fcn.004051ec
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0xd
call fcn.004051a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0xe
push dword [0x436258]
call sub.MSVBVM60.DLL___vbaLenBstr
mov word [ebp - 0x1f0], ax
lea eax, [ebp - 0x1f0]
push eax
call fcn.0041a77c
mov edx, eax
lea ecx, [ebp - 0xcc]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0xf
call fcn.004051a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x10
call fcn.004051ec
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x11
push 0
push 0xffffffffffffffff
push 1
push dword [ebp - 0xcc]
push dword [0x436258]
push dword [ebp - 0xa0]
call sub.MSVBVM60.DLL_rtcReplace
mov edx, eax
lea ecx, [ebp - 0xa0]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0x12
push 0x405260
push 0x405e70
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x188]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405e7c
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x18c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405890
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x190]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x4052c8
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x194]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x4056fc
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1a8], 8
lea edx, [ebp - 0x1a8]
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x188]
push eax
push 4
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x14
mov dword [ebp - 4], 0x13
mov dword [ebp - 0x1c4], 0x436258
mov dword [ebp - 0x1cc], 0x4008
push 0
push 0x40
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x1a8]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0x1a8]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x74]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x1a8]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x14
call fcn.004051ec
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x15
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1cc], 0x4008
push 0
push 0x40
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x1a8]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0x1a8]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x178]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x1a8]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x16
call fcn.004051a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x17
push 0
push 0xffffffffffffffff
push 1
push dword [ebp - 0x178]
push dword [ebp - 0x74]
push dword [ebp - 0xa0]
call sub.MSVBVM60.DLL_rtcReplace
mov edx, eax
lea ecx, [ebp - 0xa0]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0x18
push 0x405e88
push 0x405e94
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x188]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405cdc
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x18c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405ea0
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x190]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x4059a8
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1a8], 8
lea edx, [ebp - 0x1a8]
lea ecx, [ebp - 0x170]
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x188]
push eax
push 3
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x10
mov dword [ebp - 4], 0x19
mov edx, 0x404fa4
lea ecx, [ebp - 0xc0]
call sub.MSVBVM60.DLL___vbaStrCopy
mov dword [ebp - 4], 0x1a
call fcn.004051ec
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x1b
push dword [ebp - 0xc0]
call sub.MSVBVM60.DLL___vbaLenBstr
mov word [ebp - 0x1f0], ax
lea eax, [ebp - 0x1f0]
push eax
call fcn.0041a77c
mov edx, eax
lea ecx, [ebp - 0x110]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0x1c
call fcn.004051a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x1d
mov dword [ebp - 0x1c4], 0x404fa4
mov dword [ebp - 0x1cc], 8
lea edx, [ebp - 0x1cc]
lea ecx, [ebp - 0x1a8]
call sub.MSVBVM60.DLL___vbaVarDup
push 0
push 0x40
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x1b8]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0x1b8]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x80]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x1a8]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 0x1e
push 0x405eac
push 0x405eb8
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x188]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405898
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1a8], 8
lea edx, [ebp - 0x1a8]
lea ecx, [ebp - 0x160]
call sub.MSVBVM60.DLL___vbaVarMove
lea ecx, [ebp - 0x188]
call sub.MSVBVM60.DLL___vbaFreeStr
mov dword [ebp - 4], 0x1f
lea eax, [ebp - 0x110]
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1cc], 0x4008
push 0
push 0x40
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x1a8]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0x1a8]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x7c]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x1a8]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x20
push 0x405ec8
push 0x405b44
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x188]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405ed4
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x18c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405ee0
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x190]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405898
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x194]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405328
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1a8], 8
lea edx, [ebp - 0x1a8]
lea ecx, [ebp - 0x10c]
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x188]
push eax
push 4
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x14
mov dword [ebp - 4], 0x21
push 0
push 0xffffffffffffffff
push 1
push dword [ebp - 0x110]
push dword [ebp - 0xc0]
push dword [ebp - 0xa0]
call sub.MSVBVM60.DLL_rtcReplace
mov edx, eax
lea ecx, [ebp - 0xa0]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0x22
push 0x405eec
push 0x4056b8
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1a8], 8
lea edx, [ebp - 0x1a8]
lea ecx, [ebp - 0x150]
call sub.MSVBVM60.DLL___vbaVarMove
mov dword [ebp - 4], 0x23
push 0
push 0xffffffffffffffff
push 1
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0xa0]
call sub.MSVBVM60.DLL_rtcReplace
mov edx, eax
lea ecx, [ebp - 0xa0]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0x24
push 0x4056fc
push 0x405774
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x188]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405f00
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x18c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405290
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1a8], 8
lea edx, [ebp - 0x1a8]
lea ecx, [ebp - 0x140]
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x188]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0xc
mov dword [ebp - 4], 0x25
push 0x40533c
push 0x405f0c
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1a8], 8
lea edx, [ebp - 0x1a8]
lea ecx, [ebp - 0x130]
call sub.MSVBVM60.DLL___vbaVarMove
mov dword [ebp - 4], 0x26
push 0x404f7c
call sub.MSVBVM60.DLL___vbaLenBstr
mov word [ebp - 0x1f0], ax
lea eax, [ebp - 0x1f0]
push eax
call fcn.0041a77c
mov edx, eax
lea ecx, [ebp - 0xb8]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0x27
mov dword [ebp - 0x1c4], 0x404f7c
mov dword [ebp - 0x1cc], 8
lea edx, [ebp - 0x1cc]
lea ecx, [ebp - 0x1a8]
call sub.MSVBVM60.DLL___vbaVarDup
push 0
push 0x40
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x1b8]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0x1b8]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x68]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x1a8]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 0x28
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1cc], 0x4008
push 0
push 0x40
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x1a8]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0x1a8]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x1a8]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x29
push 0
push 0xffffffffffffffff
push 1
push dword [ebp - 0xb8]
push 0x404f7c
push dword [ebp - 0xa0]
call sub.MSVBVM60.DLL_rtcReplace
mov edx, eax
lea ecx, [ebp - 0xa0]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0x2a
push 0x405774
push 0x405f20
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x188]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405f2c
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x18c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405f38
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1a8], 8
lea edx, [ebp - 0x1a8]
lea ecx, [ebp - 0x94]
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x188]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0xc
mov dword [ebp - 4], 0x2b
push 0
push 0xffffffffffffffff
push 1
push dword [ebp - 0x64]
push dword [ebp - 0x68]
push dword [ebp - 0xa0]
call sub.MSVBVM60.DLL_rtcReplace
mov edx, eax
lea ecx, [ebp - 0xa0]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0x2c
push 0x405f44
push 0x4057ec
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x188]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405f50
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x18c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405b44
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x190]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405f5c
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x194]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x40574c
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1a8], 8
lea edx, [ebp - 0x1a8]
lea ecx, [ebp - 0x60]
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x188]
push eax
push 4
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x14
mov dword [ebp - 4], 0x2d
push 0x404f90
call sub.MSVBVM60.DLL___vbaLenBstr
mov word [ebp - 0x1f0], ax
lea eax, [ebp - 0x1f0]
push eax
call fcn.0041a77c
mov edx, eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0x2e
call fcn.004051a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x2f
mov dword [ebp - 0x1c4], 0x404f90
mov dword [ebp - 0x1cc], 8
lea edx, [ebp - 0x1cc]
lea ecx, [ebp - 0x1a8]
call sub.MSVBVM60.DLL___vbaVarDup
push 0
push 0x40
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x1b8]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0x1b8]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x70]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x1a8]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 0x30
lea eax, [ebp - 0x44]
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1cc], 0x4008
push 0
push 0x40
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x1a8]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0x1a8]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x17c]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x1a8]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x31
call fcn.004051a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x32
push 0
push 0xffffffffffffffff
push 1
push dword [ebp - 0x44]
push 0x404f90
push dword [ebp - 0xa0]
call sub.MSVBVM60.DLL_rtcReplace
mov edx, eax
lea ecx, [ebp - 0xa0]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0x33
push 0
push 0xffffffffffffffff
push 1
push dword [ebp - 0x17c]
push dword [ebp - 0x70]
push dword [ebp - 0xa0]
call sub.MSVBVM60.DLL_rtcReplace
mov edx, eax
lea ecx, [ebp - 0xa0]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0x34
push 0x4056f4
push 0x405f68
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x188]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405990
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x18c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405288
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x190]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x4057d0
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x194]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x4057ec
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1a8], 8
lea edx, [ebp - 0x1a8]
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x188]
push eax
push 4
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x14
mov dword [ebp - 4], 0x35
push 0x404f68
call sub.MSVBVM60.DLL___vbaLenBstr
mov word [ebp - 0x1f0], ax
lea eax, [ebp - 0x1f0]
push eax
call fcn.0041a77c
mov edx, eax
lea ecx, [ebp - 0x11c]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0x36
mov dword [ebp - 0x1c4], 0x404f68
mov dword [ebp - 0x1cc], 8
lea edx, [ebp - 0x1cc]
lea ecx, [ebp - 0x1a8]
call sub.MSVBVM60.DLL___vbaVarDup
push 0
push 0x40
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x1b8]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0x1b8]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x180]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x1a8]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 0x37
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1cc], 0x4008
push 0
push 0x40
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x1a8]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0x1a8]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x114]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x1a8]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x38
push 0
push 0xffffffffffffffff
push 1
push dword [ebp - 0x11c]
push 0x404f68
push dword [ebp - 0xa0]
call sub.MSVBVM60.DLL_rtcReplace
mov edx, eax
lea ecx, [ebp - 0xa0]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0x39
push 0x405308
push 0x4052b8
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x188]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405f74
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x18c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405f80
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1a8], 8
lea edx, [ebp - 0x1a8]
lea ecx, [ebp - 0xfc]
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x188]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0xc
mov dword [ebp - 4], 0x3a
push 0
push 0xffffffffffffffff
push 1
push dword [ebp - 0x114]
push dword [ebp - 0x180]
push dword [ebp - 0xa0]
call sub.MSVBVM60.DLL_rtcReplace
mov edx, eax
lea ecx, [ebp - 0xa0]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0x3b
call fcn.004051ec
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x3c
call fcn.004051a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x3d
push dword [ebp - 0xcc]
push dword [0x4360c8]
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x188]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x4360cc
call fcn.0041504b
lea ecx, [ebp - 0x188]
call sub.MSVBVM60.DLL___vbaFreeStr
mov dword [ebp - 4], 0x3e
call fcn.004051ec
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x3f
call fcn.004051ec
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x40
mov dword [ebp - 0xa4], 0xc
mov dword [ebp - 4], 0x41
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp - 0xa4]
push 0xffffffffffffffff
push 0x220
call sub.MSVBVM60.DLL___vbaFileOpen
mov dword [ebp - 4], 0x42
push dword [ebp - 0xa4]
lea eax, [ebp - 0xa0]
push eax
push 0
call sub.MSVBVM60.DLL___vbaPut3
mov dword [ebp - 4], 0x43
push 0x4057d0
push 0x405f8c
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1a8], 8
lea edx, [ebp - 0x1a8]
lea ecx, [ebp - 0xec]
call sub.MSVBVM60.DLL___vbaVarMove
mov dword [ebp - 4], 0x44
push dword [ebp - 0xa4]
call sub.MSVBVM60.DLL___vbaFileClose
mov dword [ebp - 4], 0x45
mov dword [ebp - 0xa4], 0xd
mov dword [ebp - 4], 0x46
call fcn.004051a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x47
call fcn.004051ec
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x48
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp - 0xa4]
push 0xffffffffffffffff
push 0x220
call sub.MSVBVM60.DLL___vbaFileOpen
mov dword [ebp - 4], 0x49
call fcn.004051a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x4a
mov dword [ebp - 0x1f8], 0x65a
mov dword [ebp - 0x1f4], 1
and dword [ebp - 0x184], 0
jmp 0x41efa1
mov eax, dword [ebp - 0x184]
add eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x184]
cmp eax, dword [ebp - 0x1f8]
jg 0x41f0e9
mov dword [ebp - 4], 0x4b
push 0x405928
push 0x405f9c
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x188]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x40574c
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x18c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x4057d8
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x190]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x4057ec
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x194]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x4059f8
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x198]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405cc4
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1a8], 8
lea edx, [ebp - 0x1a8]
lea ecx, [ebp - 0xdc]
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x188]
push eax
push 5
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x18
mov dword [ebp - 4], 0x4c
mov ax, word [ebp - 0xa4]
mov word [ebp - 0xc4], ax
mov dword [ebp - 4], 0x4d
push dword [ebp - 0xc4]
mov eax, dword [0x436190]
add eax, dword [ebp - 0x184]
push eax
mov eax, dword [0x4360cc]
mov ecx, dword [ebp - 0x184]
sub ecx, dword [eax + 0x14]
mov eax, dword [0x4360cc]
mov eax, dword [eax + 0xc]
add eax, ecx
push eax
push 1
call sub.MSVBVM60.DLL___vbaPut4
mov dword [ebp - 4], 0x4e
jmp 0x41ef8f
mov dword [ebp - 4], 0x4f
call fcn.004051ec
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x50
call fcn.004051ec
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x51
push dword [ebp - 0xa4]
call sub.MSVBVM60.DLL___vbaFileClose
jmp 0x41f301
mov dword [ebp - 4], 0x53
call fcn.004051ec
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x54
call fcn.004051a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x55
push 0
push 2
push 1
push 0
lea eax, [ebp - 0x1bc]
push eax
push 0x10
push 0x880
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
mov eax, dword [ebp + 8]
push dword [eax]
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1cc], 3
lea edx, [ebp - 0x1cc]
mov eax, dword [ebp - 0x1bc]
xor ecx, ecx
sub ecx, dword [eax + 0x14]
shl ecx, 4
mov eax, dword [ebp - 0x1bc]
mov eax, dword [eax + 0xc]
add ecx, eax
call sub.MSVBVM60.DLL___vbaVarMove
mov eax, dword [ebp + 0xc]
push dword [eax]
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1dc], 3
lea edx, [ebp - 0x1dc]
mov eax, dword [ebp - 0x1bc]
push 1
pop ecx
sub ecx, dword [eax + 0x14]
shl ecx, 4
mov eax, dword [ebp - 0x1bc]
mov eax, dword [eax + 0xc]
add ecx, eax
call sub.MSVBVM60.DLL___vbaVarMove
and dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1ec], 0xb
lea edx, [ebp - 0x1ec]
mov eax, dword [ebp - 0x1bc]
push 2
pop ecx
sub ecx, dword [eax + 0x14]
shl ecx, 4
mov eax, dword [ebp - 0x1bc]
mov eax, dword [eax + 0xc]
add ecx, eax
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x1bc]
push eax
push dword [0x43611c]
push dword [0x436148]
call fcn.00422493
lea eax, [ebp - 0x1bc]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
mov dword [ebp - 4], 0x56
push 0
push 1
push 1
push 0
lea eax, [ebp - 0x1bc]
push eax
push 0x10
push 0x880
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
mov eax, dword [ebp + 0xc]
push dword [eax]
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1cc], 3
lea edx, [ebp - 0x1cc]
mov eax, dword [ebp - 0x1bc]
xor ecx, ecx
sub ecx, dword [eax + 0x14]
shl ecx, 4
mov eax, dword [ebp - 0x1bc]
mov eax, dword [eax + 0xc]
add ecx, eax
call sub.MSVBVM60.DLL___vbaVarMove
and dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1dc], 3
lea edx, [ebp - 0x1dc]
mov eax, dword [ebp - 0x1bc]
push 1
pop ecx
sub ecx, dword [eax + 0x14]
shl ecx, 4
mov eax, dword [ebp - 0x1bc]
mov eax, dword [eax + 0xc]
add ecx, eax
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x1bc]
push eax
push dword [0x43626c]
push dword [0x436148]
call fcn.00422493
lea eax, [ebp - 0x1bc]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
mov dword [ebp - 4], 0x58
call fcn.004051a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x59
call fcn.004051a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x5a
or word [0x43617c], 0xffff
push 0x41f524
jmp 0x41f38d
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x48]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x50]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x60]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x68]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x6c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x70]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x74]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x78]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x7c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x80]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x84]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x94]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0x98]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x9c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0xa0]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0xb4]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0xb8]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0xbc]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0xc0]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0xc8]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0xcc]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0xdc]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0xec]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0xfc]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0x10c]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0x110]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x114]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x11c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x130]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0x140]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0x150]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0x160]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0x170]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0x178]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x17c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x180]
call sub.MSVBVM60.DLL___vbaFreeStr
ret