Function at 0x4106c0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x4015f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x401248
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xb8], ebx
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [0x414010], 0x80000001
mov dword [ebp - 0xa0], 0x80000002
mov dword [ebp - 0xa8], 3
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
mov edx, 0x402da0
mov ecx, 0x414014
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
call esi
mov dword [ebp - 0xa0], 0x402e30
mov edi, 8
mov dword [ebp - 0xa8], edi
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MSVBVM60.DLL___vbaVarCopy]
mov edx, 0x402e00
mov ecx, 0x414018
call esi
push 3
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x88]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcLeftCharVar]
mov dword [ebp - 0xa0], 0x402d20
mov dword [ebp - 0xa8], edi
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x98]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
mov ecx, 0x41401c
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea edx, [ebp - 0x98]
push edx
lea eax, [ebp - 0x88]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
push 0x414024
push 2
push ebx
mov ecx, dword [0x414014]
push ecx
lea edx, [ebp - 0x70]
push edx
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
call esi
push eax
mov eax, dword [0x414010]
push eax
call fcn.00402860
mov dword [ebp - 0xbc], eax
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
call ebx
mov ecx, dword [ebp - 0x70]
push ecx
push 0x414014
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
call edi
xor edx, edx
mov eax, dword [ebp - 0xbc]
test eax, eax
setne dl
neg edx
mov dword [ebp - 0xc0], edx
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0xc0], 0
jne 0x4108e8
mov edx, dword [0x41401c]
mov ecx, 0x414020
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov eax, dword [0x41401c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
push eax
mov ecx, dword [0x414020]
push ecx
lea edx, [ebp - 0x74]
push edx
call esi
push eax
push 1
push 0
mov eax, dword [0x414018]
push eax
lea ecx, [ebp - 0x70]
push ecx
call esi
push eax
mov edx, dword [0x414024]
push edx
call fcn.004028f4
call ebx
mov eax, dword [ebp - 0x70]
push eax
push 0x414018
call edi
mov ecx, dword [ebp - 0x74]
push ecx
push 0x414020
call edi
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x70]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
mov ecx, dword [0x414024]
push ecx
call fcn.00402938
call ebx
mov dword [ebp - 0xa0], 0xffffffff
mov dword [ebp - 0xa8], 0x800b
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVBVM60.DLL___vbaVarVargNofree]
push eax
lea edx, [ebp - 0xa8]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstEq]
test ax, ax
je 0x410bca
mov edx, 0x402e90
mov ecx, 0x414018
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov dword [ebp - 0xa0], 0x402d3c
mov dword [ebp - 0xa8], 8
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVBVM60.DLL___vbaVarVargNofree]
push eax
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x88]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
mov ecx, 0x41401c
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x88]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
push 0x414024
push 2
push 0
mov edx, dword [0x414014]
push edx
lea eax, [ebp - 0x70]
push eax
call esi
push eax
mov ecx, dword [0x414010]
push ecx
call fcn.00402860
mov dword [ebp - 0xbc], eax
call ebx
mov edx, dword [ebp - 0x70]
push edx
push 0x414014
call edi
xor eax, eax
mov edx, dword [ebp - 0xbc]
test edx, edx
setne al
neg eax
mov dword [ebp - 0xc0], eax
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0xc0], 0
jne 0x410bca
mov edx, dword [0x41401c]
mov ecx, 0x414020
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov ecx, dword [0x41401c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
push eax
mov edx, dword [0x414020]
push edx
lea eax, [ebp - 0x74]
push eax
call esi
push eax
push 1
push 0
mov ecx, dword [0x414018]
push ecx
lea edx, [ebp - 0x70]
push edx
call esi
push eax
mov eax, dword [0x414024]
push eax
call fcn.004028f4
call ebx
mov ecx, dword [ebp - 0x70]
push ecx
push 0x414018
call edi
mov edx, dword [ebp - 0x74]
push edx
push 0x414020
call edi
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x70]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
mov dword [ebp - 0xa0], 0x402eb8
mov dword [ebp - 0xa8], 8
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaVarCopy]
mov dword [ebp - 0xa0], 0x402d6c
mov dword [ebp - 0xa8], 8
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVBVM60.DLL___vbaVarVargNofree]
push eax
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
mov edx, eax
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
push 0x414024
push 2
push 0
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
push eax
lea eax, [ebp - 0x74]
push eax
call esi
push eax
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
push eax
call fcn.00402860
mov dword [ebp - 0xbc], eax
call ebx
xor edx, edx
mov ecx, dword [ebp - 0xbc]
test ecx, ecx
setne dl
neg edx
mov dword [ebp - 0xc0], edx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x70]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
cmp word [ebp - 0xc0], 0
jne 0x410bca
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarCopy]
mov edx, eax
mov ecx, 0x414020
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x88]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLenVar]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
push eax
mov edx, dword [0x414020]
push edx
lea eax, [ebp - 0x78]
push eax
call esi
push eax
push 1
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
push eax
lea eax, [ebp - 0x74]
push eax
call esi
push eax
mov ecx, dword [0x414024]
push ecx
call fcn.004028f4
call ebx
mov edx, dword [ebp - 0x78]
push edx
push 0x414020
call edi
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x70]
push edx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
mov eax, dword [0x414024]
push eax
call fcn.00402938
call ebx
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x410c3c
jmp 0x410c21
lea ecx, [ebp - 0x2c]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
call esi
lea ecx, [ebp - 0x4c]
call esi
lea ecx, [ebp - 0x5c]
call esi
lea ecx, [ebp - 0x6c]
call esi
ret