Function at 0x410ff0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401966
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4013b8
mov edx, dword [ebp + 8]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
xor edi, edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xb4], edi
call esi
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call esi
call fcn.00410e60
test ax, ax
je 0x4112da
mov edx, 0x40348c
lea ecx, [ebp - 0x28]
call esi
mov edx, 0x404e3c
lea ecx, [ebp - 0x24]
call esi
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x24]
push ecx
lea eax, [ebp - 0xb4]
push edx
push eax
mov dword [ebp - 0xb4], 0x80000002
call fcn.0041b930
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x24]
push ecx
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
mov eax, dword [ebp - 0x1c]
add esp, 0xc
push eax
call fcn.00413e10
mov edx, eax
lea ecx, [ebp - 0x14]
call esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x80], 8
push eax
push 0x40348c
mov dword [ebp - 0x78], eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
mov ebx, eax
mov edx, dword [ebp - 0x80]
neg ebx
push edi
mov eax, dword [ebp - 0x7c]
sbb ebx, ebx
sub esp, 0x10
mov ecx, esp
inc ebx
mov dword [ecx], edx
mov edx, dword [ebp - 0x78]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x74]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00410a30
neg eax
sbb eax, eax
neg eax
or ebx, eax
jne 0x411358
mov ecx, dword [ebp - 0x18]
push 1
push 0x404f20
push 0x404eac
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
push eax
push 0x80000002
call fcn.0041bbb0
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x24]
call ebx
lea eax, [ebp - 0x80]
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x1c]
push eax
push ecx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x80], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcTrimVar]
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x50]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcLowerCaseVar]
push edi
push 1
lea ecx, [ebp - 0x50]
push 0x40348c
lea edx, [ebp - 0x24]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
push eax
call fcn.00410850
lea ecx, [ebp - 0x24]
call ebx
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x40]
push eax
push ecx
push 2
call edi
mov ebx, dword [sym.imp.MSVBVM60.DLL_rtcGetPresentDate]
add esp, 0xc
lea edx, [ebp - 0x40]
push edx
call ebx
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x40]
push ecx
call ebx
push 0
mov eax, dword [ebp - 0x14]
sub esp, 0x10
mov ecx, 8
mov edx, esp
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x78], eax
mov dword [edx], ecx
mov ecx, dword [ebp - 0x7c]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x74]
mov dword [edx + 0xc], eax
call fcn.00410a30
dec eax
lea ecx, [ebp - 0x20]
neg eax
sbb eax, eax
push 1
inc eax
lea edx, [ebp - 0x40]
neg eax
mov word [ebp - 0xa8], ax
push 1
lea eax, [ebp - 0x90]
mov dword [ebp - 0x88], ecx
push edx
push eax
lea ecx, [ebp - 0x50]
push 0x404f3c
push ecx
mov dword [ebp - 0xb0], 0xb
mov dword [ebp - 0x90], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcDateDiff]
lea edx, [ebp - 0xb0]
lea eax, [ebp - 0x50]
push edx
lea ecx, [ebp - 0xa0]
push eax
lea edx, [ebp - 0x60]
push ecx
push edx
mov dword [ebp - 0x98], 0xa
mov dword [ebp - 0xa0], 0x8002
call dword [sym.imp.MSVBVM60.DLL___vbaVarCmpGt]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarOr]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaBoolVarNull]
lea ecx, [ebp - 0xb0]
mov si, ax
lea edx, [ebp - 0x50]
push ecx
lea eax, [ebp - 0x40]
push edx
push eax
push 3
not esi
call edi
add esp, 0x10
test si, si
je 0x411358
call fcn.00412500
jmp 0x4111ef
mov ecx, dword [ebp - 0x14]
push ecx
push 0x40348c
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
test eax, eax
jne 0x411362
call fcn.00412680
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x30]
call esi
mov ebx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x18]
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x30], edi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
push 0x404f58
push edx
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
mov edx, ebx
lea ecx, [ebp - 0x24]
call esi
push eax
push 0x404f44
call edi
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
push eax
call fcn.00410850
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x14
push 0x411565
jmp 0x41154a
push edi
mov eax, dword [ebp - 0x14]
sub esp, 0x10
mov ecx, 8
mov edx, esp
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x78], eax
mov dword [edx], ecx
mov ecx, dword [ebp - 0x7c]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x74]
mov dword [edx + 0xc], eax
call fcn.00410a30
test eax, eax
jne 0x411358
call fcn.00412680
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x30]
call esi
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x30], edi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
push 0x404f58
push ecx
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
mov edx, ebx
lea ecx, [ebp - 0x24]
call esi
push eax
push 0x404f44
call edi
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
push eax
call fcn.00410850
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x14
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcGetPresentDate]
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaBoolVarNull]
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcGetPresentDate]
push 0
mov eax, dword [ebp - 0x14]
sub esp, 0x10
mov ecx, 8
mov edx, esp
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x78], eax
mov dword [edx], ecx
mov ecx, dword [ebp - 0x7c]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x74]
mov dword [edx + 0xc], eax
call fcn.00410a30
dec eax
lea ecx, [ebp - 0x20]
neg eax
sbb eax, eax
push 1
inc eax
lea edx, [ebp - 0x40]
neg eax
mov word [ebp - 0xa8], ax
push 1
lea eax, [ebp - 0x90]
mov dword [ebp - 0x88], ecx
push edx
push eax
lea ecx, [ebp - 0x50]
push 0x404f3c
push ecx
mov dword [ebp - 0xb0], 0xb
mov dword [ebp - 0x90], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcDateDiff]
lea edx, [ebp - 0xb0]
lea eax, [ebp - 0x50]
push edx
lea ecx, [ebp - 0xa0]
push eax
lea edx, [ebp - 0x60]
push ecx
push edx
mov dword [ebp - 0x98], 0xa
mov dword [ebp - 0xa0], 0x8002
call dword [sym.imp.MSVBVM60.DLL___vbaVarCmpGt]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarOr]
push eax
call ebx
lea ecx, [ebp - 0xb0]
mov si, ax
lea edx, [ebp - 0x50]
push ecx
lea eax, [ebp - 0x40]
push edx
push eax
push 3
not esi
call edi
add esp, 0x10
test si, si
je 0x411358
call fcn.00412500
jmp 0x41142b
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x14]
call esi
lea ecx, [ebp - 0x18]
call esi
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x20]
call esi
ret