Function at 0x47df80
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4019a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401978
mov eax, dword [0x47f864]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
jne 0x47dfdf
push 0x47f864
push 0x439e2c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x47f864]
lea ecx, [ebp - 0x30]
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0x14]
cmp eax, ebx
fnclex
jge 0x47e008
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0x14
push 0x439e1c
push esi
push eax
call edi
jmp 0x47e00e
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x20]
push ecx
push eax
mov edx, dword [eax]
mov esi, eax
call dword [edx + 0x50]
cmp eax, ebx
fnclex
jge 0x47e02e
push 0x50
push 0x439e3c
push esi
push eax
call edi
cmp dword [0x47f864], ebx
jne 0x47e046
push 0x47f864
push 0x439e2c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x47f864]
lea eax, [ebp - 0x34]
push eax
push esi
mov edx, dword [esi]
call dword [edx + 0x14]
cmp eax, ebx
fnclex
jge 0x47e067
push 0x14
push 0x439e1c
push esi
push eax
call edi
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x24]
push edx
push eax
mov ecx, dword [eax]
mov esi, eax
call dword [ecx + 0x58]
cmp eax, ebx
fnclex
jge 0x47e087
push 0x58
push 0x439e3c
push esi
push eax
call edi
mov eax, dword [ebp - 0x20]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
push eax
push 0x43b56c
call esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x28]
call edi
mov ecx, dword [ebp - 0x24]
push eax
push ecx
call esi
mov edx, eax
lea ecx, [ebp - 0x2c]
call edi
push eax
push 0x43b574
call esi
mov edx, eax
lea ecx, [ebp - 0x1c]
call edi
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x20]
push ecx
push edx
push 4
call ebx
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x30]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0x20
mov edx, 0x43b360
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x20]
push edx
push eax
push ecx
call esi
push eax
push 0x80000002
call fcn.0043b164
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
call edi
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp + 8], 0
je 0x47e192
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstrB]
mov edx, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push edx
push eax
call esi
push eax
push 1
push 0
lea ecx, [ebp - 0x20]
push 0x43b3c0
push ecx
call esi
mov edx, dword [ebp - 0x18]
push eax
push edx
call fcn.0043b340
call edi
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x20]
push edx
push eax
push 2
call ebx
add esp, 0xc
jmp 0x47e1b2
lea ecx, [ebp - 0x20]
push 0x43b3c0
push ecx
call esi
mov edx, dword [ebp - 0x18]
push eax
push edx
call fcn.0043b1f4
call edi
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov eax, dword [ebp - 0x18]
push eax
call fcn.0043b11c
call edi
push 0x47e201
jmp 0x47e1f0
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x14]
call esi
lea ecx, [ebp - 0x1c]
call esi
ret