Function at 0x4116b6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x404106
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x80
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401ae8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaStrCopy
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 3
push 0
push 0
call fcn.00406648
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 4
cmp dword [0x444b90], 0
jne 0x411754
push 0x444b90
push 0x406860
call sub.MSVBVM60.DLL___vbaNew2
mov dword [ebp - 0x98], 0x444b90
jmp 0x41175e
mov dword [ebp - 0x98], 0x444b90
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
push dword [ebp - 0x6c]
call dword [eax + 0x1c]
fnclex
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jge 0x41179d
push 0x1c
push 0x406850
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call sub.MSVBVM60.DLL___vbaHresultCheckObj
mov dword [ebp - 0x9c], eax
jmp 0x4117a4
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x54], 0x80020004
mov dword [ebp - 0x5c], 0xa
push 0x10
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
lea esi, [ebp - 0x5c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
push dword [ebp - 0x74]
call dword [eax + 0x60]
fnclex
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jge 0x41180b
push 0x60
push 0x406870
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call sub.MSVBVM60.DLL___vbaHresultCheckObj
mov dword [ebp - 0xa0], eax
jmp 0x411812
and dword [ebp - 0xa0], 0
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaFreeObj
mov dword [ebp - 4], 5
call fcn.0042403c
mov dword [ebp - 4], 6
push 0
push 0xffffffffffffffff
push 0x406bd4
push dword [ebp - 0x24]
call sub.MSVBVM60.DLL_rtcInStrRev
mov dword [ebp - 0x68], eax
push dword [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaLenBstr
sub eax, dword [ebp - 0x68]
jo 0x411b3e
push eax
push dword [ebp - 0x24]
call sub.MSVBVM60.DLL_rtcRightCharBstr
mov edx, eax
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaStrMove
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x90], eax
and dword [ebp - 0x40], 0
push 0
push 0xffffffffffffffff
push 1
push 0
push dword [0x4443a4]
mov edx, dword [ebp - 0x90]
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL_rtcReplace
mov edx, eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrMove
mov word [ebp - 0x60], 1
push dword [ebp - 0x24]
push 0x406bdc
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040feb9
mov edx, eax
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x3c]
call sub.MSVBVM60.DLL___vbaStrMove
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x94], eax
and dword [ebp - 0x44], 0
mov dword [ebp - 0x64], 0x80000001
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [ebp - 0x94]
lea ecx, [ebp - 0x38]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x4447dc
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaStrVarVal
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0041d2b8
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push 8
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x24
mov dword [ebp - 4], 7
push 0
push 0
push 0
push 0
call fcn.00406784
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 8
mov dword [ebp - 0x64], 0x80000001
push 0
push 0x44426c
lea eax, [ebp - 0x28]
push eax
call sub.MSVBVM60.DLL___vbaStrVarVal
push eax
push dword [0x444224]
lea eax, [ebp - 0x64]
push eax
call fcn.0042586a
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaFreeStr
mov dword [ebp - 4], 9
push 0
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL_rtcCharValueBstr
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaFreeStr
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x64], 0x80000002
push 1
push 0x406be8
push 0x406bf4
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x406bfc
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x406c04
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x406c0c
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x406c18
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x38]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x406c20
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x3c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x406c04
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x406c2c
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x48]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x444618
lea eax, [ebp - 0x44]
push eax
call sub.MSVBVM60.DLL___vbaStrVarVal
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0042586a
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push 9
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x28
mov dword [ebp - 4], 0xb
call sub.MSVBVM60.DLL_rtcErrObj
push eax
lea eax, [ebp - 0x4c]
push eax
call sub.MSVBVM60.DLL___vbaObjSet
lea ecx, [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaFreeObj
push 0x411b2d
jmp 0x411b24
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeStr
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow