Function at 0x4ec510
Capabilities:
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4106c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xdc
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x40fe18
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
mov dword [ebp - 0xa0], 0x420e98
mov dword [ebp - 0xa8], 8
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
push 0x41823c
push 0x446bcc
lea eax, [ebp - 0x68]
push eax
call fcn.004c7510
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 4
lea ecx, [ebp - 0xcc]
push ecx
mov edx, dword [0x4f3108]
mov eax, dword [edx]
mov ecx, dword [0x4f3108]
push ecx
call dword [eax + 0x454]
fnclex
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jge 0x4ec607
push 0x454
push 0x421090
mov edx, dword [0x4f3108]
push edx
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xf0], eax
jmp 0x4ec611
mov dword [ebp - 0xf0], 0
cmp word [ebp - 0xcc], 0xffff
je 0x4ec620
jmp 0x4ec905
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [0x4f3108]
mov eax, dword [edx]
mov ecx, dword [0x4f3108]
push ecx
call dword [eax + 0x68c]
fnclex
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jge 0x4ec677
push 0x68c
push 0x421090
mov edx, dword [0x4f3108]
push edx
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xf4], eax
jmp 0x4ec681
mov dword [ebp - 0xf4], 0
push 0
push 0x446bf8
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.004e0ef0
xor edx, edx
cmp ax, 0xffff
sete dl
neg edx
mov word [ebp - 0xd8], dx
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0xd8]
test eax, eax
je 0x4ec855
mov dword [ebp - 4], 8
push 0x420eb8
push 0x446e08
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x4462bc
call fcn.004ec9d0
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov dword [ebp - 4], 9
call fcn.004ec170
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0xcc]
push ecx
mov edx, dword [0x4f3108]
mov eax, dword [edx]
mov ecx, dword [0x4f3108]
push ecx
call dword [eax + 0x27c]
fnclex
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jge 0x4ec757
push 0x27c
push 0x421090
mov edx, dword [0x4f3108]
push edx
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xf8], eax
jmp 0x4ec761
mov dword [ebp - 0xf8], 0
cmp word [ebp - 0xcc], 0xffff
jne 0x4ec850
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x90], 0x80020004
mov dword [ebp - 0x98], 0xa
mov dword [ebp - 0x80], 0x80020004
mov dword [ebp - 0x88], 0xa
mov dword [ebp - 0x70], 0x80020004
mov dword [ebp - 0x78], 0xa
push 0x446e40
push 0x424e28
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x446f80
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x68], 8
lea ecx, [ebp - 0x98]
push ecx
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x78]
push eax
push 0x24
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcMsgBox]
xor edx, edx
cmp eax, 6
sete dl
neg edx
mov word [ebp - 0xd4], dx
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0x68]
push eax
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x14
movsx ecx, word [ebp - 0xd4]
test ecx, ecx
je 0x4ec850
mov dword [ebp - 4], 0xc
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0049ca20
jmp 0x4ec905
mov dword [ebp - 4], 0x10
lea edx, [ebp - 0x54]
push edx
mov eax, dword [0x4f3108]
mov ecx, dword [eax]
mov edx, dword [0x4f3108]
push edx
call dword [ecx + 0x524]
fnclex
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jge 0x4ec8aa
push 0x524
push 0x421090
mov eax, dword [0x4f3108]
push eax
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xfc], eax
jmp 0x4ec8b4
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xd0], 0
push 0
push 0
lea edx, [ebp - 0xd0]
push edx
push 0
push 0xffffffffffffffff
push 0x446ff0
mov eax, dword [ebp - 0x54]
push eax
push 0x418148
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
call fcn.00496840
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x54]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
mov dword [ebp - 4], 0x13
mov eax, dword [ebp - 0x34]
push eax
call fcn.004c8940
jmp 0x4ec949
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x4ec9b0
jmp 0x4ec98b
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret