Function at 0x40dc4f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x404946
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x138
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4016e8
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 [0x4480e0]
test eax, eax
jne 0x40fa38
mov dword [ebp - 4], 4
mov dword [ebp - 0xcc], 8
mov dword [ebp - 0xd4], 2
lea eax, [ebp - 0xd4]
push eax
push 8
push 0xf9
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0xb8]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL_rtcMidCharBstr
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe4], 8
lea edx, [ebp - 0xe4]
lea ecx, [ebp - 0xa0]
call sub.MSVBVM60.DLL___vbaVarMove
lea ecx, [ebp - 0xb8]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0xd4]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 5
push 0x1a3b
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0xb8]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL_VarPtr
lea ecx, [ebp - 0xb8]
call sub.MSVBVM60.DLL___vbaFreeStr
mov dword [ebp - 4], 6
mov dword [ebp - 0xcc], 0x83
mov dword [ebp - 0xd4], 2
push 0
push 3
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xe4]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xd4]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 7
push 0
push 0x2b
push 0xec
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0xbc]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 3
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0xb8]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL_rtcInStrRev
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xb8]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0xc
mov dword [ebp - 4], 8
mov dword [ebp - 0x64], 0xb
mov dword [ebp - 4], 9
push 0
push 0x64
push 0xd7
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0xbc]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 6
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0xb8]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL_rtcInStrRev
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xb8]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0xc
mov dword [ebp - 4], 0xa
mov dword [ebp - 0xcc], 0xf6
mov dword [ebp - 0xd4], 2
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0xd4]
push eax
push 0xea
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0xb8]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
lea eax, [ebp - 0xe4]
push eax
call sub.MSVBVM60.DLL_rtcSplit
lea ecx, [ebp - 0xb8]
call sub.MSVBVM60.DLL___vbaFreeStr
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xd4]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 0xb
mov dword [ebp - 0xcc], 0x11
mov dword [ebp - 0xd4], 2
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xe4]
push eax
call sub.MSVBVM60.DLL_rtcUpperCaseVar
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xd4]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 0xc
mov eax, dword [ebp + 8]
push dword [eax]
call sub.MSVBVM60.DLL_rtcFileLen
mov dword [ebp - 0x88], eax
mov dword [ebp - 4], 0xd
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebp - 0x64]
push 0xffffffffffffffff
push 0x120
call sub.MSVBVM60.DLL___vbaFileOpen
mov dword [ebp - 4], 0xe
push 0
push 0xffffffffffffffff
push 1
push 0x72
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0xc0]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x9d
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0xbc]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0xff
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0xb8]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL_rtcReplace
mov edx, eax
lea ecx, [ebp - 0xc4]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xb8]
push eax
push 4
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x14
mov dword [ebp - 4], 0xf
mov dword [ebp - 0xec], 0x5e
mov dword [ebp - 0xf4], 2
mov dword [ebp - 0xdc], 0xbd
mov dword [ebp - 0xe4], 2
mov dword [ebp - 0xcc], 5
mov dword [ebp - 0xd4], 2
push 0
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVBVM60.DLL_rtcInStrChar
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xd4]
push eax
push 4
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0x14
mov dword [ebp - 4], 0x10
mov dword [ebp - 0xcc], 0x52
mov dword [ebp - 0xd4], 2
push 1
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xe4]
push eax
call sub.MSVBVM60.DLL_rtcLeftCharVar
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xd4]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 0x11
mov dword [ebp - 0x110], 0x407030
mov dword [ebp - 0x118], 8
lea edx, [ebp - 0x118]
lea ecx, [ebp - 0xd4]
call sub.MSVBVM60.DLL___vbaVarDup
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0x88]
call sub.MSVBVM60.DLL_rtcStringBstr
mov edx, eax
lea ecx, [ebp - 0x60]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0xd4]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x12
push dword [ebp - 0x64]
lea eax, [ebp - 0x60]
push eax
push 0
call sub.MSVBVM60.DLL___vbaGet3
mov dword [ebp - 4], 0x13
push dword [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaFileClose
mov dword [ebp - 4], 0x14
push dword [0x448244]
call sub.MSVBVM60.DLL___vbaLenBstr
mov word [ebp - 0x13c], ax
lea eax, [ebp - 0x13c]
push eax
call fcn.0041a963
mov edx, eax
lea ecx, [ebp - 0x7c]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0x15
mov dword [ebp - 0xcc], 4
mov dword [ebp - 0xd4], 2
push 2
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xe4]
push eax
call sub.MSVBVM60.DLL_rtcRightCharVar
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xd4]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 0x16
push 0
push 0xffffffffffffffff
push 1
push dword [ebp - 0x7c]
push dword [0x448244]
push dword [ebp - 0x60]
call sub.MSVBVM60.DLL_rtcReplace
mov edx, eax
lea ecx, [ebp - 0x60]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0x17
mov dword [ebp - 0x110], 0x448244
mov dword [ebp - 0x118], 0x4008
push 0
push 0x40
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xd4]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0xd4]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0xd4]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x18
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x118], 0x4008
push 0
push 0x40
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xd4]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0xd4]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0xa8]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0xd4]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x19
push 0
push 0xffffffffffffffff
push 1
push 0xe
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0xc0]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0xd5
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0xbc]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x9c
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0xb8]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL_rtcReplace
mov edx, eax
lea ecx, [ebp - 0xc4]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xb8]
push eax
push 4
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x14
mov dword [ebp - 4], 0x1a
mov dword [ebp - 0xcc], 0x27
mov dword [ebp - 0xd4], 2
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xe4]
push eax
call sub.MSVBVM60.DLL_rtcUpperCaseVar
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xd4]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
inc dword [ebx + 0x45c70cc4]
cld
sbb eax, dword [eax]
add byte [eax], al
mov dword [ebp - 4], 0x70
push 0
push 0xb4
push 0x32
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0xbc]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 6
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0xb8]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL_rtcInStrRev
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xb8]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0xc
mov dword [ebp - 4], 0x71
push 0
push 2
push 1
push 0
lea eax, [ebp - 0x108]
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 - 0x110], eax
mov dword [ebp - 0x118], 3
lea esi, [ebp - 0x118]
push 0
push dword [ebp - 0x108]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
mov eax, dword [ebp + 0xc]
push dword [eax]
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x128], 3
lea esi, [ebp - 0x128]
push 1
push dword [ebp - 0x108]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
and dword [ebp - 0x130], 0
mov dword [ebp - 0x138], 0xb
lea esi, [ebp - 0x138]
push 2
push dword [ebp - 0x108]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x108]
push eax
push dword [0x448080]
push dword [0x4480ac]
call fcn.00413317
lea eax, [ebp - 0x108]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
mov dword [ebp - 4], 0x72
push 0
push 1
push 1
push 0
lea eax, [ebp - 0x108]
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 - 0x110], eax
mov dword [ebp - 0x118], 3
lea esi, [ebp - 0x118]
push 0
push dword [ebp - 0x108]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
and dword [ebp - 0x120], 0
mov dword [ebp - 0x128], 3
lea esi, [ebp - 0x128]
push 1
push dword [ebp - 0x108]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x108]
push eax
push dword [0x448258]
push dword [0x4480ac]
call fcn.00413317
lea eax, [ebp - 0x108]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase