Function at 0x47e7ca
Capabilities:
Parse pe header

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 0x70
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4017f8
mov dword [ebp - 0x68], 0x400038
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x501100], eax
mov dword [0x501014], 0xb33b6c
mov dword [ebp - 0x68], 0xb33b6c
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x501018], eax
mov eax, dword [0x501018]
add eax, 0x20
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x50101c], eax
mov eax, dword [0x501018]
add eax, 0x1c
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x501020], eax
push 0x501034
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 [0x501020]
add eax, 0x110
jo 0x47f15c
push eax
push dword [0x501404]
call fcn.004295a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [0x501020]
add eax, 0xd0
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
dec eax
dec eax
neg eax
sbb eax, eax
inc eax
neg eax
mov word [0x501010], ax
mov eax, dword [0x501020]
add eax, 0x18
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 8
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x501024], eax
call fcn.0047d312
mov eax, dword [0x501018]
add eax, 0x4b4
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x68], 0xb440b8
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
add eax, dword [ebp - 0x1c]
jo 0x47f15c
mov dword [0x5010b8], eax
mov dword [ebp - 0x4c], 0x42cf64
mov dword [ebp - 0x54], 8
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaVarDup
lea eax, [ebp - 0x34]
push eax
fild dword [0x5010b8]
fstp qword [ebp - 0x7c]
fld qword [ebp - 0x7c]
push ecx
push ecx
fstp qword [esp]
push 0x42cf5c
lea eax, [ebp - 0x44]
push eax
call sub.MSVBVM60.DLL_rtcDateAdd
lea eax, [ebp - 0x44]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x18]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
push 1
push dword [ebp - 0x18]
push 0x42bc24
push 0
call sub.MSVBVM60.DLL___vbaInStr
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x47eaa6
lea eax, [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], 0x4008
mov eax, dword [ebp - 0x1c]
sub eax, 1
jo 0x47f15c
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL_rtcLeftCharVar
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaStrMove
mov edx, eax
mov ecx, 0x5010bc
call sub.MSVBVM60.DLL___vbaStrCopy
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x34], 2
lea eax, [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], 0x4008
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x1c]
add eax, 1
jo 0x47f15c
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
call sub.MSVBVM60.DLL_rtcMidCharVar
lea eax, [ebp - 0x44]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaStrMove
mov edx, eax
mov ecx, 0x5010c0
call sub.MSVBVM60.DLL___vbaStrCopy
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeStr
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
jmp 0x47eb16
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL_rtcGetDateVar
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaStrMove
mov edx, eax
mov ecx, 0x5010bc
call sub.MSVBVM60.DLL___vbaStrCopy
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVar
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL_rtcGetTimeVar
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaStrMove
mov edx, eax
mov ecx, 0x5010c0
call sub.MSVBVM60.DLL___vbaStrCopy
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVar
lea eax, [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], 0x4008
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL_rtcGetYear
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaI4Var
mov dword [0x5010c4], eax
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVar
lea eax, [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], 0x4008
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL_rtcGetMonthOfYear
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaI4Var
mov dword [0x5010c8], eax
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVar
lea eax, [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], 0x4008
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL_rtcGetDayOfMonth
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaI4Var
mov dword [0x5010cc], eax
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVar
lea eax, [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], 0x4008
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL_rtcGetHourOfDay
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaI4Var
mov dword [0x5010d0], eax
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVar
lea eax, [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], 0x4008
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL_rtcGetMinuteOfHour
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaI4Var
mov dword [0x5010d4], eax
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVar
lea eax, [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], 0x4008
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL_rtcGetSecondOfMinute
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaI4Var
mov dword [0x5010d8], eax
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVar
mov eax, dword [0x50101c]
add eax, 0x158
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x5010dc], eax
mov eax, dword [0x50101c]
add eax, 0x170
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x5010e0], eax
mov eax, dword [0x501020]
add eax, 0x34
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x501054], eax
mov eax, dword [0x501054]
add eax, 0x474
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x50111c], eax
mov eax, dword [0x501020]
add eax, 0x2c
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
test eax, eax
je 0x47ecde
and word [0x501010], 0
cmp dword [0x501054], 0
jne 0x47ecef
and word [0x501010], 0
mov eax, dword [0x501020]
add eax, 0x1c
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x501044], eax
mov eax, dword [0x501044]
add eax, 0x60
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [ebp - 0x20], eax
mov eax, dword [0x501044]
add eax, 0x60
jo 0x47f15c
add eax, 8
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
neg eax
sbb eax, eax
neg eax
neg eax
mov word [0x50113c], ax
cmp dword [ebp - 0x20], 0
jne 0x47ed6a
and word [0x501010], 0
movsx eax, word [0x501010]
test eax, eax
jne 0x47ed7a
jmp 0x47f121
mov eax, dword [ebp - 0x20]
add eax, 0x40
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x501138], eax
cmp dword [0x501138], 0
jle 0x47edb0
push 0x501138
call fcn.004834ea
mov word [0x501120], ax
mov eax, dword [ebp - 0x20]
add eax, 4
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x6c], 0xc
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004651f1
mov edx, eax
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaStrMove
mov edx, eax
mov ecx, 0x501140
call sub.MSVBVM60.DLL___vbaStrCopy
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeStr
push 0x50112c
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 [0x501044]
add eax, 0x7c
jo 0x47f15c
push eax
push dword [0x501404]
call fcn.004295a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [0x501044]
add eax, 0x20
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x501048], eax
mov eax, dword [0x501044]
add eax, 0x24
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x50104c], eax
mov eax, dword [0x501044]
add eax, 0x28
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x501050], eax
mov eax, dword [0x501054]
add eax, 0xd84
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x501058], eax
mov eax, dword [0x501054]
add eax, 0x728
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x50109c], eax
mov eax, dword [0x501054]
add eax, 0xd78
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x501070], eax
mov eax, dword [0x501054]
add eax, 0xce8
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x50105c], eax
mov eax, dword [0x501054]
add eax, 0xfa0
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x501060], eax
mov eax, dword [0x501054]
add eax, 0xd98
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x501064], eax
mov eax, dword [0x501054]
add eax, 0xdc8
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x501068], eax
mov eax, dword [0x501054]
add eax, 0xd24
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x501074], eax
mov eax, dword [0x501054]
add eax, 0xcec
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x50106c], eax
and dword [ebp - 0x70], 0
cmp dword [ebp - 0x70], 9
jae 0x47efd4
and dword [ebp - 0x80], 0
jmp 0x47efdc
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x70]
lea eax, [eax*4 + 0x501078]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x6c], eax
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x68]
push eax
push 0x20
push dword [ebp - 0x6c]
mov eax, dword [0x501054]
add eax, 0xd00
jo 0x47f15c
push eax
push dword [0x501404]
call fcn.004295a8
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [0x501054]
add eax, 0xd88
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x5010a0], eax
mov eax, dword [0x501054]
add eax, 0xd30
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x5010a4], eax
mov eax, dword [0x501054]
add eax, 0xd34
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x5010a8], eax
mov eax, dword [0x501054]
add eax, 0xd38
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x5010ac], eax
mov eax, dword [0x501054]
add eax, 0xd3c
jo 0x47f15c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046556e
mov dword [0x5010b0], eax
call fcn.0049c4d2
call fcn.0046cccc
call fcn.0047109d
call fcn.00469b9e
call fcn.0046a082
call fcn.0047c246
call fcn.0047725b
call fcn.0046a66d
call fcn.0046e1f1
push 0x5017fc
call fcn.0046ef0d
call fcn.0047b733
call fcn.00478e22
cmp dword [0x5017fc], 3
jne 0x47f113
call fcn.004b9909
jmp 0x47f121
cmp dword [0x5017fc], 9
jne 0x47f121
call fcn.004b9e0e
wait
push 0x47f14d
jmp 0x47f144
lea ecx, [ebp - 0x18]
call sub.MSVBVM60.DLL___vbaFreeStr
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow