Function at 0x42cf91
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x403ab6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4024c8
mov edx, dword [ebp + 8]
xor edi, edi
lea ecx, [ebp - 0x1c]
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 - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x7c], edi
call sub.MSVBVM60.DLL___vbaStrCopy
push dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
push dword [ebp - 0x24]
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
call sub.MSVBVM60.DLL___vbaStrToUnicode
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeStr
and ebx, 1
neg ebx
test bx, bx
je 0x42d080
push dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
push dword [ebp - 0x24]
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
call sub.MSVBVM60.DLL___vbaStrToUnicode
and esi, 0xfffffffe
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
call sub.MSVBVM60.DLL___vbaStrToUnicode
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0xc
or dword [ebp - 0x14], 0xffffffff
push 0xa
pop ebx
cmp dword [0x450184], edi
jne 0x42d09a
push 0x450184
push 0x40a0dc
call sub.MSVBVM60.DLL___vbaNew2
mov esi, dword [0x450184]
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
push ecx
push esi
call dword [eax + 0x14]
fnclex
cmp eax, edi
jge 0x42d0be
push 0x14
push 0x40a0cc
push esi
push eax
call sub.MSVBVM60.DLL___vbaHresultCheckObj
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push eax
mov esi, eax
call dword [ecx + 0x50]
fnclex
cmp eax, edi
jge 0x42d0e1
push 0x50
push 0x40a918
push esi
push eax
call sub.MSVBVM60.DLL___vbaHresultCheckObj
cmp dword [0x450184], edi
jne 0x42d0f8
push 0x450184
push 0x40a0dc
call sub.MSVBVM60.DLL___vbaNew2
mov esi, dword [0x450184]
mov eax, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
push esi
call dword [eax + 0x14]
fnclex
cmp eax, edi
jge 0x42d11c
push 0x14
push 0x40a0cc
push esi
push eax
call sub.MSVBVM60.DLL___vbaHresultCheckObj
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
mov esi, eax
call dword [ecx + 0x58]
fnclex
cmp eax, edi
jge 0x42d13f
push 0x58
push 0x40a918
push esi
push eax
call sub.MSVBVM60.DLL___vbaHresultCheckObj
push dword [ebp - 0x28]
push 0x40aafc
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push dword [ebp - 0x24]
call fcn.0041fe41
mov edx, eax
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaStrMove
mov edx, dword [ebp - 0x34]
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], edi
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call fcn.0042d341
mov esi, eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 5
call sub.MSVBVM60.DLL___vbaFreeStrList
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeObjList
add esp, 0x24
cmp si, di
jne 0x42d270
push dword [ebp - 0x1c]
push 0x40a1d8
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x40d3c8
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x40d430
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x18]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeStrList
mov eax, 0x80020004
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x44], eax
add esp, 0xc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x12
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x7c], 0x4008
call sub.MSVBVM60.DLL_rtcMsgBox
mov esi, eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 3
call sub.MSVBVM60.DLL___vbaFreeVarList
mov eax, esi
add esp, 0x10
sub eax, 3
je 0x42d276
dec eax
jne 0x42d26d
jmp 0x42d083
dec eax
jne 0x42d279
or dword [ebp - 0x20], 0xffffffff
jmp 0x42d279
mov dword [ebp - 0x20], edi
cmp word [ebp - 0x14], di
je 0x42d2d3
push dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
push dword [ebp - 0x24]
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
call sub.MSVBVM60.DLL___vbaStrToUnicode
or esi, 1
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
call sub.MSVBVM60.DLL___vbaStrToUnicode
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0xc
push 0x42d32c
jmp 0x42d31b
lea ecx, [ebp - 0x18]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x1c]
call sub.MSVBVM60.DLL___vbaFreeStr
ret