Function at 0x412110
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401a56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401418
mov edx, dword [ebp + 8]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
xor esi, esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb8], esi
call edi
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call edi
call fcn.004114c0
test ax, ax
je 0x4123cf
mov edx, 0x40366c
lea ecx, [ebp - 0x28]
call edi
mov edx, 0x405298
lea ecx, [ebp - 0x24]
call edi
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x24]
push ecx
lea eax, [ebp - 0xb8]
push edx
push eax
mov dword [ebp - 0xb8], 0x80000002
call fcn.0041d7e0
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x1c]
call edi
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.00414a80
mov edx, eax
lea ecx, [ebp - 0x14]
call edi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x80], 8
push eax
push 0x40366c
mov dword [ebp - 0x78], eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
mov edi, eax
mov edx, dword [ebp - 0x80]
neg edi
push esi
mov eax, dword [ebp - 0x7c]
sbb edi, edi
sub esp, 0x10
mov ecx, esp
inc edi
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.00411060
dec eax
neg eax
sbb eax, eax
neg eax
or edi, eax
jne 0x4126a0
lea edx, [ebp - 0x80]
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x1c]
push edx
push eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x80], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcTrimVar]
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x50]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcLowerCaseVar]
lea eax, [ebp - 0x50]
push esi
lea ecx, [ebp - 0x24]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
push eax
call fcn.00412710
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x40]
push edx
push eax
push 2
call edi
mov ebx, dword [sym.imp.MSVBVM60.DLL_rtcGetPresentDate]
add esp, 0xc
lea ecx, [ebp - 0x40]
push ecx
call ebx
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea eax, [ebp - 0x40]
push eax
call ebx
push esi
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.00411060
neg eax
sbb eax, eax
lea ecx, [ebp - 0x20]
inc eax
push 1
neg eax
mov word [ebp - 0xa8], ax
lea edx, [ebp - 0x40]
push 1
lea eax, [ebp - 0x90]
mov dword [ebp - 0x88], ecx
push edx
push eax
lea ecx, [ebp - 0x50]
push 0x405398
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 0x4126a0
call fcn.004130f0
xor esi, esi
jmp 0x4122e4
mov ecx, dword [ebp - 0x14]
push ecx
push 0x40366c
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
test eax, eax
jne 0x412468
call fcn.00413270
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x30]
call edi
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xb4]
mov dword [ebp - 0xb4], esi
push edx
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x30], esi
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
push 0x4053c8
push eax
call esi
mov edx, eax
lea ecx, [ebp - 0x2c]
call edi
push eax
mov edx, ebx
lea ecx, [ebp - 0x24]
call edi
push eax
push 0x4053a0
call esi
mov edx, eax
lea ecx, [ebp - 0x28]
call edi
push eax
call fcn.00410e00
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x14
push 0x4126f6
jmp 0x4126db
push esi
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.00411060
cmp eax, 1
jne 0x4126a0
call fcn.00413270
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x30]
call edi
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xb4], esi
push ecx
push 0xffffffffffffffff
push esi
push 0x4053c8
push edx
mov dword [ebp - 0x30], esi
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x2c]
call edi
push eax
mov edx, ebx
lea ecx, [ebp - 0x24]
call edi
push eax
push 0x4053a0
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x28]
call edi
push eax
call fcn.00410e00
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
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcGetPresentDate]
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call edi
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 eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcGetPresentDate]
push esi
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.00411060
neg eax
sbb eax, eax
lea ecx, [ebp - 0x20]
inc eax
push 1
neg eax
mov word [ebp - 0xa8], ax
lea edx, [ebp - 0x40]
push 1
lea eax, [ebp - 0x90]
mov dword [ebp - 0x88], ecx
push edx
push eax
lea ecx, [ebp - 0x50]
push 0x405398
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 0x41262c
call fcn.004130f0
xor esi, esi
jmp 0x412545
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.00411060
cmp eax, 1
jne 0x4126a0
lea ecx, [ebp - 0x18]
push ecx
call fcn.00411820
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.00411060
cmp eax, 1
jne 0x4126a0
mov ecx, dword [ebp - 0x14]
push 0
push ecx
call fcn.00412710
push 0x4126f6
jmp 0x4126db
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